Skip to content

Instantly share code, notes, and snippets.

  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save clement-joye/40f5ab0d9be3cdfe48d66515068cd0ee to your computer and use it in GitHub Desktop.
{
"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