mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-05 01:25:38 -05:00
* Compile build folder * Fix build compile issues (#22813) * Revert changes * Update gulp-shell * Test * Update * Update modifiers * Try reverting minimist * Generates linux deb artifact (#22922) * Remove deb files that were brought in with the latest merge. * Add debian back to linux gulp file * Remove async from anonymous function. * Remove run core integration tests build step in pipeline * Revert "Remove async from anonymous function." This reverts commit 7ad1ce2942954fce58939b9965343b46b9311a7e. * Revert "Add debian back to linux gulp file" This reverts commit 96b7c0f0995c8024ef67ed886da34255a5caa325. * Revert "Remove deb files that were brought in with the latest merge." This reverts commit bf3aae233b8da1f9111a149a96d77cc78d376094. * Removes dependency checks * Fix dependency gen errors * Reenable "Build Deb" step * Reenable publish deb * Run core integration tests * Revert "Run core integration tests" This reverts commit 7cafbada194feebe771862af796fb3416b5dd686. * Revert "Try reverting minimist" This reverts commit 38fd843c1d5c33318a92f4bbc7057e951c5a9f71. * Disable code coverage step intermin --------- Co-authored-by: Charles Gagnon <chgagnon@microsoft.com> Co-authored-by: Lewis Sanchez <87730006+lewis-sanchez@users.noreply.github.com>
52 lines
1.8 KiB
PowerShell
52 lines
1.8 KiB
PowerShell
Param(
|
|
[string]$sourcesDir,
|
|
[string]$artifactsDir,
|
|
[string]$storageKey,
|
|
[string]$documentDbKey
|
|
)
|
|
|
|
$env:AZURE_STORAGE_ACCESS_KEY_2 = $storageKey
|
|
$env:AZURE_DOCUMENTDB_MASTERKEY = $documentDbKey
|
|
|
|
$VersionJson = Get-Content -Raw -Path "$artifactsDir\version.json" | ConvertFrom-Json
|
|
$Version = $VersionJson.version
|
|
$Quality = $VersionJson.quality
|
|
$CommitId = $VersionJson.commit
|
|
$Arch = "x64"
|
|
|
|
# Publish tarball
|
|
$PlatformLinux = "linux-$Arch"
|
|
$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
|
|
$PlatformDeb = "linux-deb-$Arch"
|
|
$DebFilename = "$(Get-ChildItem -File -Name $artifactsDir\linux\deb\amd64\deb\*.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
|
|
$PlatformRpm = "linux-rpm-$Arch"
|
|
$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
|