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

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

Jan-Phillip Oesterling April 3, 2020

Hello,

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
TAGS
AUG Leaders

Atlassian Community Events