@@ -38,6 +38,8 @@ parameters:
38
38
# Optional: A minimatch pattern for the asset manifests to publish to BAR
39
39
assetManifestsPattern : ' */manifests/**/*.xml'
40
40
41
+ repositoryAlias : self
42
+
41
43
jobs :
42
44
- job : Asset_Registry_Publish
43
45
78
80
- ' Illegal entry point, is1ESPipeline is not defined. Repository yaml should not directly reference templates in core-templates folder. ' : error
79
81
80
82
- ${{ if and(eq(parameters.runAsPublic, 'false'), ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }} :
81
- - checkout : self
83
+ - checkout : ${{ parameters.repositoryAlias }}
82
84
fetchDepth : 3
83
85
clean : true
84
86
@@ -117,7 +119,7 @@ jobs:
117
119
azureSubscription : " Darc: Maestro Production"
118
120
scriptType : ps
119
121
scriptLocation : scriptPath
120
- scriptPath : $(Build.SourcesDirectory )/eng/common/sdk-task.ps1
122
+ scriptPath : $(System.DefaultWorkingDirectory )/eng/common/sdk-task.ps1
121
123
arguments : -task PublishBuildAssets -restore -msbuildEngine dotnet
122
124
/p:ManifestsPath='$(Build.StagingDirectory)/AssetManifests'
123
125
/p:IsAssetlessBuild=${{ parameters.isAssetlessBuild }}
@@ -137,7 +139,7 @@ jobs:
137
139
Add-Content -Path $filePath -Value "$(DefaultChannels)"
138
140
Add-Content -Path $filePath -Value $(IsStableBuild)
139
141
140
- $symbolExclusionfile = "$(Build.SourcesDirectory )/eng/SymbolPublishingExclusionsFile.txt"
142
+ $symbolExclusionfile = "$(System.DefaultWorkingDirectory )/eng/SymbolPublishingExclusionsFile.txt"
141
143
if (Test-Path -Path $symbolExclusionfile)
142
144
{
143
145
Write-Host "SymbolExclusionFile exists"
@@ -177,7 +179,7 @@ jobs:
177
179
azureSubscription : " Darc: Maestro Production"
178
180
scriptType : ps
179
181
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
181
183
arguments : >
182
184
-BuildId $(BARBuildId)
183
185
-PublishingInfraVersion 3
0 commit comments