|
12 | 12 | '$(PostBuildSign)' != 'true' and
|
13 | 13 | '$(DotNetBuildRepo)' != 'true'">false</EnableDefaultArtifacts>
|
14 | 14 |
|
15 |
| - <PublishInstallerBaseVersion Condition="'$(PublishInstallerBaseVersion)' == '' and |
16 |
| - ('$(OS)' == 'Windows_NT' or '$(DotNetBuildOrchestrator)' == 'true')">true</PublishInstallerBaseVersion> |
17 | 15 | <!-- This avoids creating VS.*.symbols.nupkg packages that are identical to the original package. -->
|
18 | 16 | <AutoGenerateSymbolPackages>false</AutoGenerateSymbolPackages>
|
| 17 | + <!-- |
| 18 | + Some assets are produced in all jobs, but only one job can publish them. We follow the following rules in that case: |
| 19 | + - If we're building outside of the VMR, publish these assets from the Windows job. |
| 20 | + - If we're building inside the VMR, publish these assets from whichever job is producing non-RID-specific artifacts. |
| 21 | + --> |
| 22 | + <PublishAllBuildsAssetsInThisJob Condition="('$(OS)' == 'Windows_NT' and '$(DotNetBuildOrchestrator)' != 'true') |
| 23 | + or ('$(DotNetBuildOrchestrator)' == 'true' and '$(EnableDefaultRidSpecificArtifacts)' != 'true' |
| 24 | + and ('$(DotNetBuildPass)' == '' or '$(DotNetBuildPass)' == '1'))">true</PublishAllBuildsAssetsInThisJob> |
| 25 | + <PublishInstallerBaseVersion Condition="'$(PublishInstallerBaseVersion)' == ''">$(PublishAllBuildsAssetsInThisJob)</PublishInstallerBaseVersion> |
19 | 26 | </PropertyGroup>
|
20 | 27 |
|
21 | 28 | <!-- $(InstallersOutputPath), $(SymbolsOutputPath), and $(ChecksumExtensions) are not defined. Root Directory.Build.props is not imported. -->
|
|
24 | 31 | <FilesToPublishToSymbolServer Include="$(ArtifactsDir)symbols\**\*.pdb" />
|
25 | 32 |
|
26 | 33 | <!-- Prepare for _PublishInstallersAndChecksums target. -->
|
27 |
| - <_InstallersToPublish Include="$(ArtifactsDir)packages\**\*.jar" UploadPathSegment="jar" /> |
28 |
| - <_InstallersToPublish Include="$(ArtifactsDir)packages\**\*.pom" UploadPathSegment="jar" /> |
| 34 | + <_InstallersToPublish Include="$(ArtifactsDir)packages\**\*.jar" UploadPathSegment="jar" Condition="'$(PublishAllBuildsAssetsInThisJob)' == 'true'" /> |
| 35 | + <_InstallersToPublish Include="$(ArtifactsDir)packages\**\*.pom" UploadPathSegment="jar" Condition="'$(PublishAllBuildsAssetsInThisJob)' == 'true'" /> |
29 | 36 | <!-- All builds produce npm assets - only publish them once -->
|
30 |
| - <_InstallersToPublish Include="$(ArtifactsDir)packages\**\*.tgz" UploadPathSegment="npm" Condition="'$(OS)' == 'Windows_NT' or '$(DotNetBuildOrchestrator)' == 'true'" /> |
| 37 | + <_InstallersToPublish Include="$(ArtifactsDir)packages\**\*.tgz" UploadPathSegment="npm" Condition="'$(PublishAllBuildsAssetsInThisJob)' == 'true'" /> |
31 | 38 | <_InstallersToPublish Include="$(ArtifactsDir)installers\**\*.version" UploadPathSegment="Runtime" Condition="'$(PublishInstallerBaseVersion)' == 'true'" />
|
32 | 39 |
|
33 | 40 | <!-- The following installers create checksums -->
|
|
0 commit comments