Create/overwrite the latest blob with the most current zip/msi
Also updated the readme file to point to download locations for the latest binaries/installers
This commit is contained in:
parent
3a94e39336
commit
09a04a6646
2 changed files with 41 additions and 18 deletions
|
@ -8,6 +8,11 @@ Build Status
|
||||||
|**Debug**|[](http://dotnet-ci.cloudapp.net/job/Private/job/dotnet_cli_debug_ubuntu/)|[](http://dotnet-ci.cloudapp.net/job/Private/job/dotnet_cli_debug_windows_nt/)|[](http://dotnet-ci.cloudapp.net/job/Private/job/dotnet_cli_debug_osx/) |
|
|**Debug**|[](http://dotnet-ci.cloudapp.net/job/Private/job/dotnet_cli_debug_ubuntu/)|[](http://dotnet-ci.cloudapp.net/job/Private/job/dotnet_cli_debug_windows_nt/)|[](http://dotnet-ci.cloudapp.net/job/Private/job/dotnet_cli_debug_osx/) |
|
||||||
|**Release**|[](http://dotnet-ci.cloudapp.net/job/Private/job/dotnet_cli_release_ubuntu/)|[](http://dotnet-ci.cloudapp.net/job/Private/job/dotnet_cli_release_windows_nt/)|[](http://dotnet-ci.cloudapp.net/job/Private/job/dotnet_cli_release_osx/) |
|
|**Release**|[](http://dotnet-ci.cloudapp.net/job/Private/job/dotnet_cli_release_ubuntu/)|[](http://dotnet-ci.cloudapp.net/job/Private/job/dotnet_cli_release_windows_nt/)|[](http://dotnet-ci.cloudapp.net/job/Private/job/dotnet_cli_release_osx/) |
|
||||||
|
|
||||||
|
| |Ubuntu 14.04 |Windows |Mac OS X |
|
||||||
|
|---------|:------:|:------:|:------:|
|
||||||
|
|**Installers**|[Download Debian Package](https://dotnetcli.blob.core.windows.net/dotnet/dev/Installers/Latest/dotnet-linux-x64.latest.deb)|[Download Msi](https://dotnetcli.blob.core.windows.net/dotnet/dev/Installers/Latest/dotnet-win-x64.latest.msi)|[Download Pkg](https://dotnetcli.blob.core.windows.net/dotnet/dev/Installers/Latest/dotnet-osx-x64.latest.pkg) |
|
||||||
|
|**Binaries**|[Download tar file](https://dotnetcli.blob.core.windows.net/dotnet/dev/Binaries/Latest/dotnet-linux-x64.latest.tar.gz)|[Download zip file](https://dotnetcli.blob.core.windows.net/dotnet/dev/Binaries/Latest/dotnet-win-x64.latest.zip)|[Download tar file](https://dotnetcli.blob.core.windows.net/dotnet/dev/Binaries/Latest/dotnet-osx-x64.latest.tar.gz) |
|
||||||
|
|
||||||
## Prerequisites
|
## Prerequisites
|
||||||
|
|
||||||
In order to build dotnet-cli, you need the following installed on you machine
|
In order to build dotnet-cli, you need the following installed on you machine
|
||||||
|
|
|
@ -60,8 +60,20 @@ function UploadBinaries($zipFile)
|
||||||
$fileName = [System.IO.Path]::GetFileName($zipFile)
|
$fileName = [System.IO.Path]::GetFileName($zipFile)
|
||||||
$Upload_URI = "https://$env:STORAGE_ACCOUNT.blob.core.windows.net/$env:STORAGE_CONTAINER/$env:CHANNEL/Binaries/$env:DOTNET_BUILD_VERSION/$fileName$env:SASTOKEN"
|
$Upload_URI = "https://$env:STORAGE_ACCOUNT.blob.core.windows.net/$env:STORAGE_CONTAINER/$env:CHANNEL/Binaries/$env:DOTNET_BUILD_VERSION/$fileName$env:SASTOKEN"
|
||||||
|
|
||||||
if(UploadFile $Upload_URI $zipFile)
|
if(-Not (UploadFile $Upload_URI $zipFile))
|
||||||
{
|
{
|
||||||
|
return -1
|
||||||
|
}
|
||||||
|
|
||||||
|
Write-Host "Updating the latest dotnet binaries for windows.."
|
||||||
|
$Upload_URI_Latest = "https://$env:STORAGE_ACCOUNT.blob.core.windows.net/$env:STORAGE_CONTAINER/$env:CHANNEL/Binaries/Latest/dotnet-win-x64.latest.zip$env:SASTOKEN"
|
||||||
|
|
||||||
|
if(-Not (UploadFile $Upload_URI_Latest $zipFile))
|
||||||
|
{
|
||||||
|
return -1
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
# update the index file too
|
# update the index file too
|
||||||
$indexContent = "Binaries/$env:DOTNET_BUILD_VERSION/$fileName"
|
$indexContent = "Binaries/$env:DOTNET_BUILD_VERSION/$fileName"
|
||||||
$indexFile = "$env:TEMP\latest.win.index"
|
$indexFile = "$env:TEMP\latest.win.index"
|
||||||
|
@ -70,27 +82,33 @@ function UploadBinaries($zipFile)
|
||||||
# upload the index file
|
# upload the index file
|
||||||
$Upload_URI = "https://$env:STORAGE_ACCOUNT.blob.core.windows.net/$env:STORAGE_CONTAINER/$env:CHANNEL/dnvm/latest.win.index$env:SASTOKEN"
|
$Upload_URI = "https://$env:STORAGE_ACCOUNT.blob.core.windows.net/$env:STORAGE_CONTAINER/$env:CHANNEL/dnvm/latest.win.index$env:SASTOKEN"
|
||||||
|
|
||||||
if(UploadFile $Upload_URI $indexFile)
|
if(-Not (UploadFile $Upload_URI $indexFile))
|
||||||
{
|
{
|
||||||
$result = 0
|
return -1
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return $result
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
function UploadInstallers($msiFile)
|
function UploadInstallers($msiFile)
|
||||||
{
|
{
|
||||||
$result = -1
|
|
||||||
$fileName = [System.IO.Path]::GetFileName($msiFile)
|
$fileName = [System.IO.Path]::GetFileName($msiFile)
|
||||||
$Upload_URI = "https://$env:STORAGE_ACCOUNT.blob.core.windows.net/$env:STORAGE_CONTAINER/$env:CHANNEL/Installers/$env:DOTNET_BUILD_VERSION/$fileName$env:SASTOKEN"
|
$Upload_URI = "https://$env:STORAGE_ACCOUNT.blob.core.windows.net/$env:STORAGE_CONTAINER/$env:CHANNEL/Installers/$env:DOTNET_BUILD_VERSION/$fileName$env:SASTOKEN"
|
||||||
|
|
||||||
if(UploadFile $Upload_URI $msiFile)
|
if(-Not (UploadFile $Upload_URI $msiFile))
|
||||||
{
|
{
|
||||||
$result = 0
|
return -1
|
||||||
}
|
}
|
||||||
|
|
||||||
return $result
|
Write-Host "Updating the latest dotnet installer for windows.."
|
||||||
|
$Upload_URI_Latest = "https://$env:STORAGE_ACCOUNT.blob.core.windows.net/$env:STORAGE_CONTAINER/$env:CHANNEL/Installers/Latest/dotnet-win-x64.latest.msi$env:SASTOKEN"
|
||||||
|
|
||||||
|
if(-Not (UploadFile $Upload_URI_Latest $msiFile))
|
||||||
|
{
|
||||||
|
return -1
|
||||||
|
}
|
||||||
|
|
||||||
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!(CheckRequiredVariables))
|
if(!(CheckRequiredVariables))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue