Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
{
"resources": [
{
"absoluteUrl": "https://vsrm.dev.azure.com/${organization}/${project}/_apis/release/releases?definitionId=${definitionId}&$top=1",
"values": {
"releaseId": "value[0].id"
}
},
{
"absoluteUrl": "https://vsrm.dev.azure.com/${organization}/${project}/_apis/Release/releases/${releaseId}",
"values": {
"environmentId": "environments[name == ${stageName}].id"
}
},
{
"absoluteUrl": "https://vsrm.dev.azure.com/${organization}/${project}/_apis/Release/releases/${releaseId}/environments/${environmentId}",
"values": {
"status": "status",
"webUrl": "release._links.web.href"
}
}
],
"variables": {
"organization": "yourOrganisationName",
"project": "yourProjectName",
"definitionId": "yourDefinitionId",
"stageName": "yourStageName"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment