Use one build definition to produce all Linux distro specific packages (#7615)

By using `./build.sh /t:AllLiuxDistrosNativeInstaller`

Make a sandbox folder after compile step and copy compiled artifact to it. Since the content will be Linux generic, use package step with Docker in different distros.
After finishing all the distro specific packaging, upload all of them at once

Publish to debian only support all distro

Improve perf of AllLiuxDistrosNativeInstaller, by copying more cache in to sandbox

There will be a retry if package command failed
This commit is contained in:
William Lee 2017-09-14 13:33:46 -07:00 committed by GitHub
parent fac7481b09
commit 221ab05346
15 changed files with 194 additions and 21 deletions

View file

@ -656,7 +656,9 @@ install_dotnet() {
say_verbose "Zip path: $zip_path"
say "Downloading link: $download_link"
download "$download_link" $zip_path || download_failed=true
# Failures are expected in the non-legacy case. Do not output to stderr, since
# the output stderr are considered an error
download "$download_link" $zip_path 2>&1 || download_failed=true
# if the download fails, download the legacy_download_link
if [ "$download_failed" = true ] && [ "$valid_legacy_download_link" = true ]; then