c834676ecb
Use Rest Api to upload to the feed
Add pulling logic to make sure it is uploaded to the feed.
Add retry logic for the whole upload process
Remove the old upload script
(cherry picked from commit 7f54ccb903
)
28 lines
1.6 KiB
XML
28 lines
1.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
<PropertyGroup>
|
|
<SdkDebianPackageName>dotnet-sdk-$(SdkVersion)</SdkDebianPackageName>
|
|
</PropertyGroup>
|
|
|
|
<PropertyGroup>
|
|
<SdkDebianUploadUrl>$(DotnetBlobRootUrl)/$(Product)/$(FullNugetVersion)/$(DistroSpecificArtifactNameWithVersionCombinedHostHostFxrFrameworkSdk)-$(Architecture)$(InstallerExtension)</SdkDebianUploadUrl>
|
|
</PropertyGroup>
|
|
|
|
<Target Name="PublishDebFilesToDebianRepo"
|
|
DependsOnTargets="SetupDebProps;"
|
|
Condition=" '$(IsDebianBaseDistro)' == 'True' AND '$(SkipPublishToDebianRepo)' != 'true' AND '$(IslinuxPortable)' != 'true' " >
|
|
<Error Condition="'$(REPO_ID)' == ''" Text="REPO_ID must be set as a MsBuild Property variable for debian publishing." />
|
|
<Error Condition="'$(REPO_USER)' == ''" Text="REPO_USER must be set as a MsBuild Property variable for debian publishing." />
|
|
<Error Condition="'$(REPO_PASS)' == ''" Text="REPO_PASS must be set as a MsBuild Property variable for debian publishing." />
|
|
<Error Condition="'$(REPO_SERVER)' == ''" Text="REPO_SERVER must be set as a MsBuild Property variable for debian publishing." />
|
|
|
|
<UploadToLinuxPackageRepository
|
|
Username="$(REPO_USER)"
|
|
Password='$(REPO_PASS)'
|
|
Server='$(REPO_SERVER)'
|
|
RepositoryId='$(REPO_ID)'
|
|
PathOfPackageToUpload='$(SdkInstallerFile)'
|
|
PackageNameInLinuxPackageRepository='$(SdkDebianPackageName)'
|
|
PackageVersionInLinuxPackageRepository='$(NugetVersion)' />
|
|
</Target>
|
|
</Project>
|