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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Is there a way to trigger the deploy step of a pipeline if the pullrequest is merged?



we have created a pipeline which will run when a pull request is created. In this Pipeline we build a docker image and want to run some tests in it. So the build process will consume many build minutes. When the pipeline is finished we can merge the pull request. Now we have the problem. When we merge the pull request into the branch another pipeline will start running and will deploy the changes to our registry. But we don't want to build the images again. So the question is: Can we trigger the last step of the pull request pipeline if the pull request gets merged? Or can we share the image between the pipelines? I have thinked about pushing the image with the commit sha as tag to the registry in the pull request pipeline. But I don't know how to get the sha in the next pipeline dynamically to use the right image.

Thanks for youre help!

0 answers

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira

Admins, notify your Jira instance of system-wide changes with the new admin announcement banner

Hi All! We’re excited to share the launch of an announcement banner that lets Jira site administrators communicate directly to their users across their  Jira Cloud instance.  ...

373 views 13 14
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you