Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Azure Pipelines - View parameters from previous run

Not sure if there is a way to do this, but I would like to see the parameters from a yaml pipelines previous run so I can see what was entered or selected at the time the pipeline was run. Is that possible? Only work around I've found is to add tags based of each parameter.

like image 202
philthy Avatar asked Sep 13 '25 19:09

philthy


1 Answers

You can see the parameter selected in the job log from the Build Summary UI page. See below:

Go the Build Summary of previous run, select the job under Jobs, Click on the Job as below highlighted, then expand the Parent pipeline used these runtime parameters.

enter image description here

Another workaround beside adding tags based of each parameter is to add a script task in your pipeline to output the parameters. So that you can check out what parameters are selected from the task log later.

- script: |
    echo "image ---> ${{parameters.image}}"
    echo "name ---> ${{parameters.name}}"
  displayName: 'Parameters Selected' 

You can also call rest api to get the job log of previous run. The selected parameters is usually in the log with id = 2

https://dev.azure.com/{organization}/{project}/_apis/build/builds/{buildId}/logs/2?api-version=5.1

See below example, get the log with id = 2 enter image description here

like image 181
Levi Lu-MSFT Avatar answered Sep 15 '25 21:09

Levi Lu-MSFT