From 3c862ca3ed20a53334f877e92bbb016b7b73e050 Mon Sep 17 00:00:00 2001 From: ipdksw Date: Thu, 23 Jun 2022 22:59:15 +0530 Subject: [PATCH 1/4] Update test.txt --- test.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test.txt b/test.txt index 9ec9b58..a2b9cce 100644 --- a/test.txt +++ b/test.txt @@ -4,3 +4,5 @@ Test file to test replication Test replication with gerrit v3.5.0.1 test webhook webhook jenkins + +webhook testing based on polling From 7a694a50f57fd6c8261c6fd6e23c5db463f301a1 Mon Sep 17 00:00:00 2001 From: ipdksw Date: Mon, 27 Jun 2022 17:24:42 +0530 Subject: [PATCH 2/4] Update test.txt --- test.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/test.txt b/test.txt index a2b9cce..00211ec 100644 --- a/test.txt +++ b/test.txt @@ -6,3 +6,4 @@ test webhook webhook jenkins webhook testing based on polling +testing jenkins results From 7a2b83446c848e19313e97ff1df68234026323dc Mon Sep 17 00:00:00 2001 From: ipdksw Date: Mon, 27 Jun 2022 17:27:46 +0530 Subject: [PATCH 3/4] Update Jenkinsfile --- Jenkinsfile | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 1c1aa1f..cf32923 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -72,11 +72,17 @@ pipeline { } stage ("Build DPDK code") { - + steps { - sh ''' - echo "hello world!!!" - ''' + withCredentials([usernamePassword(credentialsId: 'ipdksw_github_token', passwordVariable: 'github-pass', usernameVariable: 'github_user')]) { + sh ''' + echo "hello world!!!" + curl "https://api.GitHub.com/repos/ipdksw/ipdk-gerrit-test/statuses/$GIT_COMMIT?access_token=$github-pass" \ + -H "Content-Type: application/json" \ + -X POST \ + -d "{\"state\": \"success\",\"context\": \"continuous-integration/jenkins\", \"description\": \"Jenkins\", \"target_url\": \"https://s3.gerritipdk.com/$JOB_NAME-$BUILD_NUMBER/index.html\"}" + ''' + } } } } From aa5e81fb99112e912f0afcfc4e0a61ca78557255 Mon Sep 17 00:00:00 2001 From: ipdksw Date: Tue, 2 Aug 2022 10:32:48 +0530 Subject: [PATCH 4/4] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index cad3921..8b42808 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -87,4 +87,4 @@ pipeline { } } -} \ No newline at end of file +}