Skip to content

Commit 6f0210f

Browse files
Updating Jenkinsfile to use the same context for github status
1 parent 4350cb2 commit 6f0210f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Jenkinsfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -154,9 +154,9 @@ pipeline
154154
variable: 'GITHUB_TOKEN')])
155155
{
156156
SetGithubStatus('$GITHUB_TOKEN',
157-
"Build ${BUILD_NUMBER}",
157+
"CI Pipeline",
158158
STATUS_CONTEXT_URL,
159-
"Stage ${env.STAGE_NAME} started",
159+
"Build ${BUILD_NUMBER} stage ${env.STAGE_NAME} started",
160160
"pending",
161161
REPO_OWNER,
162162
REPO_NAME,
@@ -251,9 +251,9 @@ pipeline
251251
withCredentials([string(credentialsId: 'github-token', variable: 'GITHUB_TOKEN')])
252252
{
253253
SetGithubStatus('$GITHUB_TOKEN',
254-
"Build ${BUILD_NUMBER}",
254+
"CI Pipeline",
255255
STATUS_CONTEXT_URL,
256-
"Pipeline passed",
256+
"Build ${BUILD_NUMBER} Pipeline passed",
257257
"success",
258258
REPO_OWNER,
259259
REPO_NAME,
@@ -298,9 +298,9 @@ pipeline
298298
withCredentials([string(credentialsId: 'github-token', variable: 'GITHUB_TOKEN')])
299299
{
300300
SetGithubStatus('$GITHUB_TOKEN',
301-
"Build ${BUILD_NUMBER}",
301+
"CI Pipeline",
302302
STATUS_CONTEXT_URL,
303-
"Stage ${FAILED_STAGE} failed",
303+
"Build ${BUILD_NUMBER} Stage ${FAILED_STAGE} failed",
304304
"failure",
305305
REPO_OWNER,
306306
REPO_NAME,

0 commit comments

Comments
 (0)