Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Different images for different builds

Siddarta Jairam May 26, 2017

So I want one pipeline to just go 'npm test' (using npm) while another to be deploy to google cloud (using google/cloud-sdk). I know I can just make a docker that has cloud sdk and npm or download and install npm on google/cloud-sdk or vice versa but this seems pretty roundabout solution.

I was wondering if there was a way to specify a specific image for each of the pipelines.

1 answer

1 accepted

0 votes
Answer accepted
Tom Bradshaw
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 29, 2017

Under the step section you can specify an image to be used for just that step. For example

pipelines:
  default:
    - step:
        image: node
        script:
          - npm install
          - npm test
  branches:
    staging:
      - step:
          image: maven
          script:
           - mvn clean install
Siddarta Jairam May 30, 2017

Thanks that worked great.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events