@@ -32,6 +32,10 @@ parameters:
3232
3333 is1ESPipeline : ' '
3434
35+ repositoryAlias : self
36+
37+ officialBuildId : ' '
38+
3539jobs :
3640- job : Asset_Registry_Publish
3741
5458 value : false
5559 # unconditional - needed for logs publishing (redactor tool version)
5660 - template : /eng/common/core-templates/post-build/common-variables.yml
61+ - name : OfficialBuildId
62+ ${{ if ne(parameters.officialBuildId, '') }} :
63+ value : ${{ parameters.officialBuildId }}
64+ ${{ else }} :
65+ value : $(Build.BuildNumber)
5766
5867 pool :
5968 # We don't use the collection uri here because it might vary (.visualstudio.com vs. dev.azure.com)
7281 - ' Illegal entry point, is1ESPipeline is not defined. Repository yaml should not directly reference templates in core-templates folder. ' : error
7382
7483 - ${{ if and(eq(parameters.runAsPublic, 'false'), ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }} :
75- - checkout : self
84+ - checkout : ${{ parameters.repositoryAlias }}
7685 fetchDepth : 3
7786 clean : true
7887
@@ -93,12 +102,12 @@ jobs:
93102 azureSubscription : " Darc: Maestro Production"
94103 scriptType : ps
95104 scriptLocation : scriptPath
96- scriptPath : $(Build.SourcesDirectory )/eng/common/sdk-task.ps1
105+ scriptPath : $(System.DefaultWorkingDirectory )/eng/common/sdk-task.ps1
97106 arguments : -task PublishBuildAssets -restore -msbuildEngine dotnet
98107 /p:ManifestsPath='$(Build.StagingDirectory)/Download/AssetManifests'
99108 /p:MaestroApiEndpoint=https://maestro.dot.net
100109 /p:PublishUsingPipelines=${{ parameters.publishUsingPipelines }}
101- /p:OfficialBuildId=$(Build.BuildNumber )
110+ /p:OfficialBuildId=$(OfficialBuildId )
102111 condition : ${{ parameters.condition }}
103112 continueOnError : ${{ parameters.continueOnError }}
104113
@@ -113,7 +122,7 @@ jobs:
113122 Add-Content -Path $filePath -Value "$(DefaultChannels)"
114123 Add-Content -Path $filePath -Value $(IsStableBuild)
115124
116- $symbolExclusionfile = "$(Build.SourcesDirectory )/eng/SymbolPublishingExclusionsFile.txt"
125+ $symbolExclusionfile = "$(System.DefaultWorkingDirectory )/eng/SymbolPublishingExclusionsFile.txt"
117126 if (Test-Path -Path $symbolExclusionfile)
118127 {
119128 Write-Host "SymbolExclusionFile exists"
@@ -142,7 +151,7 @@ jobs:
142151 azureSubscription : " Darc: Maestro Production"
143152 scriptType : ps
144153 scriptLocation : scriptPath
145- scriptPath : $(Build.SourcesDirectory )/eng/common/post-build/publish-using-darc.ps1
154+ scriptPath : $(System.DefaultWorkingDirectory )/eng/common/post-build/publish-using-darc.ps1
146155 arguments : >
147156 -BuildId $(BARBuildId)
148157 -PublishingInfraVersion 3
0 commit comments