|
6 | 6 | ## |
7 | 7 |
|
8 | 8 | parameters: |
| 9 | +- name: artifacts_binary |
| 10 | + displayName: Binary Artifacts to Publish |
| 11 | + type: string |
| 12 | + default: '' |
| 13 | +- name: artifacts_identifier |
| 14 | + displayName: Artifacts Identifier |
| 15 | + type: string |
| 16 | + default: 'Artifacts' |
| 17 | +- name: artifacts_other |
| 18 | + displayName: Other Artifacts to Publish |
| 19 | + type: string |
| 20 | + default: '' |
9 | 21 | - name: build_arch |
10 | 22 | displayName: Architectures (e.g. IA32, X64) |
11 | 23 | type: string |
@@ -50,10 +62,6 @@ parameters: |
50 | 62 | displayName: Tool Chain (e.g. VS2022) |
51 | 63 | type: string |
52 | 64 | default: '' |
53 | | -- name: extra_artifacts |
54 | | - displayName: Additional Artifacts to Publish |
55 | | - type: string |
56 | | - default: '' |
57 | 65 |
|
58 | 66 | steps: |
59 | 67 |
|
@@ -121,35 +129,19 @@ steps: |
121 | 129 | condition: and(and(gt(variables.pkg_count, 0), succeeded()), eq(variables['Run'], true)) |
122 | 130 | timeoutInMinutes: ${{ parameters.run_timeout }} |
123 | 131 |
|
124 | | -# Copy the build logs to the artifact staging directory |
125 | | -- task: CopyFiles@2 |
126 | | - displayName: Copy Build Logs |
127 | | - inputs: |
128 | | - targetFolder: "$(Build.ArtifactStagingDirectory)" |
129 | | - SourceFolder: "Build" |
130 | | - contents: | |
131 | | - BUILDLOG_*.txt |
132 | | - BUILDLOG_*.md |
133 | | - CI_*.txt |
134 | | - CI_*.md |
135 | | - CISETUP.txt |
136 | | - SETUPLOG.txt |
137 | | - UPDATE_LOG.txt |
138 | | - PREVALLOG.txt |
139 | | - TestSuites.xml |
140 | | - **/BUILD_TOOLS_REPORT.html |
141 | | - **/OVERRIDELOG.TXT |
142 | | - BASETOOLS_BUILD*.* |
143 | | - **/FD_REPORT.HTML |
144 | | - ${{ parameters.extra_artifacts }} |
145 | | - flattenFolders: true |
146 | | - condition: succeededOrFailed() |
| 132 | +# Copy build logs to the artifact staging directory |
| 133 | +- template: CommonLogCopyAndPublish.yml |
| 134 | + parameters: |
| 135 | + artifacts_identifier: ${{ parameters.artifacts_identifier }} |
147 | 136 |
|
148 | | -# Publish build artifacts to Azure Artifacts/TFS or a file share |
149 | | -- task: PublishBuildArtifacts@1 |
150 | | - continueOnError: true |
151 | | - displayName: Publish Build Logs |
152 | | - inputs: |
153 | | - pathtoPublish: "$(Build.ArtifactStagingDirectory)" |
154 | | - artifactName: "Build Logs $(System.JobName)" |
155 | | - condition: succeededOrFailed() |
| 137 | +# Copy build binaries to the artifact staging directory |
| 138 | +- template: BinaryCopyAndPublish.yml |
| 139 | + parameters: |
| 140 | + artifacts_binary: ${{ parameters.artifacts_binary }} |
| 141 | + artifacts_identifier: ${{ parameters.artifacts_identifier }} |
| 142 | + |
| 143 | +# Copy other files to the artifact staging directory |
| 144 | +- template: OtherCopyAndPublish.yml |
| 145 | + parameters: |
| 146 | + artifacts_other: ${{ parameters.artifacts_other }} |
| 147 | + artifacts_identifier: ${{ parameters.artifacts_identifier }} |
0 commit comments