Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Default shell for bitbucket pipeline

Deleted user April 16, 2019

Help me understand which default shell is used in Bitbucket pipelines.

 

We defines Docker images with `step.image` and several steps in `script`.

 

Healthy conclusion is that each `script` line is sent to shell, defiled by Docket image which can vary.

 

I see that `.` / `source` operator is working for sh like-shells. That mean each `script` command reuses same sh session.

 

Is it correct that there is no predefined shell executors?

Is it correct that each line of step executed within same shell session?

1 answer

1 accepted

1 vote
Answer accepted
Linette
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 17, 2019

Each step runs in a separate docker container.


How the container behaves, and which shell it uses depends on the docker image used. Each line of script inside a step executes in the same shell session.

 

I hope that helps!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events