This repository was archived by the owner on Feb 19, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +7
-1
lines changed
Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 1414 process . env . GIT_COMMIT ||
1515 process . env . CIRCLE_SHA1 ||
1616 process . env . CI_COMMIT_ID ||
17- process . env . WERCKER_GIT_COMMIT ;
17+ process . env . WERCKER_GIT_COMMIT ||
18+ process . env . BUILDKITE_COMMIT ;
1819
1920 if ( gitCommit ) {
2021 logger . debug ( 'Received Commit Id: ' + gitCommit ) ;
Original file line number Diff line number Diff line change 3939 process . env . WERCKER_GIT_COMMIT = '5232' ;
4040 return expect ( getGitData . getCommitId ( ) ) . to . eventually . equal ( '5232' ) ;
4141 } ) ;
42+ it ( 'should be able to get the commit id from the Buildkite environment variable' , function ( ) {
43+ process . env . BUILDKITE_COMMIT = '47326' ;
44+ return expect ( getGitData . getCommitId ( ) ) . to . eventually . equal ( '47326' ) ;
45+ } ) ;
4246 it ( 'should be able to get the commit id from Git' , function ( ) {
4347 // If we are currently running on Travis, we should be able to use the commit id environment variable
4448 // to check the git commit id method with actual git. But we can't do this for Pull Requests because
Original file line number Diff line number Diff line change 7373 process . env . CIRCLE_SHA1 = '' ;
7474 process . env . CI_COMMIT_ID = '' ;
7575 process . env . WERCKER_GIT_COMMIT = '' ;
76+ process . env . BUILDKITE_COMMIT = '' ;
7677 }
7778 } ;
7879} ( require ( 'nock' ) , require ( 'chai' ) , require ( 'bluebird' ) ) ) ;
You can’t perform that action at this time.
0 commit comments