-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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' into youri/monitor-issue
- Loading branch information
Showing
1,405 changed files
with
199,298 additions
and
42,709 deletions.
There are no files selected for viewing
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,178 @@ | ||
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' | ||
|
||
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: 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: 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)"' |
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 |
---|---|---|
|
@@ -31,7 +31,7 @@ LABEL maintainer="Azure PowerShell Team <[email protected]>" \ | |
|
||
# install azure-powershell from PSGallery | ||
RUN pwsh -Command Set-PSRepository -Name ${REPOSITORY} -InstallationPolicy Trusted && \ | ||
pwsh -Command Install-Module -Name ${MODULE} -RequiredVersion ${VERSION} -Repository ${REPOSITORY} && \ | ||
pwsh -Command Install-Module -Name ${MODULE} -RequiredVersion ${VERSION} -Scope AllUsers -Repository ${REPOSITORY} && \ | ||
pwsh -Command Set-PSRepository -Name ${REPOSITORY} -InstallationPolicy Untrusted | ||
|
||
# create AzureRmContextSettings.json before it was generated | ||
|
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 |
---|---|---|
|
@@ -31,7 +31,7 @@ LABEL maintainer="Azure PowerShell Team <[email protected]>" \ | |
|
||
# install azure-powershell from PSGallery | ||
RUN pwsh -Command Set-PSRepository -Name ${REPOSITORY} -InstallationPolicy Trusted && \ | ||
pwsh -Command Install-Module -Name ${MODULE} -RequiredVersion ${VERSION} -Repository ${REPOSITORY} && \ | ||
pwsh -Command Install-Module -Name ${MODULE} -RequiredVersion ${VERSION} -Scope AllUsers -Repository ${REPOSITORY} && \ | ||
pwsh -Command Set-PSRepository -Name ${REPOSITORY} -InstallationPolicy Untrusted | ||
|
||
# create AzureRmContextSettings.json before it was generated | ||
|
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 |
---|---|---|
|
@@ -31,7 +31,7 @@ LABEL maintainer="Azure PowerShell Team <[email protected]>" \ | |
|
||
# install azure-powershell from PSGallery | ||
RUN pwsh -Command Set-PSRepository -Name ${REPOSITORY} -InstallationPolicy Trusted && \ | ||
pwsh -Command Install-Module -Name ${MODULE} -RequiredVersion ${VERSION} -Repository ${REPOSITORY} && \ | ||
pwsh -Command Install-Module -Name ${MODULE} -RequiredVersion ${VERSION} -Scope AllUsers -Repository ${REPOSITORY} && \ | ||
pwsh -Command Set-PSRepository -Name ${REPOSITORY} -InstallationPolicy Untrusted | ||
|
||
# create AzureRmContextSettings.json before it was generated | ||
|
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 |
---|---|---|
|
@@ -31,7 +31,7 @@ LABEL maintainer="Azure PowerShell Team <[email protected]>" \ | |
|
||
# install azure-powershell from PSGallery | ||
RUN pwsh -Command Set-PSRepository -Name ${REPOSITORY} -InstallationPolicy Trusted && \ | ||
pwsh -Command Install-Module -Name ${MODULE} -RequiredVersion ${VERSION} -Repository ${REPOSITORY} && \ | ||
pwsh -Command Install-Module -Name ${MODULE} -RequiredVersion ${VERSION} -Scope AllUsers -Repository ${REPOSITORY} && \ | ||
pwsh -Command Set-PSRepository -Name ${REPOSITORY} -InstallationPolicy Untrusted | ||
|
||
# create AzureRmContextSettings.json before it was generated | ||
|
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
Oops, something went wrong.