@@ -9,14 +9,22 @@ parameters:
99 - name : ctx
1010 type : object
1111
12+ - name : pool
13+ type : object
14+
1215 - name : publishExistingRunID
1316 type : string
1417 default : ' nil'
1518
19+ # Unused. Declared so pool selection doesn't fail when trying to pass them.
20+ - name : builder
21+ type : object
22+
1623stages :
1724 - template : public-publish-stage.yml
1825 parameters :
1926 ctx : ${{ parameters.ctx }}
27+ pool : ${{ parameters.pool }}
2028
2129 id : PublishPublicBinaries
2230
@@ -30,13 +38,14 @@ stages:
3038 parameters :
3139 runID : ${{ parameters.publishExistingRunID }}
3240
33- - task : PowerShell@2
41+ - task : AzurePowerShell@5
3442 displayName : ➡️ Send Publishing Request To Release Studio
3543 inputs :
36- targetType : filePath
37- filePath : ' $(NetCorePublishingScripts)/RM.MsGo.SendPublishRequest.ps1'
38- arguments :
39- -MIClientId "$(MI_ClientId)"
44+ ScriptType : FilePath
45+ ScriptPath : ' $(NetCorePublishingScripts)/RM.MsGo.SendPublishRequest.ps1'
46+ azureSubscription : ' golang-dnceng-rs-publish'
47+ azurePowerShellVersion : ' LatestVersion'
48+ ScriptArguments :
4049 -PublishingFilesPath "$(GoBinariesDir)"
4150 -BuildNumber "$(Build.BuildNumber)"
4251 -BranchName "$(PublishBranchAlias)"
@@ -51,6 +60,7 @@ stages:
5160 - template : public-publish-stage.yml
5261 parameters :
5362 ctx : ${{ parameters.ctx }}
63+ pool : ${{ parameters.pool }}
5464 id : WaitPublicBinaries
5565 dependsOn : PublishPublicBinaries
5666 variables :
@@ -64,31 +74,34 @@ stages:
6474 path : $(ReleaseStudioBinariesManifestDir)
6575 artifact : Release Studio Binaries Manifest
6676 steps :
67- - task : PowerShell@2
77+ - task : AzurePowerShell@5
6878 displayName : ⌚ Wait for Publishing Request Completion
6979 inputs :
70- targetType : filePath
71- filePath : ' $(NetCorePublishingScripts)/RM.MsGo.WaitForPublishingRequestToBeLive.ps1'
72- arguments :
73- -MIClientId "$(MI_ClientId)"
80+ ScriptType : FilePath
81+ ScriptPath : ' $(NetCorePublishingScripts)/RM.MsGo.WaitForPublishingRequestToBeLive.ps1'
82+ azureSubscription : ' golang-dnceng-rs-publish'
83+ azurePowerShellVersion : ' LatestVersion'
84+ ScriptArguments :
7485 -RequestId "$(RequestID)"
7586
7687 - pwsh : New-Item "$(ReleaseStudioBinariesManifestDir)" -ItemType Directory -ErrorAction Ignore
7788 displayName : ' Create Publish Manifest File Output Directory'
7889
79- - task : PowerShell@2
90+ - task : AzurePowerShell@5
8091 displayName : 🗃️ Create Publish Manifest File
8192 inputs :
82- targetType : filePath
83- filePath : ' $(NetCorePublishingScripts)/RM.MsGo.CreateOutputManifestFile.ps1'
84- arguments :
85- -MIClientId "$(MI_ClientId)"
93+ ScriptType : FilePath
94+ ScriptPath : ' $(NetCorePublishingScripts)/RM.MsGo.CreateOutputManifestFile.ps1'
95+ azureSubscription : ' golang-dnceng-rs-publish'
96+ azurePowerShellVersion : ' LatestVersion'
97+ ScriptArguments :
8698 -OutputDirectory "$(ReleaseStudioBinariesManifestDir)"
8799 -RequestId "$(RequestID)"
88100
89101 - template : public-publish-stage.yml
90102 parameters :
91103 ctx : ${{ parameters.ctx }}
104+ pool : ${{ parameters.pool }}
92105 id : PublishAssetManifest
93106 dependsOn : WaitPublicBinaries
94107 variables :
@@ -121,13 +134,14 @@ stages:
121134 -o '$(BuildAssetsPrePublishDir)/assets.json'
122135 displayName: 🏗️ Create build asset JSON
123136
124- - task : PowerShell@2
137+ - task : AzurePowerShell@5
125138 displayName : ➡️ Send Publishing Request To Release Studio
126139 inputs :
127- targetType : filePath
128- filePath : ' $(NetCorePublishingScripts)/RM.MsGo.SendPublishRequest.ps1'
129- arguments :
130- -MIClientId "$(MI_ClientId)"
140+ ScriptType : FilePath
141+ ScriptPath : ' $(NetCorePublishingScripts)/RM.MsGo.SendPublishRequest.ps1'
142+ azureSubscription : ' golang-dnceng-rs-publish'
143+ azurePowerShellVersion : ' LatestVersion'
144+ ScriptArguments :
131145 -PublishingFilesPath "$(BuildAssetsPrePublishDir)"
132146 -BuildNumber "$(Build.BuildNumber)"
133147 -BranchName "$(PublishBranchAlias)"
@@ -142,6 +156,7 @@ stages:
142156 - template : public-publish-stage.yml
143157 parameters :
144158 ctx : ${{ parameters.ctx }}
159+ pool : ${{ parameters.pool }}
145160 id : WaitAssetManifest
146161 dependsOn : PublishAssetManifest
147162 variables :
@@ -160,25 +175,27 @@ stages:
160175 path : $(ReleaseStudioMetaManifestDir)
161176 artifact : Release Studio Meta Manifest
162177 steps :
163- - task : PowerShell@2
178+ - task : AzurePowerShell@5
164179 displayName : ⌚ Wait for Publishing Request Completion
165180 inputs :
166- targetType : filePath
167- filePath : ' $(NetCorePublishingScripts)/RM.MsGo.WaitForPublishingRequestToBeLive.ps1'
168- arguments :
169- -MIClientId "$(MI_ClientId)"
181+ ScriptType : FilePath
182+ ScriptPath : ' $(NetCorePublishingScripts)/RM.MsGo.WaitForPublishingRequestToBeLive.ps1'
183+ azureSubscription : ' golang-dnceng-rs-publish'
184+ azurePowerShellVersion : ' LatestVersion'
185+ ScriptArguments :
170186 -RequestId "$(RequestID)"
171187
172188 - pwsh : New-Item "$(ReleaseStudioMetaManifestDir)" -ItemType Directory -ErrorAction Ignore
173189 displayName : ' Create Meta Manifest File Output Directory'
174190
175- - task : PowerShell@2
191+ - task : AzurePowerShell@5
176192 displayName : 🗃️ Create Meta Manifest File
177193 inputs :
178- targetType : filePath
179- filePath : ' $(NetCorePublishingScripts)/RM.MsGo.CreateOutputManifestFile.ps1'
180- arguments :
181- -MIClientId "$(MI_ClientId)"
194+ ScriptType : FilePath
195+ ScriptPath : ' $(NetCorePublishingScripts)/RM.MsGo.CreateOutputManifestFile.ps1'
196+ azureSubscription : ' golang-dnceng-rs-publish'
197+ azurePowerShellVersion : ' LatestVersion'
198+ ScriptArguments :
182199 -OutputDirectory "$(ReleaseStudioMetaManifestDir)"
183200 -RequestId "$(RequestID)"
184201
0 commit comments