From 52dae1a9d5a04d49110ceb6ff9ed5a10cdcf8ce3 Mon Sep 17 00:00:00 2001 From: Riz Urian <98958099+rizjosel@users.noreply.github.com> Date: Sat, 27 Dec 2025 10:12:18 +0800 Subject: [PATCH] Update Jenkinsfile.pr Signed-off-by: Riz Urian <98958099+rizjosel@users.noreply.github.com> --- Jenkinsfile.pr | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/Jenkinsfile.pr b/Jenkinsfile.pr index 625d2cc04..c0913c4e2 100644 --- a/Jenkinsfile.pr +++ b/Jenkinsfile.pr @@ -12,13 +12,10 @@ pipeline { stage('Notify GitHub Pending') { steps { - githubNotify context: 'Jenkins CI', status: 'PENDING' - } - } - - stage('List Workspace') { - steps { - sh 'ls -l' + setGitHubPullRequestStatus( + context: 'Jenkins CI', + status: 'PENDING' + ) } } @@ -53,10 +50,16 @@ pipeline { post { success { - githubNotify context: 'Jenkins CI', status: 'SUCCESS' + setGitHubPullRequestStatus( + context: 'Jenkins CI', + status: 'SUCCESS' + ) } failure { - githubNotify context: 'Jenkins CI', status: 'FAILURE' + setGitHubPullRequestStatus( + context: 'Jenkins CI', + status: 'FAILURE' + ) } } }