@@ -353,15 +353,16 @@ describe('lib/util/ci_provider', () => {
353
353
it ( 'circle' , ( ) => {
354
354
resetEnv = mockedEnv ( {
355
355
CIRCLECI : 'true' ,
356
-
357
356
CIRCLE_JOB : 'circleJob' ,
358
357
CIRCLE_BUILD_NUM : 'circleBuildNum' ,
359
358
CIRCLE_BUILD_URL : 'circleBuildUrl' ,
360
359
CIRCLE_PR_NUMBER : 'circlePrNumber' ,
361
360
CIRCLE_PR_REPONAME : 'circlePrReponame' ,
362
361
CIRCLE_PR_USERNAME : 'circlePrUsername' ,
363
362
CIRCLE_COMPARE_URL : 'circleCompareUrl' ,
363
+ CIRCLE_PIPELINE_ID : 'circlePipelineId' ,
364
364
CIRCLE_WORKFLOW_ID : 'circleWorkflowId' ,
365
+ CIRCLE_WORKFLOW_JOB_ID : 'circleWorkflowJobId' ,
365
366
CIRCLE_PULL_REQUEST : 'circlePullRequest' ,
366
367
CIRCLE_REPOSITORY_URL : 'circleRepositoryUrl' ,
367
368
CI_PULL_REQUEST : 'ciPullRequest' ,
@@ -380,7 +381,9 @@ describe('lib/util/ci_provider', () => {
380
381
circlePrReponame : 'circlePrReponame' ,
381
382
circlePrUsername : 'circlePrUsername' ,
382
383
circleCompareUrl : 'circleCompareUrl' ,
384
+ circlePipelineId : 'circlePipelineId' ,
383
385
circleWorkflowId : 'circleWorkflowId' ,
386
+ circleWorkflowJobId : 'circleWorkflowJobId' ,
384
387
circlePullRequest : 'circlePullRequest' ,
385
388
circleRepositoryUrl : 'circleRepositoryUrl' ,
386
389
ciPullRequest : 'ciPullRequest' ,
@@ -444,13 +447,17 @@ describe('lib/util/ci_provider', () => {
444
447
CI_COMMIT_MESSAGE : 'ciCommitMessage' ,
445
448
CI_COMMITTER_NAME : 'ciCommitterName' ,
446
449
CI_COMMITTER_EMAIL : 'ciCommitterEmail' ,
450
+ CI_PR_NUMBER : 'prNumber' ,
451
+ CI_PULL_REQUEST : 'pullRequest' ,
447
452
} , { clear : true } )
448
453
449
454
expectsName ( 'codeshipPro' )
450
455
expectsCiParams ( {
451
456
ciBuildId : 'ciBuildId' ,
452
457
ciRepoName : 'ciRepoName' ,
453
458
ciProjectId : 'ciProjectId' ,
459
+ ciPrNumber : 'prNumber' ,
460
+ ciPullRequest : 'pullRequest' ,
454
461
} )
455
462
456
463
return expectsCommitParams ( {
@@ -568,6 +575,7 @@ describe('lib/util/ci_provider', () => {
568
575
GITHUB_ACTION : 'ciGitHubActionId' ,
569
576
GITHUB_EVENT_NAME : 'ciEventName' ,
570
577
GITHUB_RUN_ID : 'ciGithubRunId' ,
578
+ GITHUB_JOB : 'jobName' ,
571
579
GITHUB_RUN_ATTEMPT : 'ciGithubRunAttempt' ,
572
580
GITHUB_REPOSITORY : 'ciGithubRepository' ,
573
581
GITHUB_SHA : 'ciCommitSha' ,
@@ -586,6 +594,7 @@ describe('lib/util/ci_provider', () => {
586
594
githubRepository : 'ciGithubRepository' ,
587
595
githubRunAttempt : 'ciGithubRunAttempt' ,
588
596
githubRunId : 'ciGithubRunId' ,
597
+ githubJob : 'jobName' ,
589
598
githubBaseRef : 'ciBaseRef' ,
590
599
githubHeadRef : 'ciHeadRef' ,
591
600
githubRefName : 'ciRefName' ,
@@ -653,6 +662,8 @@ describe('lib/util/ci_provider', () => {
653
662
CI_COMMIT_MESSAGE : 'ciCommitMessage' ,
654
663
GITLAB_USER_NAME : 'gitlabUserName' ,
655
664
GITLAB_USER_EMAIL : 'gitlabUserEmail' ,
665
+ CI_MERGE_REQUEST_SOURCE_BRANCH_NAME : 'sourceBranchName' ,
666
+ CI_MERGE_REQUEST_SOURCE_BRANCH_SHA : 'sourceBranchSha' ,
656
667
} , { clear : true } )
657
668
658
669
expectsName ( 'gitlab' )
@@ -669,6 +680,8 @@ describe('lib/util/ci_provider', () => {
669
680
ciRepositoryUrl : 'ciRepositoryUrl' ,
670
681
ciEnvironmentUrl : 'ciEnvironmentUrl' ,
671
682
ciDefaultBranch : 'ciDefaultBranch' ,
683
+ ciMergeRequestSourceBranchName : 'sourceBranchName' ,
684
+ ciMergeRequestSourceBranchSha : 'sourceBranchSha' ,
672
685
} )
673
686
674
687
expectsCommitParams ( {
@@ -741,6 +754,9 @@ describe('lib/util/ci_provider', () => {
741
754
742
755
COMMIT_SHA : 'commitSha' ,
743
756
BRANCH_NAME : 'branchName' ,
757
+ _HEAD_BRANCH : 'headBranch' ,
758
+ _BASE_BRANCH : 'baseBranch' ,
759
+ _PR_NUMBER : 'prNumber' ,
744
760
} , { clear : true } )
745
761
746
762
expectsName ( 'googleCloud' )
@@ -749,6 +765,9 @@ describe('lib/util/ci_provider', () => {
749
765
projectId : 'projectId' ,
750
766
commitSha : 'commitSha' ,
751
767
branchName : 'branchName' ,
768
+ headBranch : 'headBranch' ,
769
+ baseBranch : 'baseBranch' ,
770
+ prNumber : 'prNumber' ,
752
771
} )
753
772
754
773
expectsCommitParams ( {
@@ -1137,7 +1156,14 @@ describe('lib/util/ci_provider', () => {
1137
1156
BUILD_BUILDNUMBER : 'buildNumber' ,
1138
1157
BUILD_CONTAINERID : 'containerId' ,
1139
1158
BUILD_REPOSITORY_URI : 'buildRepositoryUri' ,
1159
+ SYSTEM_PLANID : 'planId' ,
1140
1160
SYSTEM_PULLREQUEST_PULLREQUESTNUMBER : 'systemPullrequestPullrequestnumber' ,
1161
+ SYSTEM_PULLREQUEST_TARGETBRANCH : 'targetBranch' ,
1162
+ SYSTEM_PULLREQUEST_TARGETBRANCHNAME : 'targetBranchName' ,
1163
+ SYSTEM_JOBID : 'jobid' ,
1164
+ SYSTEM_STAGEATTEMPT : 'stageAttempt' ,
1165
+ SYSTEM_PHASEATTEMPT : 'phaseAttempt' ,
1166
+ SYSTEM_JOBATTEMPT : 'jobAttempt' ,
1141
1167
1142
1168
BUILD_SOURCEVERSION : 'commit' ,
1143
1169
BUILD_SOURCEBRANCHNAME : 'branch' ,
@@ -1152,7 +1178,14 @@ describe('lib/util/ci_provider', () => {
1152
1178
buildBuildnumber : 'buildNumber' ,
1153
1179
buildContainerid : 'containerId' ,
1154
1180
buildRepositoryUri : 'buildRepositoryUri' ,
1181
+ systemPlanid : 'planId' ,
1155
1182
systemPullrequestPullrequestnumber : 'systemPullrequestPullrequestnumber' ,
1183
+ systemPullrequestTargetbranch : 'targetBranch' ,
1184
+ systemPullrequestTargetbranchname : 'targetBranchName' ,
1185
+ systemJobid : 'jobid' ,
1186
+ systemStageattempt : 'stageAttempt' ,
1187
+ systemPhaseattempt : 'phaseAttempt' ,
1188
+ systemJobattempt : 'jobAttempt' ,
1156
1189
} )
1157
1190
1158
1191
return expectsCommitParams ( {
0 commit comments