-
Notifications
You must be signed in to change notification settings - Fork 183
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add lease to runs. #1515
Add lease to runs. #1515
Conversation
Closes: Azure/azure-sdk#1059 |
The following pipelines have been queued for testing: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks reasonable.
The following pipelines have been queued for testing: |
Hello @azure-sdk! Because this pull request has the p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (
|
This PR adds a PowerShell script that adds a retention lease to a pipeline run. Because you can only have one lease it first checks to see if a lease exists already, and if it does it removes it and adds it again for the specified validity period (there doesn't appear to be a patch operation according to the REST API docs).