Skip to content

Commit

Permalink
feat: add Jenkins build number support (#373)
Browse files Browse the repository at this point in the history
Jenkins stores the build number in the `BUILD_NUMBER` environment variable
  • Loading branch information
Tim Cooper authored and develar committed May 2, 2016
1 parent af1165b commit eebe882
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/platformPackager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ export abstract class PlatformPackager<DC extends PlatformSpecificBuildOptions>
}

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 {
Expand Down Expand Up @@ -262,4 +262,4 @@ export function normalizeTargets(targets: Array<string> | string): Array<string>
else {
return (Array.isArray(targets) ? targets : [targets]).map(it => it.toLowerCase().trim())
}
}
}

0 comments on commit eebe882

Please sign in to comment.