Fixing the publishing of deb and rpm files. Also added a property to turn off publishing binaries, as we need to prevent the linux-x64 binaries from being published multiple times.

This commit is contained in:
Livar Cunha 2018-12-21 21:43:17 -08:00
parent be52214b62
commit e0e642a543
2 changed files with 18 additions and 10 deletions

View file

@ -200,7 +200,7 @@ jobs:
_RuntimeIdentifier: '--runtime-id linux-musl-x64'
_BuildArchitecture: 'x64'
_DropSuffix: ''
# disabling these for now. I am missing something and it is not generating deb and rpm
# disabling this for now. I am missing something and it is not generating deb
# Build_Linux_Portable_Deb_Release_x64:
# _BuildConfig: Release
# _DockerParameter: '--docker ubuntu.16.04'
@ -208,13 +208,19 @@ jobs:
# _RuntimeIdentifier: ''
# _BuildArchitecture: 'x64'
# _DropSuffix: ''
# Build_Linux_Portable_Rpm_Release_x64:
# _BuildConfig: Release
# _DockerParameter: '--docker rhel'
# _LinuxPortable: '--linux-portable'
# _RuntimeIdentifier: ''
# _BuildArchitecture: 'x64'
# _DropSuffix: ''
# # Do not publish zips and tarballs. The linux-x64 binaries are
# # already published by Build_LinuxPortable_Release_x64
# _AdditionalBuildParameters: '/p:PublishBinaries=false'
Build_Linux_Portable_Rpm_Release_x64:
_BuildConfig: Release
_DockerParameter: '--docker rhel'
_LinuxPortable: '--linux-portable'
_RuntimeIdentifier: ''
_BuildArchitecture: 'x64'
_DropSuffix: ''
# Do not publish zips and tarballs. The linux-x64 binaries are
# already published by Build_LinuxPortable_Release_x64
_AdditionalBuildParameters: '/p:PublishBinaries=false'
Build_LinuxPortable_Release_x64:
_BuildConfig: Release
_DockerParameter: ''

View file

@ -18,11 +18,13 @@
<PublishSdkAssetsAndChecksumsToBlob>false</PublishSdkAssetsAndChecksumsToBlob>
<PublishSdkAssetsAndChecksumsToBlob Condition=" '$(ChecksumsFeedUrl)' != '' and '$(SdkAssetsFeedUrl)' != '' ">true</PublishSdkAssetsAndChecksumsToBlob>
<PublishBinaries Condition=" '$(PublishBinaries)' == '' ">true</PublishBinaries>
</PropertyGroup>
<ItemGroup>
<SdkAssetsToPublish Include="$(ArtifactsShippingPackagesDir)*.zip" />
<SdkAssetsToPublish Include="$(ArtifactsShippingPackagesDir)*.tar.gz" />
<SdkAssetsToPublish Include="$(ArtifactsShippingPackagesDir)*.zip" Condition=" '$(PublishBinaries)' == 'true' " />
<SdkAssetsToPublish Include="$(ArtifactsShippingPackagesDir)*.tar.gz" Condition=" '$(PublishBinaries)' == 'true' " />
<SdkAssetsToPublish Include="$(ArtifactsShippingPackagesDir)*.pkg" />
<SdkAssetsToPublish Include="$(ArtifactsShippingPackagesDir)*.exe" />
<SdkAssetsToPublish Include="$(ArtifactsShippingPackagesDir)*.deb" />