@@ -46,7 +46,7 @@ def setUp(self):
4646 "APPVEYOR_BUILD_VERSION" , "APPVEYOR_JOB_ID" , "APPVEYOR_REPO_NAME" , "APPVEYOR_REPO_COMMIT" , "WERCKER_GIT_BRANCH" ,
4747 "WERCKER_MAIN_PIPELINE_STARTED" , "WERCKER_GIT_OWNER" , "WERCKER_GIT_REPOSITORY" ,
4848 "CI_BUILD_REF_NAME" , "CI_BUILD_ID" , "CI_BUILD_REPO" , "CI_PROJECT_DIR" , "CI_BUILD_REF" , "CI_SERVER_NAME" ,
49- "ghprbActualCommit" , "ghprbSourceBranch" , "ghprbPullId" , "WERCKER_GIT_COMMIT" ):
49+ "ghprbActualCommit" , "ghprbSourceBranch" , "ghprbPullId" , "WERCKER_GIT_COMMIT" , "CHANGE_ID" ):
5050 os .environ [key ] = ""
5151
5252 def tearDown (self ):
@@ -339,6 +339,23 @@ def test_ci_jenkins_env(self):
339339 self .assertEqual (res ['query' ]['branch' ], 'master' )
340340 self .assertEqual (res ['codecov' ].token , 'token' )
341341
342+ def test_ci_jenkins_blue_ocean (self ):
343+ self .set_env (JENKINS_URL = 'https://....' ,
344+ BUILD_URL = 'https://....' ,
345+ BRANCH_NAME = 'master' ,
346+ CHANGE_ID = '1' ,
347+ BUILD_NUMBER = '41' ,
348+ CODECOV_TOKEN = 'token' )
349+ self .fake_report ()
350+ res = self .run_cli ()
351+ self .assertEqual (res ['query' ]['service' ], 'jenkins' )
352+ self .assertEqual (res ['query' ]['commit' ], codecov .check_output (("git" , "rev-parse" , "HEAD" )))
353+ self .assertEqual (res ['query' ]['build' ], '41' )
354+ self .assertEqual (res ['query' ]['build_url' ], 'https://....' )
355+ self .assertEqual (res ['query' ]['pr' ], '1' )
356+ self .assertEqual (res ['query' ]['branch' ], 'master' )
357+ self .assertEqual (res ['codecov' ].token , 'token' )
358+
342359 def test_ci_travis (self ):
343360 self .set_env (TRAVIS = "true" ,
344361 TRAVIS_BRANCH = "master" ,
0 commit comments