From 3f9c805a051b0de8bb69b63517f2fd75e74f1785 Mon Sep 17 00:00:00 2001 From: WoodProgrammer Date: Mon, 16 Nov 2020 13:17:08 +0300 Subject: [PATCH 01/13] updated jenkinsfile for different branch --- Jenkinsfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index dc6cbf0..653404f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -5,7 +5,10 @@ node { git credentialsId: '3af5981e-eb43-4b27-a774-e56d46eba935', url: 'https://github.com/WoodProgrammer/dockerJenkinsBlog' } stage("Build"){ - sh "docker build -t emirozbir/jdind:latest ." + sh "echo "HiBro!" + sh "echo "HiBro!" + sh "echo "HiBro!" + sh "echo "HiBro!" } } From 1333c1070ad40b3521d967e357e30535ba89d288 Mon Sep 17 00:00:00 2001 From: WoodProgrammer Date: Mon, 16 Nov 2020 13:22:37 +0300 Subject: [PATCH 02/13] typo fixed --- Jenkinsfile | 3 --- 1 file changed, 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 653404f..5f0addb 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -6,9 +6,6 @@ node { } stage("Build"){ sh "echo "HiBro!" - sh "echo "HiBro!" - sh "echo "HiBro!" - sh "echo "HiBro!" } } From 7799f5d64b823e0a2668fd5875f0d8b8f4fe3fe1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emir=20=C3=96zbir?= Date: Mon, 16 Nov 2020 13:37:53 +0300 Subject: [PATCH 03/13] Update Jenkinsfile --- Jenkinsfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Jenkinsfile b/Jenkinsfile index 5f0addb..c297ef3 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -6,6 +6,7 @@ node { } stage("Build"){ sh "echo "HiBro!" + sh "echo "HiBro!" } } From 873b19d6a69818909c7228a613f72e26e3510c4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emir=20=C3=96zbir?= Date: Mon, 16 Nov 2020 13:38:57 +0300 Subject: [PATCH 04/13] Update Jenkinsfile --- Jenkinsfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index c297ef3..e40d16a 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -7,6 +7,8 @@ node { stage("Build"){ sh "echo "HiBro!" sh "echo "HiBro!" + sh "echo "HiBro!" + } } From 3c2ed75fd9166b191a2cf087bae2cde0225de83b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emir=20=C3=96zbir?= Date: Mon, 16 Nov 2020 13:51:27 +0300 Subject: [PATCH 05/13] Update Jenkinsfile --- Jenkinsfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index e40d16a..274fe03 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -5,9 +5,10 @@ node { git credentialsId: '3af5981e-eb43-4b27-a774-e56d46eba935', url: 'https://github.com/WoodProgrammer/dockerJenkinsBlog' } stage("Build"){ - sh "echo "HiBro!" - sh "echo "HiBro!" - sh "echo "HiBro!" + sh "echo HiBro!" + sh "echo HiBro!" + sh "echo HiBro!" + } From fc0ced768c0122f45da1f05d0ed17a113a2f8902 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emir=20=C3=96zbir?= Date: Mon, 16 Nov 2020 13:54:26 +0300 Subject: [PATCH 06/13] Update Jenkinsfile --- Jenkinsfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Jenkinsfile b/Jenkinsfile index 274fe03..25a2337 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -8,6 +8,7 @@ node { sh "echo HiBro!" sh "echo HiBro!" sh "echo HiBro!" + sh "echo NewBranch!" } From 5cb3c69cba5a1e72c6467d9f0bc207f0af612178 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emir=20=C3=96zbir?= Date: Mon, 16 Nov 2020 13:55:10 +0300 Subject: [PATCH 07/13] Update newfile --- newfile | 1 + 1 file changed, 1 insertion(+) diff --git a/newfile b/newfile index bf7e899..54b0c3a 100644 --- a/newfile +++ b/newfile @@ -1 +1,2 @@ asdasd +helobro! From 697343b4a1d023b1cc01f2f03ef8cf0c66b06a79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emir=20=C3=96zbir?= Date: Mon, 16 Nov 2020 13:59:51 +0300 Subject: [PATCH 08/13] Update newfile --- newfile | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/newfile b/newfile index 54b0c3a..b81f197 100644 --- a/newfile +++ b/newfile @@ -1,2 +1,13 @@ asdasd helobro! + +asdasd +helobro! +asdasd +helobro! +asdasd +helobro! +asdasd +helobro! +asdasd +helobro! From 989557f1138deeda722bddc98c1f3fd798ed5927 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emir=20=C3=96zbir?= Date: Mon, 16 Nov 2020 14:32:13 +0300 Subject: [PATCH 09/13] Update Dockerfile --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 25a638a..f5dbac3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,4 +14,4 @@ RUN add-apt-repository \ stable" RUN apt-get update -RUN apt-get -y install docker-ce +RUN apt-get -y install docker-ce kubernetes From c6e68797bd7fe285641be6eb46f4aba5ec113ed9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emir=20=C3=96zbir?= Date: Mon, 16 Nov 2020 14:40:01 +0300 Subject: [PATCH 10/13] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 25a2337..3d8b978 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,7 +1,7 @@ node { stage("Git Checkout"){ - + currentBuild.displayName = "#${BUILD_NUMBER} - ${params.branch}" git credentialsId: '3af5981e-eb43-4b27-a774-e56d46eba935', url: 'https://github.com/WoodProgrammer/dockerJenkinsBlog' } stage("Build"){ From bcc951582c695a9c37c8463983d1821ab19dc140 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emir=20=C3=96zbir?= Date: Mon, 16 Nov 2020 14:42:45 +0300 Subject: [PATCH 11/13] Update Jenkinsfile --- Jenkinsfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 3d8b978..f346341 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,8 +1,7 @@ node { stage("Git Checkout"){ - currentBuild.displayName = "#${BUILD_NUMBER} - ${params.branch}" - git credentialsId: '3af5981e-eb43-4b27-a774-e56d46eba935', url: 'https://github.com/WoodProgrammer/dockerJenkinsBlog' + sh "printenv" } stage("Build"){ sh "echo HiBro!" From 85411cf063cf7e400836a983e091a1ac547245dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emir=20=C3=96zbir?= Date: Mon, 16 Nov 2020 14:43:48 +0300 Subject: [PATCH 12/13] Update Jenkinsfile --- Jenkinsfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index f346341..db7bdb8 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,7 +1,8 @@ node { stage("Git Checkout"){ - sh "printenv" + + sh "echo Hello $branch" } stage("Build"){ sh "echo HiBro!" From a8976417224941496a34592faef24dd0d9871377 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emir=20=C3=96zbir?= Date: Mon, 16 Nov 2020 15:02:11 +0300 Subject: [PATCH 13/13] Update Jenkinsfile --- Jenkinsfile | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index db7bdb8..9fe5283 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,16 +1,16 @@ node { - + DISPLAY_BRANCH = sh ( script: "echo $branch|cut -d '/' -f 3", returnStdout:true).trim() stage("Git Checkout"){ - - sh "echo Hello $branch" + + + currentBuild.displayName = "#${BUILD_NUMBER} - ${DISPLAY_BRANCH}" } stage("Build"){ - sh "echo HiBro!" - sh "echo HiBro!" - sh "echo HiBro!" - sh "echo NewBranch!" + sh "echo New Branch" + sh "echo New Branch" + sh "echo New Branch" + sh "echo New Branch" - } }