Skip to content

Commit

Permalink
dont append quality to version info (#10118)
Browse files Browse the repository at this point in the history
  • Loading branch information
Anthony Dresser authored Apr 22, 2020
1 parent 883dcc9 commit d88918a
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 5 deletions.
4 changes: 4 additions & 0 deletions build/azure-pipelines/darwin/sql-publish.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,8 @@ $ZipName = "azuredatastudio-darwin.zip"
$Zip = "$artifactsDir\darwin\archive\$ZipName"
$UploadName = "azuredatastudio-macos-$Version"

If (-NOT ($Quality -eq "stable")) {
$UploadName = "$UploadName-$Quality"
}

node $sourcesDir\build\azure-pipelines\common\publish.js $Quality darwin archive "$UploadName.zip" $Version true $Zip $CommitId
12 changes: 12 additions & 0 deletions build/azure-pipelines/linux/sql-publish.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ $TarballFilename = "azuredatastudio-linux-$Arch.tar.gz"
$TarballPath = "$artifactsDir\linux\archive\$TarballFilename"
$TarballUploadName = "azuredatastudio-linux-$Version"

If (-NOT ($Quality -eq "stable")) {
$TarballUploadName = "$TarballUploadName-$Quality"
}

node $sourcesDir\build\azure-pipelines\common\publish.js $Quality $PlatformLinux archive-unsigned "$TarballUploadName.tar.gz" $Version true $TarballPath $CommitId

# Publish DEB
Expand All @@ -28,6 +32,10 @@ $DebFilename = "$(Get-ChildItem -File -Name $artifactsDir\linux\deb\amd64\deb\*.
$DebPath = "$artifactsDir\linux\deb\amd64\deb\$DebFilename"
$DebUploadName = "azuredatastudio-linux-$Version"

If (-NOT ($Quality -eq "stable")) {
$DebUploadName = "$DebUploadName-$Quality"
}

node $sourcesDir\build\azure-pipelines\common\publish.js $Quality $PlatformDeb package "$DebUploadName.deb" $Version true $DebPath $CommitId

# Publish RPM
Expand All @@ -36,4 +44,8 @@ $RpmFilename = "$(Get-ChildItem -File -Name $artifactsDir\linux\rpm\x86_64\*.rpm
$RpmPath = "$artifactsDir\linux\rpm\x86_64\$RpmFilename"
$RpmUploadName = "azuredatastudio-linux-$Version"

If (-NOT ($Quality -eq "stable")) {
$RpmUploadName = "$RpmUploadName-$Quality"
}

node $sourcesDir\build\azure-pipelines\common\publish.js $Quality $PlatformRpm package "$RpmUploadName.rpm" $Version true $RpmPath $CommitId
5 changes: 0 additions & 5 deletions build/azure-pipelines/sql-product-compile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,6 @@ steps:
VERSION=$(node -p "require(\"./package.json\").version")
if [ "$VSCODE_QUALITY" != "stable" ]
then
VERSION="$VERSION-$VSCODE_QUALITY"
fi
echo -e "{ \"version\": \"$VERSION\", \"quality\": \"$VSCODE_QUALITY\", \"commit\": \"$BUILD_SOURCEVERSION\" }" > ".build/version.json"
node build/azure-pipelines/common/copyArtifacts.js
Expand Down
6 changes: 6 additions & 0 deletions build/azure-pipelines/win32/sql-publish.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ $UserUploadName = "azuredatastudio-windows-user-setup-$Version"

$assetPlatform = "win32-x64"

If (-NOT ($Quality -eq "stable")) {
$ZipUploadName = "$ZipUploadName-$Quality"
$SetupUploadName = "$SetupUploadName-$Quality"
$UserUploadName = "$UserUploadName-$Quality"
}

node $sourcesDir/build/azure-pipelines/common/publish.js $Quality "$assetPlatform-archive" archive "$ZipUploadName.zip" $Version true $Zip $CommitId

node $sourcesDir/build/azure-pipelines/common/publish.js $Quality "$assetPlatform" setup "$SetupUploadName.exe" $Version true $SystemExe $CommitId
Expand Down

0 comments on commit d88918a

Please sign in to comment.