Different images for different builds

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 vote

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

Thanks that worked great.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jun 12, 2018 in Bitbucket

Do you use any Atlassian products for your personal projects?

After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...

29,190 views 26 12
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you