How to pass parameter value of one build pipeline to another build pipeline as a input in azure devops using YAML?

801 Views Asked by At

I have a build pipeline which is running with parameter value which is dynamic and once that build pipeline is completed then I should trigger another build pipeline which is in the same project passing input as a parameter from the first pipeline.

So in the first build pipeline I am running using a version as a parameter passing input and once the first pipeline runs successfully then it should trigger another build pipeline with the same parameter version value should be passed as a input.

I tried a lot but I couldn't do this. Much appreciated for your help.

In the First pipeline.yaml I have declared the version parameter like this and it will be dynamic value during run time I will pass different values.

parameters:

  • name:version displayname:version type: string default: '1.0.0'
0

There are 0 best solutions below