@@ -38,6 +38,8 @@ parameters:
3838 # Optional: A minimatch pattern for the asset manifests to publish to BAR
3939 assetManifestsPattern : ' */manifests/**/*.xml'
4040
41+ repositoryAlias : self
42+
4143jobs :
4244- job : Asset_Registry_Publish
4345
7880 - ' Illegal entry point, is1ESPipeline is not defined. Repository yaml should not directly reference templates in core-templates folder. ' : error
7981
8082 - ${{ if and(eq(parameters.runAsPublic, 'false'), ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }} :
81- - checkout : self
83+ - checkout : ${{ parameters.repositoryAlias }}
8284 fetchDepth : 3
8385 clean : true
8486
@@ -117,7 +119,7 @@ jobs:
117119 azureSubscription : " Darc: Maestro Production"
118120 scriptType : ps
119121 scriptLocation : scriptPath
120- scriptPath : $(Build.SourcesDirectory )/eng/common/sdk-task.ps1
122+ scriptPath : $(System.DefaultWorkingDirectory )/eng/common/sdk-task.ps1
121123 arguments : -task PublishBuildAssets -restore -msbuildEngine dotnet
122124 /p:ManifestsPath='$(Build.StagingDirectory)/AssetManifests'
123125 /p:IsAssetlessBuild=${{ parameters.isAssetlessBuild }}
@@ -137,7 +139,7 @@ jobs:
137139 Add-Content -Path $filePath -Value "$(DefaultChannels)"
138140 Add-Content -Path $filePath -Value $(IsStableBuild)
139141
140- $symbolExclusionfile = "$(Build.SourcesDirectory )/eng/SymbolPublishingExclusionsFile.txt"
142+ $symbolExclusionfile = "$(System.DefaultWorkingDirectory )/eng/SymbolPublishingExclusionsFile.txt"
141143 if (Test-Path -Path $symbolExclusionfile)
142144 {
143145 Write-Host "SymbolExclusionFile exists"
@@ -177,7 +179,7 @@ jobs:
177179 azureSubscription : " Darc: Maestro Production"
178180 scriptType : ps
179181 scriptLocation : scriptPath
180- scriptPath : $(Build.SourcesDirectory )/eng/common/post-build/publish-using-darc.ps1
182+ scriptPath : $(System.DefaultWorkingDirectory )/eng/common/post-build/publish-using-darc.ps1
181183 arguments : >
182184 -BuildId $(BARBuildId)
183185 -PublishingInfraVersion 3
0 commit comments