|
47 | 47 | parameters: |
48 | 48 | publicSourceBranch: $(publicSourceBranch) |
49 | 49 | - template: /eng/common/templates/steps/set-dry-run.yml@self |
50 | | - - powershell: | |
51 | | - New-Item -ItemType Directory -Path $(sourceBuildIdOutputDir) |
52 | | - Set-Content -Path $(sourceBuildIdOutputDir)/source-build-id.txt -Value $(sourceBuildId) |
53 | | - displayName: Write Source Build ID to File |
54 | | - - template: /eng/common/templates/steps/publish-artifact.yml@self |
55 | | - parameters: |
56 | | - path: $(sourceBuildIdOutputDir) |
57 | | - artifactName: source-build-id |
58 | | - displayName: Publish Source Build ID Artifact |
59 | | - internalProjectName: ${{ parameters.internalProjectName }} |
60 | | - publicProjectName: ${{ parameters.publicProjectName }} |
61 | 50 | - script: echo "##vso[task.setvariable variable=imageQueueTime]$(date --rfc-2822)" |
62 | 51 | displayName: Set Publish Variables |
63 | 52 | - script: > |
|
67 | 56 | - template: /eng/common/templates/steps/run-imagebuilder.yml@self |
68 | 57 | parameters: |
69 | 58 | displayName: Copy Images |
70 | | - serviceConnection: $(acr.serviceConnectionName) |
| 59 | + serviceConnection: $(publish.serviceConnectionName) |
71 | 60 | internalProjectName: ${{ parameters.internalProjectName }} |
72 | 61 | args: > |
73 | 62 | copyAcrImages |
|
85 | 74 | - template: /eng/common/templates/steps/run-imagebuilder.yml@self |
86 | 75 | parameters: |
87 | 76 | displayName: Publish Manifest |
88 | | - serviceConnection: $(acr.serviceConnectionName) |
| 77 | + serviceConnection: $(publish.serviceConnectionName) |
89 | 78 | internalProjectName: ${{ parameters.internalProjectName }} |
90 | 79 | dockerClientOS: ${{ parameters.dockerClientOS }} |
91 | 80 | args: > |
@@ -169,3 +158,15 @@ jobs: |
169 | 158 | $(imageBuilder.commonCmdArgs) |
170 | 159 | displayName: Post Publish Notification |
171 | 160 | condition: and(always(), eq(variables['publishNotificationsEnabled'], 'true')) |
| 161 | + - powershell: | |
| 162 | + New-Item -ItemType Directory -Path $(sourceBuildIdOutputDir) |
| 163 | + Set-Content -Path $(sourceBuildIdOutputDir)/source-build-id.txt -Value $(sourceBuildId) |
| 164 | + condition: succeeded() |
| 165 | + displayName: Write Source Build ID to File |
| 166 | + - template: /eng/common/templates/steps/publish-artifact.yml@self |
| 167 | + parameters: |
| 168 | + path: $(sourceBuildIdOutputDir) |
| 169 | + artifactName: source-build-id |
| 170 | + displayName: Publish Source Build ID Artifact |
| 171 | + internalProjectName: ${{ parameters.internalProjectName }} |
| 172 | + publicProjectName: ${{ parameters.publicProjectName }} |
0 commit comments