Ramya L
Ramya L

Reputation: 21

Passing value from one task output to other task

Unable to find the option to pass value from one task output to other task in Azure deveops pipeline.

Pass value of Id which is an output of task to next task as an input.

task output

Upvotes: 2

Views: 2609

Answers (1)

Hugh Lin
Hugh Lin

Reputation: 19371

You can do this through Output variables part of the task.

1.Use outputs in the same job

In the Output variables section, give the producing task a reference name. Then, in a downstream step, you can use the form $(<ReferenceName>.<VariableName>) to refer to output variables.

enter image description here

2.Use outputs in a different job

You must use YAML to consume output variables in a different job.

For details,please refer to this document.

Upvotes: 2

Related Questions