Trigger pipeline from another pipeline

fibrasek July 21, 2021

Hi,

 

I have a Terraform project that I want to add a pipeline to trigger deploy from various other applications that have their own pipeline, for example:

  1. push terraform changes
  2. deploy changes after approval
  3. after terraform deploy is finished
    1. trigger project A deploy
    2. trigger project B deploy
    3. ...

What would be the best way to do something like that?

1 comment

Comment

Log in or Sign up to comment
Oleksandr Kyrdan
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 21, 2021

Hi @fibrasek

Thank you for your question!

It's a good case for trigger-pipeline pipe:

script:
  - pipe: atlassian/trigger-pipeline:4.2.1
    variables:
      BITBUCKET_USERNAME: $BITBUCKET_USERNAME
      BITBUCKET_APP_PASSWORD: $BITBUCKET_APP_PASSWORD
      REPOSITORY: 'your-awesome-repo'

To discover more pipes, visit our Bitbucket Pipes Marketplace.

 

Cheers,
Oleksandr Kyrdan

Like Gabriel Bellon likes this
Gabriel Bellon July 21, 2021

Thanks!

It's good to know that it's that easy!

TAGS
AUG Leaders

Atlassian Community Events