-
Notifications
You must be signed in to change notification settings - Fork 4.1k
[Pipeline] Require specified build from 'azure-powershell - sign' to download #13270
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
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
e199fb7
require specified build to download
BethanyZhou 1713b02
set timeout in 180 minutes
BethanyZhou a3eeacc
get specified artifacts if pipeline id specified, or get latest one
BethanyZhou cf80e2e
retire 'Azure SDK Powershell Test' subscription
BethanyZhou 6dd1d90
fix some issues
BethanyZhou File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
| @@ -1,178 +1,185 @@ | ||
| pr: none | ||
| trigger: none | ||
|
|
||
| strategy: | ||
| matrix: | ||
| Windows PS 5.1.14: | ||
| Image_Name: 'vs2017-win2016' | ||
| PSVersion: '5.1.14' | ||
|
|
||
| Windows PS 6.2.4: | ||
| Image_Name: 'vs2017-win2016' | ||
| PSVersion: '6.2.4' | ||
|
|
||
| Windows PS 7.0.3: | ||
| Image_Name: 'vs2017-win2016' | ||
| PSVersion: '7.0.3' | ||
|
|
||
| Linux PS 6.2.4: | ||
| Image_Name: 'ubuntu-18.04' | ||
| PSVersion: '6.2.4' | ||
| jobs: | ||
| - job: SmokeTest | ||
| timeoutInMinutes: 180 | ||
| strategy: | ||
| matrix: | ||
| Windows PS 5.1.14: | ||
| Image_Name: 'vs2017-win2016' | ||
| PSVersion: '5.1.14' | ||
| Windows PS 6.2.4: | ||
| Image_Name: 'vs2017-win2016' | ||
| PSVersion: '6.2.4' | ||
| Windows PS 7.0.3: | ||
| Image_Name: 'vs2017-win2016' | ||
| PSVersion: '7.0.3' | ||
| Linux PS 6.2.4: | ||
| Image_Name: 'ubuntu-18.04' | ||
| PSVersion: '6.2.4' | ||
| Linux PS 7.0.3: | ||
| Image_Name: 'ubuntu-18.04' | ||
| PSVersion: '7.0.3' | ||
| MacOS PS 6.2.4: | ||
| Image_Name: 'macOS-10.15' | ||
| PSVersion: '6.2.4' | ||
| MacOS PS 7.0.3: | ||
| Image_Name: 'macOS-10.15' | ||
| PSVersion: '7.0.3' | ||
| pool: | ||
| vmImage: $(Image_Name) | ||
|
|
||
| steps: | ||
| - task: PowerShell@2 | ||
| displayName: Prepare Powershell $(PSVersion) | ||
| inputs: | ||
| filePath: 'tools/Test/SmokeTest/PrepareRequiredPowershell.ps1' | ||
| arguments: '-RequiredPsVersion $(PSVersion)' | ||
|
|
||
| - task: DownloadPipelineArtifact@2 | ||
| condition: and(succeeded(), eq(variables['GalleryName'], 'LocalRepo'), eq(variables['PipelineId'], '')) | ||
| displayName: Download Latest Artifacts from Build Pipeline | ||
| inputs: | ||
| buildType: specific | ||
| project: $(ProjectToDownloadArtifacts) | ||
| definition: $(BuildPipelineName) | ||
| buildVersionToDownload: 'latest' | ||
| artifactName: $(ArtifactName) | ||
| targetPath: $(Pipeline.Workspace) | ||
|
|
||
| - task: DownloadPipelineArtifact@2 | ||
| condition: and(succeeded(), eq(variables['GalleryName'], 'LocalRepo'), ne(variables['PipelineId'], '')) | ||
| displayName: Download Specified Artifacts from Build Pipeline | ||
| inputs: | ||
| buildType: 'specific' | ||
| project: $(ProjectToDownloadArtifacts) | ||
| definition: $(BuildPipelineName) | ||
| buildVersionToDownload: 'specific' | ||
| pipelineId: $(PipelineId) | ||
| artifactName: '$(ArtifactName)' | ||
| targetPath: '$(Pipeline.Workspace)' | ||
|
|
||
| - task: PowerShell@2 | ||
| condition: and(succeeded(), eq(variables['GalleryName'], 'LocalRepo')) | ||
| displayName: Copy Artifacts to LocalRepo | ||
| inputs: | ||
| targetType: 'inline' | ||
| script: | | ||
| New-Item -Path "$(Pipeline.Workspace)" -Name "LocalRepo" -ItemType "directory" | ||
| Copy-Item -Path "$(Pipeline.Workspace)\\*.nupkg" -Destination "$(Pipeline.Workspace)\\LocalRepo\\" | ||
| Write-Host "List artifacts..." | ||
| Get-ChildItem "$(Pipeline.Workspace)\\LocalRepo\\" | ||
|
|
||
| - task: NuGetCommand@2 | ||
| condition: and(succeeded(), eq(variables['GalleryName'], 'LocalRepo')) | ||
| displayName: 'Download Previous Release .nupkg Files' | ||
| inputs: | ||
| command: custom | ||
| arguments: 'install Az -directdownload -packagesavemode nupkg -source https://www.powershellgallery.com/api/v2 -OutputDirectory packages' | ||
|
|
||
| - task: PowerShell@2 | ||
| condition: and(succeeded(), eq(variables['GalleryName'], 'LocalRepo')) | ||
| displayName: 'Copy Previous Release .nupkg files to LocalRepo' | ||
| inputs: | ||
| targetType: 'inline' | ||
| script: | | ||
| Get-ChildItem $(System.DefaultWorkingDirectory)/packages -Recurse -Include *.nupkg | Copy-Item -Destination "$(Pipeline.Workspace)\\LocalRepo\\" -Force | ||
| Write-Host "List localRepo..." | ||
| Get-ChildItem "$(Pipeline.Workspace)\\LocalRepo\\" | ||
|
|
||
| - task: PowerShell@2 | ||
| displayName: Install Az Modules from $(GalleryName) | ||
| inputs: | ||
| filePath: 'tools/Test/SmokeTest/ScriptsCaller.ps1' | ||
| arguments: '-RequiredPsVersion $(PSVersion) -Script "./tools/Test/SmokeTest/InstallAzModules.ps1 -Gallery $(GalleryName) -LocalRepoLocation $(LocalRepoLocation)"' | ||
|
|
||
| Linux PS 7.0.3: | ||
| Image_Name: 'ubuntu-18.04' | ||
| PSVersion: '7.0.3' | ||
|
|
||
| MacOS PS 6.2.4: | ||
| Image_Name: 'macOS-10.15' | ||
| PSVersion: '6.2.4' | ||
|
|
||
| MacOS PS 7.0.3: | ||
| Image_Name: 'macOS-10.15' | ||
| PSVersion: '7.0.3' | ||
|
|
||
| pool: | ||
| vmImage: $(Image_Name) | ||
|
|
||
| steps: | ||
| - task: PowerShell@2 | ||
| displayName: Prepare Powershell $(PSVersion) | ||
| inputs: | ||
| filePath: 'tools/Test/SmokeTest/PrepareRequiredPowershell.ps1' | ||
| arguments: '-RequiredPsVersion $(PSVersion)' | ||
|
|
||
| - task: DownloadPipelineArtifact@2 | ||
| condition: and(succeeded(), eq(variables['GalleryName'], 'LocalRepo')) | ||
| displayName: Download Artifacts from Build Pipeline | ||
| inputs: | ||
| buildType: specific | ||
| project: $(ProjectToDownloadArtifacts) | ||
| definition: $(BuildPipelineName) | ||
| buildVersionToDownload: latestFromBranch | ||
| branchName: $(BranchName) | ||
| artifactName: $(ArtifactName) | ||
| targetPath: $(Pipeline.Workspace) | ||
|
|
||
| - task: PowerShell@2 | ||
| condition: and(succeeded(), eq(variables['GalleryName'], 'LocalRepo')) | ||
| displayName: Copy Artifacts to LocalRepo | ||
| inputs: | ||
| targetType: 'inline' | ||
| script: | | ||
| New-Item -Path "$(Pipeline.Workspace)" -Name "LocalRepo" -ItemType "directory" | ||
| Copy-Item -Path "$(Pipeline.Workspace)\\*.nupkg" -Destination "$(Pipeline.Workspace)\\LocalRepo\\" | ||
| Write-Host "List artifacts..." | ||
| Get-ChildItem "$(Pipeline.Workspace)\\LocalRepo\\" | ||
|
|
||
| - task: NuGetCommand@2 | ||
| condition: and(succeeded(), eq(variables['GalleryName'], 'LocalRepo')) | ||
| displayName: 'Download Previous Release .nupkg Files' | ||
| inputs: | ||
| command: custom | ||
| arguments: 'install Az -directdownload -packagesavemode nupkg -source https://www.powershellgallery.com/api/v2 -OutputDirectory packages' | ||
|
|
||
| - task: PowerShell@2 | ||
| condition: and(succeeded(), eq(variables['GalleryName'], 'LocalRepo')) | ||
| displayName: 'Copy Previous Release .nupkg files to LocalRepo' | ||
| inputs: | ||
| targetType: 'inline' | ||
| script: | | ||
| Get-ChildItem $(System.DefaultWorkingDirectory)/packages -Recurse -Include *.nupkg | Copy-Item -Destination "$(Pipeline.Workspace)\\LocalRepo\\" -Force | ||
| Write-Host "List localRepo..." | ||
| Get-ChildItem "$(Pipeline.Workspace)\\LocalRepo\\" | ||
|
|
||
| - task: PowerShell@2 | ||
| displayName: Install Az Modules from $(GalleryName) | ||
| inputs: | ||
| filePath: 'tools/Test/SmokeTest/ScriptsCaller.ps1' | ||
| arguments: '-RequiredPsVersion $(PSVersion) -Script "./tools/Test/SmokeTest/InstallAzModules.ps1 -Gallery $(GalleryName) -LocalRepoLocation $(LocalRepoLocation)"' | ||
|
|
||
| - task: PowerShell@2 | ||
| displayName: Connect AzAccount | ||
| inputs: | ||
| filePath: 'tools/Test/SmokeTest/ScriptsCaller.ps1' | ||
| arguments: '-RequiredPsVersion $(PSVersion) -Script "./tools/Test/SmokeTest/ConnectAzAccount.ps1 $(Password) $(ServicePrincipal) $(TenantId)"' | ||
|
|
||
| - task: PowerShell@2 | ||
| displayName: Run Smoke Test | ||
| inputs: | ||
| filePath: 'tools/Test/SmokeTest/ScriptsCaller.ps1' | ||
| arguments: '-RequiredPsVersion $(PSVersion) -Script "./tools/Test/SmokeTest/RmCoreSmokeTests.ps1"' | ||
|
|
||
| - task: PowerShell@2 | ||
| displayName: 'Run Smoke Test Reversely' | ||
| inputs: | ||
| filePath: 'tools/Test/SmokeTest/ScriptsCaller.ps1' | ||
| arguments: '-RequiredPsVersion $(PSVersion) -Script "./tools/Test/SmokeTest/RmCoreSmokeTests.ps1 -Reverse"' | ||
|
|
||
| - task: PowerShell@2 | ||
| displayName: Clean Az Modules | ||
| inputs: | ||
| filePath: 'tools/Test/SmokeTest/ScriptsCaller.ps1' | ||
| arguments: '-RequiredPsVersion $(PSVersion) -Script "./tools/Test/SmokeTest/CleanAzModules.ps1"' | ||
|
|
||
| - task: PowerShell@2 | ||
| displayName: Update Az Modules | ||
| inputs: | ||
| filePath: 'tools/Test/SmokeTest/ScriptsCaller.ps1' | ||
| arguments: '-RequiredPsVersion $(PSVersion) -Script "./tools/Test/SmokeTest/UpdateAzModules.ps1 -Gallery $(GalleryName)"' | ||
|
|
||
| - task: PowerShell@2 | ||
| displayName: Run Smoke Test | ||
| inputs: | ||
| filePath: 'tools/Test/SmokeTest/ScriptsCaller.ps1' | ||
| arguments: '-RequiredPsVersion $(PSVersion) -Script "./tools/Test/SmokeTest/RmCoreSmokeTests.ps1"' | ||
|
|
||
| - task: PowerShell@2 | ||
| displayName: 'Run Smoke Test Reversely' | ||
| inputs: | ||
| filePath: 'tools/Test/SmokeTest/ScriptsCaller.ps1' | ||
| arguments: '-RequiredPsVersion $(PSVersion) -Script "./tools/Test/SmokeTest/RmCoreSmokeTests.ps1 -Reverse"' | ||
|
|
||
| - task: PowerShell@2 | ||
| displayName: Clean Az Modules | ||
| inputs: | ||
| filePath: 'tools/Test/SmokeTest/ScriptsCaller.ps1' | ||
| arguments: '-RequiredPsVersion $(PSVersion) -Script "./tools/Test/SmokeTest/CleanAzModules.ps1"' | ||
| - task: PowerShell@2 | ||
| displayName: Connect AzAccount | ||
| inputs: | ||
| filePath: 'tools/Test/SmokeTest/ScriptsCaller.ps1' | ||
| arguments: '-RequiredPsVersion $(PSVersion) -Script "./tools/Test/SmokeTest/ConnectAzAccount.ps1 $(Password) $(ServicePrincipal) $(TenantId) $(SubscriptionId) "' | ||
|
|
||
| - task: PowerShell@2 | ||
| displayName: Run Smoke Test | ||
| inputs: | ||
| filePath: 'tools/Test/SmokeTest/ScriptsCaller.ps1' | ||
| arguments: '-RequiredPsVersion $(PSVersion) -Script "./tools/Test/SmokeTest/RmCoreSmokeTests.ps1 $(SubscriptionId)"' | ||
|
|
||
| - task: PowerShell@2 | ||
| displayName: 'Run Smoke Test Reversely' | ||
| inputs: | ||
| filePath: 'tools/Test/SmokeTest/ScriptsCaller.ps1' | ||
| arguments: '-RequiredPsVersion $(PSVersion) -Script "./tools/Test/SmokeTest/RmCoreSmokeTests.ps1 $(SubscriptionId) -Reverse"' | ||
|
|
||
| - task: PowerShell@2 | ||
| displayName: Clean Az Modules | ||
| inputs: | ||
| filePath: 'tools/Test/SmokeTest/ScriptsCaller.ps1' | ||
| arguments: '-RequiredPsVersion $(PSVersion) -Script "./tools/Test/SmokeTest/CleanAzModules.ps1"' | ||
|
|
||
| - task: PowerShell@2 | ||
| displayName: Update Az Modules | ||
| inputs: | ||
| filePath: 'tools/Test/SmokeTest/ScriptsCaller.ps1' | ||
| arguments: '-RequiredPsVersion $(PSVersion) -Script "./tools/Test/SmokeTest/UpdateAzModules.ps1 -Gallery $(GalleryName) -AllowEquality $(AllowEquality) "' | ||
|
|
||
| - task: PowerShell@2 | ||
| displayName: Run Smoke Test | ||
| inputs: | ||
| filePath: 'tools/Test/SmokeTest/ScriptsCaller.ps1' | ||
| arguments: '-RequiredPsVersion $(PSVersion) -Script "./tools/Test/SmokeTest/RmCoreSmokeTests.ps1 $(SubscriptionId) "' | ||
|
|
||
| - task: PowerShell@2 | ||
| displayName: 'Run Smoke Test Reversely' | ||
| inputs: | ||
| filePath: 'tools/Test/SmokeTest/ScriptsCaller.ps1' | ||
| arguments: '-RequiredPsVersion $(PSVersion) -Script "./tools/Test/SmokeTest/RmCoreSmokeTests.ps1 $(SubscriptionId) -Reverse "' | ||
|
|
||
| - task: PowerShell@2 | ||
| displayName: Clean Az Modules | ||
| inputs: | ||
| filePath: 'tools/Test/SmokeTest/ScriptsCaller.ps1' | ||
| arguments: '-RequiredPsVersion $(PSVersion) -Script "./tools/Test/SmokeTest/CleanAzModules.ps1"' | ||
|
|
||
| - task: PowerShell@2 | ||
| displayName: Install an individual module | ||
| inputs: | ||
| filePath: 'tools/Test/SmokeTest/ScriptsCaller.ps1' | ||
| arguments: '-RequiredPsVersion $(PSVersion) -Script "./tools/Test/SmokeTest/InstallAnIndividualModule.ps1 -Gallery $(GalleryName)"' | ||
|
|
||
| - task: PowerShell@2 | ||
| displayName: Clean Az Modules | ||
| inputs: | ||
| filePath: 'tools/Test/SmokeTest/ScriptsCaller.ps1' | ||
| arguments: '-RequiredPsVersion $(PSVersion) -Script "./tools/Test/SmokeTest/CleanAzModules.ps1"' | ||
|
|
||
| - task: PowerShell@2 | ||
| displayName: Update an individual module | ||
| inputs: | ||
| filePath: 'tools/Test/SmokeTest/ScriptsCaller.ps1' | ||
| arguments: '-RequiredPsVersion $(PSVersion) -Script "./tools/Test/SmokeTest/UpdateAnIndividualModule.ps1 -Gallery $(GalleryName)"' | ||
|
|
||
| - task: PowerShell@2 | ||
| displayName: Clean Az Modules | ||
| inputs: | ||
| filePath: 'tools/Test/SmokeTest/ScriptsCaller.ps1' | ||
| arguments: '-RequiredPsVersion $(PSVersion) -Script "./tools/Test/SmokeTest/CleanAzModules.ps1"' | ||
|
|
||
| - task: PowerShell@2 | ||
| displayName: Install Az on top of an individual module | ||
| inputs: | ||
| filePath: 'tools/Test/SmokeTest/ScriptsCaller.ps1' | ||
| arguments: '-RequiredPsVersion $(PSVersion) -Script "./tools/Test/SmokeTest/InstallAzOnTopOfAnIndividualModule.ps1 -Gallery $(GalleryName)"' | ||
| - task: PowerShell@2 | ||
| displayName: Install an individual module | ||
| inputs: | ||
| filePath: 'tools/Test/SmokeTest/ScriptsCaller.ps1' | ||
| arguments: '-RequiredPsVersion $(PSVersion) -Script "./tools/Test/SmokeTest/InstallAnIndividualModule.ps1 -Gallery $(GalleryName) "' | ||
|
|
||
| - task: PowerShell@2 | ||
| displayName: Clean Az Modules | ||
| inputs: | ||
| filePath: 'tools/Test/SmokeTest/ScriptsCaller.ps1' | ||
| arguments: '-RequiredPsVersion $(PSVersion) -Script "./tools/Test/SmokeTest/CleanAzModules.ps1"' | ||
|
|
||
| - task: PowerShell@2 | ||
| displayName: Update an individual module | ||
| inputs: | ||
| filePath: 'tools/Test/SmokeTest/ScriptsCaller.ps1' | ||
| arguments: '-RequiredPsVersion $(PSVersion) -Script "./tools/Test/SmokeTest/UpdateAnIndividualModule.ps1 -Gallery $(GalleryName) -AllowEquality $(AllowEquality) "' | ||
|
|
||
| - task: PowerShell@2 | ||
| displayName: Clean Az Modules | ||
| inputs: | ||
| filePath: 'tools/Test/SmokeTest/ScriptsCaller.ps1' | ||
| arguments: '-RequiredPsVersion $(PSVersion) -Script "./tools/Test/SmokeTest/CleanAzModules.ps1"' | ||
|
|
||
| - task: PowerShell@2 | ||
| displayName: Install Az on top of an individual module | ||
| inputs: | ||
| filePath: 'tools/Test/SmokeTest/ScriptsCaller.ps1' | ||
| arguments: '-RequiredPsVersion $(PSVersion) -Script "./tools/Test/SmokeTest/InstallAzOnTopOfAnIndividualModule.ps1 -Gallery $(GalleryName) -AllowEquality $(AllowEquality) "' | ||
|
|
||
| - task: PowerShell@2 | ||
| displayName: Clean Az Modules | ||
| inputs: | ||
| filePath: 'tools/Test/SmokeTest/ScriptsCaller.ps1' | ||
| arguments: '-RequiredPsVersion $(PSVersion) -Script "./tools/Test/SmokeTest/CleanAzModules.ps1"' | ||
|
|
||
| - task: PowerShell@2 | ||
| displayName: Install an individual module on top of Az | ||
| inputs: | ||
| filePath: 'tools/Test/SmokeTest/ScriptsCaller.ps1' | ||
| arguments: '-RequiredPsVersion $(PSVersion) -Script "./tools/Test/SmokeTest/InstallAnIndividualModuleOnTopOfAz.ps1 -Gallery $(GalleryName)"' | ||
| - task: PowerShell@2 | ||
| displayName: Clean Az Modules | ||
| inputs: | ||
| filePath: 'tools/Test/SmokeTest/ScriptsCaller.ps1' | ||
| arguments: '-RequiredPsVersion $(PSVersion) -Script "./tools/Test/SmokeTest/CleanAzModules.ps1"' | ||
|
|
||
| - task: PowerShell@2 | ||
| displayName: Install an individual module on top of Az | ||
| inputs: | ||
| filePath: 'tools/Test/SmokeTest/ScriptsCaller.ps1' | ||
| arguments: '-RequiredPsVersion $(PSVersion) -Script "./tools/Test/SmokeTest/InstallAnIndividualModuleOnTopOfAz.ps1 -Gallery $(GalleryName) -AllowEquality $(AllowEquality) "' | ||
This file contains hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.