@@ -96,9 +96,15 @@ param(
96
96
[string ]$Projects ,
97
97
[string ]$PackageVersionPropsUrl = $env: PB_PackageVersionPropsUrl ,
98
98
[string ]$AccessTokenSuffix = $env: PB_AccessTokenSuffix ,
99
- [string ]$RestoreSources = $null ,
100
- [string ]$AssetRootUrl = $null ,
101
- [string ]$ProductBuildId = $null ,
99
+ [string ]$RestoreSources = ${env: PB_RestoreSource} ,
100
+ [string ]$AssetRootUrl = ${env: PB_AssetRootUrl} ,
101
+ [string ]$ProductBuildId = ${env: ProductBuildId} ,
102
+ [string ]$PublishBlobFeedUrl = ${env: PB_PublishBlobFeedUrl} ,
103
+ [string ]$PublishType = ${env: PB_PublishType} ,
104
+ [string ]$SkipTests = ${env: PB_SkipTests} ,
105
+ [string ]$IsFinalBuild = ${env: PB_IsFinalBuild} ,
106
+ [string ]$SignType = ${env: PB_SignType} ,
107
+ [string ]$PublishBlobFeedKey = ${env: PB_PublishBlobFeedKey} ,
102
108
[Parameter (ValueFromRemainingArguments = $true )]
103
109
[string []]$MSBuildArguments
104
110
)
@@ -220,6 +226,13 @@ if (!$ToolsSource) { $ToolsSource = 'https://aspnetcore.blob.core.windows.net/bu
220
226
221
227
[string []] $ProdConArgs = @ ()
222
228
229
+ if ($Projects ) {
230
+ $MSBuildArguments += " -p:Projects=$Projects "
231
+ $MSBuildArguments += " -p:_ProjectsOnly=true"
232
+ }
233
+
234
+ # PipeBuild parameters
235
+
223
236
if ($PackageVersionPropsUrl ) {
224
237
$IntermediateDir = Join-Path $PSScriptRoot ' obj'
225
238
$PropsFilePath = Join-Path $IntermediateDir ' external-dependencies.props'
@@ -232,21 +245,41 @@ if ($AccessTokenSuffix) {
232
245
$ProdConArgs += " -p:DotNetAssetRootAccessTokenSuffix=$AccessTokenSuffix "
233
246
}
234
247
235
- if ($Projects ) {
236
- $MSBuildArguments += " -p:Projects=$Projects "
237
- $MSBuildArguments += " -p:_ProjectsOnly=true"
248
+ if ($AssetRootUrl ) {
249
+ $ProdConArgs += " -p:DotNetAssetRootUrl=$AssetRootUrl "
238
250
}
239
251
240
- # PipeBuild parameters
241
- $ProdConArgs += " -p:DotNetAssetRootUrl=${env: PB_AssetRootUrl} "
242
- $ProdConArgs += " -p:DotNetAdditionalRestoreSources=${env: PB_RestoreSource} "
243
- $ProdConArgs += " -p:DotNetProductBuildId=${env: ProductBuildId} "
244
- $ProdConArgs += " -p:PublishBlobFeedUrl=${env: PB_PublishBlobFeedUrl} "
245
- $ProdConArgs += " -p:PublishType=${env: PB_PublishType} "
246
- $ProdConArgs += " -p:SkipTests=${env: PB_SkipTests} "
247
- $ProdConArgs += " -p:IsFinalBuild=${env: PB_IsFinalBuild} "
248
- $ProdConArgs += " -p:SignType=${env: PB_SignType} "
249
- $ProdConArgs += " -p:PublishBlobFeedKey=${env: PB_PublishBlobFeedKey} "
252
+ if ($RestoreSources ) {
253
+ $ProdConArgs += " -p:DotNetAdditionalRestoreSources=$RestoreSources "
254
+ }
255
+
256
+ if ($ProductBuildId ) {
257
+ $ProdConArgs += " -p:DotNetProductBuildId=$ProductBuildId "
258
+ }
259
+
260
+ if ($PublishBlobFeedUrl ) {
261
+ $ProdConArgs += " -p:PublishBlobFeedUrl=$PublishBlobFeedUrl "
262
+ }
263
+
264
+ if ($PublishType ) {
265
+ $ProdConArgs += " -p:PublishType=$PublishType "
266
+ }
267
+
268
+ if ($SkipTests ) {
269
+ $ProdConArgs += " -p:SkipTests=$SkipTests "
270
+ }
271
+
272
+ if ($IsFinalBuild ) {
273
+ $ProdConArgs += " -p:IsFinalBuild=$IsFinalBuild "
274
+ }
275
+
276
+ if ($SignType ) {
277
+ $ProdConArgs += " -p:SignType=$SignType "
278
+ }
279
+
280
+ if ($PublishBlobFeedKey ) {
281
+ $ProdConArgs += " -p:PublishBlobFeedKey=$PublishBlobFeedKey "
282
+ }
250
283
251
284
# Execute
252
285
0 commit comments