Created
May 15, 2021 12:32
-
-
Save clement-joye/40f5ab0d9be3cdfe48d66515068cd0ee to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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