1
1
pr : none
2
2
trigger : none
3
3
4
- strategy :
5
- matrix :
6
- Windows PS 5.1.14 :
7
- Image_Name : ' vs2017-win2016'
8
- PSVersion : ' 5.1.14'
9
-
10
- Windows PS 6.2.4 :
11
- Image_Name : ' vs2017-win2016'
12
- PSVersion : ' 6.2.4'
13
-
14
- Windows PS 7.0.3 :
15
- Image_Name : ' vs2017-win2016'
16
- PSVersion : ' 7.0.3'
17
-
18
- Linux PS 6.2.4 :
19
- Image_Name : ' ubuntu-18.04'
20
- PSVersion : ' 6.2.4'
4
+ jobs :
5
+ - job : SmokeTest
6
+ timeoutInMinutes : 180
7
+ strategy :
8
+ matrix :
9
+ Windows PS 5.1.14 :
10
+ Image_Name : ' vs2017-win2016'
11
+ PSVersion : ' 5.1.14'
12
+ Windows PS 6.2.4 :
13
+ Image_Name : ' vs2017-win2016'
14
+ PSVersion : ' 6.2.4'
15
+ Windows PS 7.0.3 :
16
+ Image_Name : ' vs2017-win2016'
17
+ PSVersion : ' 7.0.3'
18
+ Linux PS 6.2.4 :
19
+ Image_Name : ' ubuntu-18.04'
20
+ PSVersion : ' 6.2.4'
21
+ Linux PS 7.0.3 :
22
+ Image_Name : ' ubuntu-18.04'
23
+ PSVersion : ' 7.0.3'
24
+ MacOS PS 6.2.4 :
25
+ Image_Name : ' macOS-10.15'
26
+ PSVersion : ' 6.2.4'
27
+ MacOS PS 7.0.3 :
28
+ Image_Name : ' macOS-10.15'
29
+ PSVersion : ' 7.0.3'
30
+ pool :
31
+ vmImage : $(Image_Name)
32
+
33
+ steps :
34
+ - task : PowerShell@2
35
+ displayName : Prepare Powershell $(PSVersion)
36
+ inputs :
37
+ filePath : ' tools/Test/SmokeTest/PrepareRequiredPowershell.ps1'
38
+ arguments : ' -RequiredPsVersion $(PSVersion)'
39
+
40
+ - task : DownloadPipelineArtifact@2
41
+ condition : and(succeeded(), eq(variables['GalleryName'], 'LocalRepo'), eq(variables['PipelineId'], ''))
42
+ displayName : Download Latest Artifacts from Build Pipeline
43
+ inputs :
44
+ buildType : specific
45
+ project : $(ProjectToDownloadArtifacts)
46
+ definition : $(BuildPipelineName)
47
+ buildVersionToDownload : ' latest'
48
+ artifactName : $(ArtifactName)
49
+ targetPath : $(Pipeline.Workspace)
50
+
51
+ - task : DownloadPipelineArtifact@2
52
+ condition : and(succeeded(), eq(variables['GalleryName'], 'LocalRepo'), ne(variables['PipelineId'], ''))
53
+ displayName : Download Specified Artifacts from Build Pipeline
54
+ inputs :
55
+ buildType : ' specific'
56
+ project : $(ProjectToDownloadArtifacts)
57
+ definition : $(BuildPipelineName)
58
+ buildVersionToDownload : ' specific'
59
+ pipelineId : $(PipelineId)
60
+ artifactName : ' $(ArtifactName)'
61
+ targetPath : ' $(Pipeline.Workspace)'
62
+
63
+ - task : PowerShell@2
64
+ condition : and(succeeded(), eq(variables['GalleryName'], 'LocalRepo'))
65
+ displayName : Copy Artifacts to LocalRepo
66
+ inputs :
67
+ targetType : ' inline'
68
+ script : |
69
+ New-Item -Path "$(Pipeline.Workspace)" -Name "LocalRepo" -ItemType "directory"
70
+ Copy-Item -Path "$(Pipeline.Workspace)\\*.nupkg" -Destination "$(Pipeline.Workspace)\\LocalRepo\\"
71
+ Write-Host "List artifacts..."
72
+ Get-ChildItem "$(Pipeline.Workspace)\\LocalRepo\\"
73
+
74
+ - task : NuGetCommand@2
75
+ condition : and(succeeded(), eq(variables['GalleryName'], 'LocalRepo'))
76
+ displayName : ' Download Previous Release .nupkg Files'
77
+ inputs :
78
+ command : custom
79
+ arguments : ' install Az -directdownload -packagesavemode nupkg -source https://www.powershellgallery.com/api/v2 -OutputDirectory packages'
80
+
81
+ - task : PowerShell@2
82
+ condition : and(succeeded(), eq(variables['GalleryName'], 'LocalRepo'))
83
+ displayName : ' Copy Previous Release .nupkg files to LocalRepo'
84
+ inputs :
85
+ targetType : ' inline'
86
+ script : |
87
+ Get-ChildItem $(System.DefaultWorkingDirectory)/packages -Recurse -Include *.nupkg | Copy-Item -Destination "$(Pipeline.Workspace)\\LocalRepo\\" -Force
88
+ Write-Host "List localRepo..."
89
+ Get-ChildItem "$(Pipeline.Workspace)\\LocalRepo\\"
90
+
91
+ - task : PowerShell@2
92
+ displayName : Install Az Modules from $(GalleryName)
93
+ inputs :
94
+ filePath : ' tools/Test/SmokeTest/ScriptsCaller.ps1'
95
+ arguments : ' -RequiredPsVersion $(PSVersion) -Script "./tools/Test/SmokeTest/InstallAzModules.ps1 -Gallery $(GalleryName) -LocalRepoLocation $(LocalRepoLocation)"'
21
96
22
- Linux PS 7.0.3 :
23
- Image_Name : ' ubuntu-18.04'
24
- PSVersion : ' 7.0.3'
25
-
26
- MacOS PS 6.2.4 :
27
- Image_Name : ' macOS-10.15'
28
- PSVersion : ' 6.2.4'
29
-
30
- MacOS PS 7.0.3 :
31
- Image_Name : ' macOS-10.15'
32
- PSVersion : ' 7.0.3'
33
-
34
- pool :
35
- vmImage : $(Image_Name)
36
-
37
- steps :
38
- - task : PowerShell@2
39
- displayName : Prepare Powershell $(PSVersion)
40
- inputs :
41
- filePath : ' tools/Test/SmokeTest/PrepareRequiredPowershell.ps1'
42
- arguments : ' -RequiredPsVersion $(PSVersion)'
43
-
44
- - task : DownloadPipelineArtifact@2
45
- condition : and(succeeded(), eq(variables['GalleryName'], 'LocalRepo'))
46
- displayName : Download Artifacts from Build Pipeline
47
- inputs :
48
- buildType : specific
49
- project : $(ProjectToDownloadArtifacts)
50
- definition : $(BuildPipelineName)
51
- buildVersionToDownload : latestFromBranch
52
- branchName : $(BranchName)
53
- artifactName : $(ArtifactName)
54
- targetPath : $(Pipeline.Workspace)
55
-
56
- - task : PowerShell@2
57
- condition : and(succeeded(), eq(variables['GalleryName'], 'LocalRepo'))
58
- displayName : Copy Artifacts to LocalRepo
59
- inputs :
60
- targetType : ' inline'
61
- script : |
62
- New-Item -Path "$(Pipeline.Workspace)" -Name "LocalRepo" -ItemType "directory"
63
- Copy-Item -Path "$(Pipeline.Workspace)\\*.nupkg" -Destination "$(Pipeline.Workspace)\\LocalRepo\\"
64
- Write-Host "List artifacts..."
65
- Get-ChildItem "$(Pipeline.Workspace)\\LocalRepo\\"
66
-
67
- - task : NuGetCommand@2
68
- condition : and(succeeded(), eq(variables['GalleryName'], 'LocalRepo'))
69
- displayName : ' Download Previous Release .nupkg Files'
70
- inputs :
71
- command : custom
72
- arguments : ' install Az -directdownload -packagesavemode nupkg -source https://www.powershellgallery.com/api/v2 -OutputDirectory packages'
73
-
74
- - task : PowerShell@2
75
- condition : and(succeeded(), eq(variables['GalleryName'], 'LocalRepo'))
76
- displayName : ' Copy Previous Release .nupkg files to LocalRepo'
77
- inputs :
78
- targetType : ' inline'
79
- script : |
80
- Get-ChildItem $(System.DefaultWorkingDirectory)/packages -Recurse -Include *.nupkg | Copy-Item -Destination "$(Pipeline.Workspace)\\LocalRepo\\" -Force
81
- Write-Host "List localRepo..."
82
- Get-ChildItem "$(Pipeline.Workspace)\\LocalRepo\\"
83
-
84
- - task : PowerShell@2
85
- displayName : Install Az Modules from $(GalleryName)
86
- inputs :
87
- filePath : ' tools/Test/SmokeTest/ScriptsCaller.ps1'
88
- arguments : ' -RequiredPsVersion $(PSVersion) -Script "./tools/Test/SmokeTest/InstallAzModules.ps1 -Gallery $(GalleryName) -LocalRepoLocation $(LocalRepoLocation)"'
89
-
90
- - task : PowerShell@2
91
- displayName : Connect AzAccount
92
- inputs :
93
- filePath : ' tools/Test/SmokeTest/ScriptsCaller.ps1'
94
- arguments : ' -RequiredPsVersion $(PSVersion) -Script "./tools/Test/SmokeTest/ConnectAzAccount.ps1 $(Password) $(ServicePrincipal) $(TenantId)"'
95
-
96
- - task : PowerShell@2
97
- displayName : Run Smoke Test
98
- inputs :
99
- filePath : ' tools/Test/SmokeTest/ScriptsCaller.ps1'
100
- arguments : ' -RequiredPsVersion $(PSVersion) -Script "./tools/Test/SmokeTest/RmCoreSmokeTests.ps1"'
101
-
102
- - task : PowerShell@2
103
- displayName : ' Run Smoke Test Reversely'
104
- inputs :
105
- filePath : ' tools/Test/SmokeTest/ScriptsCaller.ps1'
106
- arguments : ' -RequiredPsVersion $(PSVersion) -Script "./tools/Test/SmokeTest/RmCoreSmokeTests.ps1 -Reverse"'
107
-
108
- - task : PowerShell@2
109
- displayName : Clean Az Modules
110
- inputs :
111
- filePath : ' tools/Test/SmokeTest/ScriptsCaller.ps1'
112
- arguments : ' -RequiredPsVersion $(PSVersion) -Script "./tools/Test/SmokeTest/CleanAzModules.ps1"'
113
-
114
- - task : PowerShell@2
115
- displayName : Update Az Modules
116
- inputs :
117
- filePath : ' tools/Test/SmokeTest/ScriptsCaller.ps1'
118
- arguments : ' -RequiredPsVersion $(PSVersion) -Script "./tools/Test/SmokeTest/UpdateAzModules.ps1 -Gallery $(GalleryName)"'
119
-
120
- - task : PowerShell@2
121
- displayName : Run Smoke Test
122
- inputs :
123
- filePath : ' tools/Test/SmokeTest/ScriptsCaller.ps1'
124
- arguments : ' -RequiredPsVersion $(PSVersion) -Script "./tools/Test/SmokeTest/RmCoreSmokeTests.ps1"'
125
-
126
- - task : PowerShell@2
127
- displayName : ' Run Smoke Test Reversely'
128
- inputs :
129
- filePath : ' tools/Test/SmokeTest/ScriptsCaller.ps1'
130
- arguments : ' -RequiredPsVersion $(PSVersion) -Script "./tools/Test/SmokeTest/RmCoreSmokeTests.ps1 -Reverse"'
131
-
132
- - task : PowerShell@2
133
- displayName : Clean Az Modules
134
- inputs :
135
- filePath : ' tools/Test/SmokeTest/ScriptsCaller.ps1'
136
- arguments : ' -RequiredPsVersion $(PSVersion) -Script "./tools/Test/SmokeTest/CleanAzModules.ps1"'
97
+ - task : PowerShell@2
98
+ displayName : Connect AzAccount
99
+ inputs :
100
+ filePath : ' tools/Test/SmokeTest/ScriptsCaller.ps1'
101
+ arguments : ' -RequiredPsVersion $(PSVersion) -Script "./tools/Test/SmokeTest/ConnectAzAccount.ps1 $(Password) $(ServicePrincipal) $(TenantId) $(SubscriptionId) "'
102
+
103
+ - task : PowerShell@2
104
+ displayName : Run Smoke Test
105
+ inputs :
106
+ filePath : ' tools/Test/SmokeTest/ScriptsCaller.ps1'
107
+ arguments : ' -RequiredPsVersion $(PSVersion) -Script "./tools/Test/SmokeTest/RmCoreSmokeTests.ps1 $(SubscriptionId)"'
108
+
109
+ - task : PowerShell@2
110
+ displayName : ' Run Smoke Test Reversely'
111
+ inputs :
112
+ filePath : ' tools/Test/SmokeTest/ScriptsCaller.ps1'
113
+ arguments : ' -RequiredPsVersion $(PSVersion) -Script "./tools/Test/SmokeTest/RmCoreSmokeTests.ps1 $(SubscriptionId) -Reverse"'
114
+
115
+ - task : PowerShell@2
116
+ displayName : Clean Az Modules
117
+ inputs :
118
+ filePath : ' tools/Test/SmokeTest/ScriptsCaller.ps1'
119
+ arguments : ' -RequiredPsVersion $(PSVersion) -Script "./tools/Test/SmokeTest/CleanAzModules.ps1"'
120
+
121
+ - task : PowerShell@2
122
+ displayName : Update Az Modules
123
+ inputs :
124
+ filePath : ' tools/Test/SmokeTest/ScriptsCaller.ps1'
125
+ arguments : ' -RequiredPsVersion $(PSVersion) -Script "./tools/Test/SmokeTest/UpdateAzModules.ps1 -Gallery $(GalleryName) -AllowEquality $(AllowEquality) "'
126
+
127
+ - task : PowerShell@2
128
+ displayName : Run Smoke Test
129
+ inputs :
130
+ filePath : ' tools/Test/SmokeTest/ScriptsCaller.ps1'
131
+ arguments : ' -RequiredPsVersion $(PSVersion) -Script "./tools/Test/SmokeTest/RmCoreSmokeTests.ps1 $(SubscriptionId) "'
132
+
133
+ - task : PowerShell@2
134
+ displayName : ' Run Smoke Test Reversely'
135
+ inputs :
136
+ filePath : ' tools/Test/SmokeTest/ScriptsCaller.ps1'
137
+ arguments : ' -RequiredPsVersion $(PSVersion) -Script "./tools/Test/SmokeTest/RmCoreSmokeTests.ps1 $(SubscriptionId) -Reverse "'
138
+
139
+ - task : PowerShell@2
140
+ displayName : Clean Az Modules
141
+ inputs :
142
+ filePath : ' tools/Test/SmokeTest/ScriptsCaller.ps1'
143
+ arguments : ' -RequiredPsVersion $(PSVersion) -Script "./tools/Test/SmokeTest/CleanAzModules.ps1"'
137
144
138
- - task : PowerShell@2
139
- displayName : Install an individual module
140
- inputs :
141
- filePath : ' tools/Test/SmokeTest/ScriptsCaller.ps1'
142
- arguments : ' -RequiredPsVersion $(PSVersion) -Script "./tools/Test/SmokeTest/InstallAnIndividualModule.ps1 -Gallery $(GalleryName)"'
143
-
144
- - task : PowerShell@2
145
- displayName : Clean Az Modules
146
- inputs :
147
- filePath : ' tools/Test/SmokeTest/ScriptsCaller.ps1'
148
- arguments : ' -RequiredPsVersion $(PSVersion) -Script "./tools/Test/SmokeTest/CleanAzModules.ps1"'
149
-
150
- - task : PowerShell@2
151
- displayName : Update an individual module
152
- inputs :
153
- filePath : ' tools/Test/SmokeTest/ScriptsCaller.ps1'
154
- arguments : ' -RequiredPsVersion $(PSVersion) -Script "./tools/Test/SmokeTest/UpdateAnIndividualModule.ps1 -Gallery $(GalleryName)"'
155
-
156
- - task : PowerShell@2
157
- displayName : Clean Az Modules
158
- inputs :
159
- filePath : ' tools/Test/SmokeTest/ScriptsCaller.ps1'
160
- arguments : ' -RequiredPsVersion $(PSVersion) -Script "./tools/Test/SmokeTest/CleanAzModules.ps1"'
161
-
162
- - task : PowerShell@2
163
- displayName : Install Az on top of an individual module
164
- inputs :
165
- filePath : ' tools/Test/SmokeTest/ScriptsCaller.ps1'
166
- arguments : ' -RequiredPsVersion $(PSVersion) -Script "./tools/Test/SmokeTest/InstallAzOnTopOfAnIndividualModule.ps1 -Gallery $(GalleryName)"'
145
+ - task : PowerShell@2
146
+ displayName : Install an individual module
147
+ inputs :
148
+ filePath : ' tools/Test/SmokeTest/ScriptsCaller.ps1'
149
+ arguments : ' -RequiredPsVersion $(PSVersion) -Script "./tools/Test/SmokeTest/InstallAnIndividualModule.ps1 -Gallery $(GalleryName) "'
150
+
151
+ - task : PowerShell@2
152
+ displayName : Clean Az Modules
153
+ inputs :
154
+ filePath : ' tools/Test/SmokeTest/ScriptsCaller.ps1'
155
+ arguments : ' -RequiredPsVersion $(PSVersion) -Script "./tools/Test/SmokeTest/CleanAzModules.ps1"'
156
+
157
+ - task : PowerShell@2
158
+ displayName : Update an individual module
159
+ inputs :
160
+ filePath : ' tools/Test/SmokeTest/ScriptsCaller.ps1'
161
+ arguments : ' -RequiredPsVersion $(PSVersion) -Script "./tools/Test/SmokeTest/UpdateAnIndividualModule.ps1 -Gallery $(GalleryName) -AllowEquality $(AllowEquality) "'
162
+
163
+ - task : PowerShell@2
164
+ displayName : Clean Az Modules
165
+ inputs :
166
+ filePath : ' tools/Test/SmokeTest/ScriptsCaller.ps1'
167
+ arguments : ' -RequiredPsVersion $(PSVersion) -Script "./tools/Test/SmokeTest/CleanAzModules.ps1"'
168
+
169
+ - task : PowerShell@2
170
+ displayName : Install Az on top of an individual module
171
+ inputs :
172
+ filePath : ' tools/Test/SmokeTest/ScriptsCaller.ps1'
173
+ arguments : ' -RequiredPsVersion $(PSVersion) -Script "./tools/Test/SmokeTest/InstallAzOnTopOfAnIndividualModule.ps1 -Gallery $(GalleryName) -AllowEquality $(AllowEquality) "'
167
174
168
- - task : PowerShell@2
169
- displayName : Clean Az Modules
170
- inputs :
171
- filePath : ' tools/Test/SmokeTest/ScriptsCaller.ps1'
172
- arguments : ' -RequiredPsVersion $(PSVersion) -Script "./tools/Test/SmokeTest/CleanAzModules.ps1"'
173
-
174
- - task : PowerShell@2
175
- displayName : Install an individual module on top of Az
176
- inputs :
177
- filePath : ' tools/Test/SmokeTest/ScriptsCaller.ps1'
178
- arguments : ' -RequiredPsVersion $(PSVersion) -Script "./tools/Test/SmokeTest/InstallAnIndividualModuleOnTopOfAz.ps1 -Gallery $(GalleryName)"'
175
+ - task : PowerShell@2
176
+ displayName : Clean Az Modules
177
+ inputs :
178
+ filePath : ' tools/Test/SmokeTest/ScriptsCaller.ps1'
179
+ arguments : ' -RequiredPsVersion $(PSVersion) -Script "./tools/Test/SmokeTest/CleanAzModules.ps1"'
180
+
181
+ - task : PowerShell@2
182
+ displayName : Install an individual module on top of Az
183
+ inputs :
184
+ filePath : ' tools/Test/SmokeTest/ScriptsCaller.ps1'
185
+ arguments : ' -RequiredPsVersion $(PSVersion) -Script "./tools/Test/SmokeTest/InstallAnIndividualModuleOnTopOfAz.ps1 -Gallery $(GalleryName) -AllowEquality $(AllowEquality) "'
0 commit comments