-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/Azure/azure-sdk-for-net i…
…nto feature/mgmt-track2
- Loading branch information
Showing
885 changed files
with
69,807 additions
and
13,304 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,6 @@ | |
reviewers: | ||
- allenjzhang | ||
- YalinLi0312 | ||
- bquantump | ||
- m-nash | ||
- markcowl | ||
- nisha-bhatia | ||
|
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
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
parameters: | ||
- name: DaysValid | ||
default: 365 | ||
type: number | ||
|
||
steps: | ||
- task: PowerShell@2 | ||
displayName: Retain pipeline run | ||
condition: ${{ parameters.Condition }} | ||
inputs: | ||
pwsh: true | ||
filePath: $(Build.SourcesDirectory)/eng/common/scripts/Add-RetentionLease.ps1 | ||
arguments: > | ||
-Organization azure-sdk | ||
-Project $(System.TeamProject) | ||
-DefinitionId $(System.DefinitionId) | ||
-RunId $(Build.BuildId) | ||
-OwnerId Pipeline | ||
-DaysValid ${{parameters.DaysValid}} | ||
-Base64EncodedAuthToken $(System.AccessToken) | ||
-Debug |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
[CmdletBinding(SupportsShouldProcess = $true)] | ||
param( | ||
[Parameter(Mandatory = $true)] | ||
[string]$Organization, | ||
|
||
[Parameter(Mandatory = $true)] | ||
[string]$Project, | ||
|
||
[Parameter(Mandatory = $true)] | ||
[int]$DefinitionId, | ||
|
||
[Parameter(Mandatory = $true)] | ||
[int]$RunId, | ||
|
||
[Parameter(Mandatory = $true)] | ||
[string]$OwnerId, | ||
|
||
[Parameter(Mandatory = $true)] | ||
[int]$DaysValid, | ||
|
||
[Parameter(Mandatory = $true)] | ||
[string]$Base64EncodedAuthToken | ||
) | ||
|
||
. (Join-Path $PSScriptRoot common.ps1) | ||
|
||
LogDebug "Checking for existing leases on run: $RunId" | ||
$existingLeases = Get-RetentionLeases -Organization $Organization -Project $Project -DefinitionId $DefinitionId -RunId $RunId -OwnerId $OwnerId -Base64EncodedAuthToken $Base64EncodedAuthToken | ||
|
||
if ($existingLeases.count -ne 0) { | ||
LogDebug "Found $($existingLeases.count) leases, will delete them first." | ||
|
||
foreach ($lease in $existingLeases.value) { | ||
LogDebug "Deleting lease: $($lease.leaseId)" | ||
Delete-RetentionLease -Organization $Organization -Project $Project -LeaseId $lease.leaseId -Base64EncodedAuthToken $Base64EncodedAuthToken | ||
} | ||
|
||
} | ||
|
||
LogDebug "Creating new lease on run: $RunId" | ||
$lease = Add-RetentionLease -Organization $Organization -Project $Project -DefinitionId $DefinitionId -RunId $RunId -OwnerId $OwnerId -DaysValid $DaysValid -Base64EncodedAuthToken $Base64EncodedAuthToken | ||
LogDebug "Lease ID is: $($lease.value.leaseId)" |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
Installing AutoRest version: v2 | ||
AutoRest installed successfully. | ||
Commencing code generation | ||
Generating CSharp code | ||
Executing AutoRest command | ||
cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/elastic/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --csharp-sdks-folder=C:\Users\vakuncha\source\repos\azure-sdk-for-net\sdk | ||
2021-04-07 06:32:51 UTC | ||
Azure-rest-api-specs repository information | ||
GitHub fork: Azure | ||
Branch: master | ||
Commit: 9fbd9c69e95c30c0805b34d8b6e23a385dc0d6cc | ||
AutoRest information | ||
Requested version: v2 | ||
Bootstrapper version: autorest@2.0.4413 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
Installing AutoRest version: v2 | ||
AutoRest installed successfully. | ||
Commencing code generation | ||
Generating CSharp code | ||
Executing AutoRest command | ||
cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/logz/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --csharp-sdks-folder=C:\Users\vakuncha\source\repos\azure-sdk-for-net\sdk | ||
2021-04-08 05:03:54 UTC | ||
Azure-rest-api-specs repository information | ||
GitHub fork: Azure | ||
Branch: master | ||
Commit: 99651319107286b850b2b938dc47b2e30c76fca6 | ||
AutoRest information | ||
Requested version: v2 | ||
Bootstrapper version: autorest@2.0.4413 |
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
Oops, something went wrong.