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: 

Can I create more than one Pipeline per Repo?

Anton Epple
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!
December 4, 2016

I would like to build and test my projects on several OS platforms using different docker images. What is the best way to achieve this with pipelines?

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Philip Hodder
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 11, 2016

Hi Anton,

Bitbucket Pipelines allows you to define a Docker image to use on the step (as well as globally). The current limitation is that you will need to define a different Docker image on each branch (but in the future when there are multiple steps in a Pipeline you can have each step have a different Docker image).

For example:

image: my-global-image:version-1
 
pipelines:
  branches:
    branch-1:
      - step:
          image: ubuntu:16.04 # This will be used instead of my-global-image.
          script:
            - ./runTests
    branch-2:
      - step:
          image: ubuntu:14.04 # This will be used instead of my-global-image.
          script:
            - ./runTests

More information on configuring bitbucket-pipelines.yml and branches can be found here:

 https://confluence.atlassian.com/bitbucket/configure-bitbucket-pipelines-yml-792298910.html#Configurebitbucket-pipelines.yml-ci_imageimage(optional)

https://confluence.atlassian.com/bitbucket/branch-workflows-in-bitbucket-pipelines-856697482.html

In regards to your specific use-case of testing on several OS environments, keep in mind that Bitbucket Pipelines only supports Linux at the moment (this might limit what you were hoping to do).

Hope that helps. smile

Phil

Edgar Sanchez
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!
September 22, 2020

I have a follow up on this - I have a single repo but I want to configure it so that the single repo has multiple pipelines. One pipeline runs against dev, another qa and another one against production. 

What is the best practice for this?

Like # people like this
TAGS
AUG Leaders

Atlassian Community Events