The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Does step image override global pipeline image

Oluwapelumi Olaoye
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 27, 2020

Hello,

I don't know if this currently exists...
But is there a way for me to declare a global image across all branches and steps and declare a different image in some steps that would override the default globally declared image.

 

Say something like this

image: node:...
pipelines:
default:
- step:
script:
branches:
dev:
- step:
image: ubuntu
script:

 

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
ktomk
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
May 28, 2020

Yes, there is and exactly like you imagined.

You can (but must not) specify an image at the top level (`image: node....` in your example). If not specified this is the Default build environment - Use Docker images as build environments.

That can be overridden on step level exactly as in your example on any `- step` (`image: ubuntu`), see Configure bitbucket-pipelines.yml for a more lengthy outline.

TAGS
AUG Leaders

Atlassian Community Events