From eebe882b4be0f35e1f29609437182932d7f0c421 Mon Sep 17 00:00:00 2001 From: Tim Cooper Date: Mon, 2 May 2016 13:48:18 -0300 Subject: [PATCH] feat: add Jenkins build number support (#373) Jenkins stores the build number in the `BUILD_NUMBER` environment variable --- src/platformPackager.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/platformPackager.ts b/src/platformPackager.ts index 2082984e8e7..2b9a5bc384e 100644 --- a/src/platformPackager.ts +++ b/src/platformPackager.ts @@ -205,7 +205,7 @@ export abstract class PlatformPackager } protected computeBuildNumber(): string { - return this.devMetadata.build["build-version"] || process.env.TRAVIS_BUILD_NUMBER || process.env.APPVEYOR_BUILD_NUMBER || process.env.CIRCLE_BUILD_NUM + return this.devMetadata.build["build-version"] || process.env.TRAVIS_BUILD_NUMBER || process.env.APPVEYOR_BUILD_NUMBER || process.env.CIRCLE_BUILD_NUM || process.env.BUILD_NUMBER } private getOSXResourcesDir(appOutDir: string): string { @@ -262,4 +262,4 @@ export function normalizeTargets(targets: Array | string): Array else { return (Array.isArray(targets) ? targets : [targets]).map(it => it.toLowerCase().trim()) } -} \ No newline at end of file +}