From 63e44fbb367883e2cd297e263c68b993bbe2880c Mon Sep 17 00:00:00 2001 From: shashankpai Date: Mon, 17 Jan 2022 17:11:32 +0530 Subject: [PATCH 1/9] mod jenkins file --- Jenkinsfile | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index d45bf54..82d616e 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,21 +1,13 @@ pipeline { - agent {label 'linux'} + agent {label 'ubuntu_slave'} options { buildDiscarder(logRotator(numToKeepStr: '5')) } stages { - stage('Build') { + stage('Hello') { steps { - sh './gradlew clean check --no-daemon' + echo "Hello" } } } - post { - always { - junit( - allowEmptyResults: true, - testResults: '**/build/test-results/test/*.xml' - ) - } - } } \ No newline at end of file From 2d5cd5df384977bdcc6d1d45e52f0502513eeb00 Mon Sep 17 00:00:00 2001 From: shashankpai Date: Mon, 17 Jan 2022 17:24:02 +0530 Subject: [PATCH 2/9] added branch name --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 82d616e..16e35c8 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -6,7 +6,7 @@ pipeline { stages { stage('Hello') { steps { - echo "Hello" + echo "Hello $GIT_BRANCH" } } } From ce7c60de9f0cd169dbceb539a576ef89b970734d Mon Sep 17 00:00:00 2001 From: shashankpai Date: Mon, 17 Jan 2022 21:26:05 +0530 Subject: [PATCH 3/9] added new --- Jenkinsfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Jenkinsfile b/Jenkinsfile index 16e35c8..7328b89 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -7,6 +7,7 @@ pipeline { stage('Hello') { steps { echo "Hello $GIT_BRANCH" + echo "New" } } } From e8235ac9183c261aa97db369183ada4481f3b353 Mon Sep 17 00:00:00 2001 From: shashankpai Date: Mon, 17 Jan 2022 22:22:09 +0530 Subject: [PATCH 4/9] bug --- Jenkinsfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Jenkinsfile b/Jenkinsfile index 7328b89..4442c14 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -8,6 +8,7 @@ pipeline { steps { echo "Hello $GIT_BRANCH" echo "New" + echo "There is a bug" } } } From 493088300c3bde78418293a43fd00dfe311e74da Mon Sep 17 00:00:00 2001 From: shashankpai Date: Tue, 18 Jan 2022 00:32:56 +0530 Subject: [PATCH 5/9] added the variables --- Jenkinsfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 4442c14..741c5f6 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -7,8 +7,9 @@ pipeline { stage('Hello') { steps { echo "Hello $GIT_BRANCH" - echo "New" - echo "There is a bug" + echo "This is $CHANGE_ID" + echo "this is $CHANGE_BRANCH" + echo "There is $CHANGE_TARGET" } } } From c96e70cf63878b7b65adb257d88e961f81a6cba3 Mon Sep 17 00:00:00 2001 From: shashankpai Date: Tue, 18 Jan 2022 01:12:23 +0530 Subject: [PATCH 6/9] added the change variables --- Jenkinsfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Jenkinsfile b/Jenkinsfile index 741c5f6..406451b 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -6,6 +6,7 @@ pipeline { stages { stage('Hello') { steps { + when { changeRequest() } echo "Hello $GIT_BRANCH" echo "This is $CHANGE_ID" echo "this is $CHANGE_BRANCH" From a55162cb1925d0d71e9b40c7c0ba84aab05394b6 Mon Sep 17 00:00:00 2001 From: shashankpai Date: Tue, 18 Jan 2022 01:15:39 +0530 Subject: [PATCH 7/9] added the change variables --- Jenkinsfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 406451b..58c3643 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -5,8 +5,9 @@ pipeline { } stages { stage('Hello') { + when { changeRequest() } steps { - when { changeRequest() } + echo "Hello $GIT_BRANCH" echo "This is $CHANGE_ID" echo "this is $CHANGE_BRANCH" From d9306c150ee6633ef1c39ebaeaf85499b0c4e35f Mon Sep 17 00:00:00 2001 From: shashankpai Date: Mon, 31 Jan 2022 16:20:04 +0530 Subject: [PATCH 8/9] added comment --- Jenkinsfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 58c3643..aecdfc4 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -7,8 +7,7 @@ pipeline { stage('Hello') { when { changeRequest() } steps { - - echo "Hello $GIT_BRANCH" + echo "Hello this is $GIT_BRANCH" echo "This is $CHANGE_ID" echo "this is $CHANGE_BRANCH" echo "There is $CHANGE_TARGET" From 6af09911d22ac9f89fed90bdb2e5160dbaf5ec95 Mon Sep 17 00:00:00 2001 From: shashankpai Date: Mon, 31 Jan 2022 22:22:11 +0530 Subject: [PATCH 9/9] this is new branch --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index aecdfc4..23edd00 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -7,7 +7,7 @@ pipeline { stage('Hello') { when { changeRequest() } steps { - echo "Hello this is $GIT_BRANCH" + echo "name of git branch $GIT_BRANCH" echo "This is $CHANGE_ID" echo "this is $CHANGE_BRANCH" echo "There is $CHANGE_TARGET"