Skip to content

Commit

Permalink
fix hockeyapp symbols and report errors (fix #76024)
Browse files Browse the repository at this point in the history
  • Loading branch information
bpasero committed Jun 25, 2019
1 parent 33eae17 commit 9710890
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions build/azure-pipelines/common/symbols.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,10 @@ const hockeyAppToken = process.argv[3];
const is64 = process.argv[4] === 'x64';
const hockeyAppId = process.argv[5];

if (process.argv.length !== 6) {
throw new Error(`HockeyApp: Unexpected number of arguments. Got ${process.argv}`);
}

let platform: Platform;
if (process.platform === 'darwin') {
platform = Platform.MAC_OS;
Expand Down Expand Up @@ -216,6 +220,8 @@ if (repository && codeVersion && electronVersion && (product.quality === 'stable
console.log('HockeyApp: done');
}).catch(error => {
console.error(`HockeyApp: error ${error} (AppID: ${hockeyAppId})`);

return process.exit(1);
});
} else {
console.log(`HockeyApp: skipping due to unexpected context (repository: ${repository}, codeVersion: ${codeVersion}, electronVersion: ${electronVersion}, quality: ${product.quality})`);
Expand Down
1 change: 1 addition & 0 deletions build/azure-pipelines/win32/product-build-win32.yml
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ steps:
$env:AZURE_STORAGE_ACCESS_KEY_2 = "$(vscode-storage-key)"
$env:AZURE_DOCUMENTDB_MASTERKEY = "$(builds-docdb-key-readwrite)"
$env:VSCODE_HOCKEYAPP_TOKEN = "$(vscode-hockeyapp-token)"
$env:VSCODE_MIXIN_PASSWORD="$(github-distro-mixin-password)"
.\build\azure-pipelines\win32\publish.ps1
displayName: Publish

Expand Down

0 comments on commit 9710890

Please sign in to comment.