From a010edc66eadb74ad4163a8ce60362602bfe7318 Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Mon, 11 Mar 2019 12:43:34 +0530 Subject: [PATCH 001/130] Create Jenkinsfile --- Jenkinsfile | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..94b1339 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,27 @@ +pipeline { + agent any + stages { + stage('One') { + steps { + echo 'Hi, this is Deep Kumar from capgemini' + + } + } + stage('Two'){ + + steps { + input('Do you want to proceed?') + } + } + stage('Three') { + when { + not { + branch "master" + } + } + steps { + echo "Hi Devops team" + } + } + } + } From 5670cb15f2c90b94252cfc6f23220269743bb18b Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Mon, 11 Mar 2019 15:48:48 +0530 Subject: [PATCH 002/130] Create HelloCg --- HelloCg | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 HelloCg diff --git a/HelloCg b/HelloCg new file mode 100644 index 0000000..2a41ada --- /dev/null +++ b/HelloCg @@ -0,0 +1,5 @@ +public class HelloWorld { + public static void main(String[] args) { + System.out.println("Hello, World"); + } +} From 988a2d60382d454f2b8c5282ef4c8537d626921b Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Mon, 11 Mar 2019 15:50:14 +0530 Subject: [PATCH 003/130] Rename HelloCg to HelloCg.java --- HelloCg => HelloCg.java | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename HelloCg => HelloCg.java (100%) diff --git a/HelloCg b/HelloCg.java similarity index 100% rename from HelloCg rename to HelloCg.java From 8f18e08b3e24a9b7dd073372896b216444032756 Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Mon, 11 Mar 2019 15:53:18 +0530 Subject: [PATCH 004/130] Update HelloCg.java --- HelloCg.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HelloCg.java b/HelloCg.java index 2a41ada..584bcd4 100644 --- a/HelloCg.java +++ b/HelloCg.java @@ -1,4 +1,4 @@ -public class HelloWorld { +public class HelloCg { public static void main(String[] args) { System.out.println("Hello, World"); } From 0bc3201404824a8c5571d045a6afecac3e331b13 Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Tue, 7 May 2019 17:27:48 +0530 Subject: [PATCH 005/130] change done --- jenkins24.txt | 1 + 1 file changed, 1 insertion(+) create mode 100644 jenkins24.txt diff --git a/jenkins24.txt b/jenkins24.txt new file mode 100644 index 0000000..91eab7e --- /dev/null +++ b/jenkins24.txt @@ -0,0 +1 @@ +hello cg !!! \ No newline at end of file From 06452bb49196c366f0ecc571df8874cc08c7d32b Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Tue, 7 May 2019 17:49:05 +0530 Subject: [PATCH 006/130] new added --- jenkins24.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jenkins24.txt b/jenkins24.txt index 91eab7e..8232ee5 100644 --- a/jenkins24.txt +++ b/jenkins24.txt @@ -1 +1 @@ -hello cg !!! \ No newline at end of file +hello cg !!! hiiiiiiiii From 60d14bd3fd53e692a42422d418e7050742e86629 Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Tue, 7 May 2019 17:52:57 +0530 Subject: [PATCH 007/130] added new --- jenkins24.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/jenkins24.txt b/jenkins24.txt index 8232ee5..067240b 100644 --- a/jenkins24.txt +++ b/jenkins24.txt @@ -1 +1,2 @@ hello cg !!! hiiiiiiiii +mishra From 10eea8cb054da201a68a861eda5fcf76d8d2796b Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Tue, 7 May 2019 17:54:54 +0530 Subject: [PATCH 008/130] Update jenkins24.txt --- jenkins24.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/jenkins24.txt b/jenkins24.txt index 067240b..b03bac3 100644 --- a/jenkins24.txt +++ b/jenkins24.txt @@ -1,2 +1,3 @@ hello cg !!! hiiiiiiiii mishra +wjkgha9uio From 1d623e8bed79f8ffbfa28beb5fd18e59f2546237 Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Tue, 7 May 2019 17:58:03 +0530 Subject: [PATCH 009/130] Update jenkins24.txt --- jenkins24.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/jenkins24.txt b/jenkins24.txt index b03bac3..68aca19 100644 --- a/jenkins24.txt +++ b/jenkins24.txt @@ -1,3 +1,4 @@ hello cg !!! hiiiiiiiii mishra wjkgha9uio +webhook testing From 37e1b452c6ff0d69924924c2ddddf765068a200c Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Tue, 7 May 2019 18:09:18 +0530 Subject: [PATCH 010/130] Update jenkins24.txt --- jenkins24.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/jenkins24.txt b/jenkins24.txt index 68aca19..9829a14 100644 --- a/jenkins24.txt +++ b/jenkins24.txt @@ -2,3 +2,4 @@ hello cg !!! hiiiiiiiii mishra wjkgha9uio webhook testing +webhook testing 2nd time From b5a806ce41f476f2f3a0f03d92013797d54e3122 Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Tue, 7 May 2019 18:12:25 +0530 Subject: [PATCH 011/130] Update jenkins24.txt --- jenkins24.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/jenkins24.txt b/jenkins24.txt index 9829a14..29a1e12 100644 --- a/jenkins24.txt +++ b/jenkins24.txt @@ -3,3 +3,4 @@ mishra wjkgha9uio webhook testing webhook testing 2nd time +mc bc From c27946ef3d51e53f0c03784ccec4359bdb620ffc Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Tue, 7 May 2019 18:23:57 +0530 Subject: [PATCH 012/130] Update jenkins24.txt --- jenkins24.txt | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/jenkins24.txt b/jenkins24.txt index 29a1e12..495ac0f 100644 --- a/jenkins24.txt +++ b/jenkins24.txt @@ -1,6 +1 @@ -hello cg !!! hiiiiiiiii -mishra -wjkgha9uio -webhook testing -webhook testing 2nd time -mc bc +hello cg !!! From dac0e4bf1bed686894cc37e7c040ace6531fb0b2 Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Tue, 10 Sep 2019 15:59:06 +0530 Subject: [PATCH 013/130] Update Jenkinsfile add pipeline jenkins --- Jenkinsfile | 115 +++++++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 95 insertions(+), 20 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 94b1339..1e43eec 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,27 +1,102 @@ pipeline { + agent any + + environment { + + //Input Docker registry name and image name + + DOCKER_IMAGE_NAME = "deepk/assign2:2.1" + + } + stages { - stage('One') { - steps { - echo 'Hi, this is Deep Kumar from capgemini' - + + stage('Build Docker Image') { + + when { + + branch 'master' + + } + + steps { + + script { + + app = docker.build(DOCKER_IMAGE_NAME) + + //app.inside { + + // sh 'echo Hello, World!' + + //} + } + + } + } - stage('Two'){ - - steps { - input('Do you want to proceed?') - } - } - stage('Three') { - when { - not { - branch "master" - } + + //perform Docker push + + stage('Push Docker Image') { + + when { + + branch 'master' + + } + + steps { + + script { + + docker.withRegistry('https://registry.hub.docker.com', 'dockerhub_login') { + + app.push("${env.BUILD_NUMBER}") + + app.push("latest") + + } + } - steps { - echo "Hi Devops team" - } + + + + } + + } + + stage('DeployToProduction') { + + when { + + branch 'master' + + } + + steps { + + //input 'Deploy to Production?' + + //milestone(1) + + kubernetesDeploy( + + kubeconfigId: 'kubeconfig', + + configs: 'deploymentfile.yml', + + enableConfigSubstitution: true + + ) + + } + } - } - } + + } + +} + From 812944375c36e6cf529b462772780b853ea16bde Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Wed, 11 Sep 2019 10:56:51 +0530 Subject: [PATCH 014/130] Update Jenkinsfile change jenkin file --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 1e43eec..04c7667 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -28,7 +28,7 @@ pipeline { //app.inside { - // sh 'echo Hello, World!' + sh 'echo Hello, World!' //} From 1dc3d5246d3f023abcc6353409d38737a363af4d Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Wed, 11 Sep 2019 14:39:00 +0530 Subject: [PATCH 015/130] docker level added --- Jenkinsfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 04c7667..adfde42 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -9,6 +9,9 @@ pipeline { DOCKER_IMAGE_NAME = "deepk/assign2:2.1" } + + docker { image 'deepk/assign2:2.1' } + stages { From 0dd6498fa967462af13fe6fb90c21cc7d995d589 Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Wed, 11 Sep 2019 14:42:31 +0530 Subject: [PATCH 016/130] Update Jenkinsfile --- Jenkinsfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index adfde42..38f5f09 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -10,8 +10,10 @@ pipeline { } - docker { image 'deepk/assign2:2.1' } + agent{ + docker { image 'deepk/assign2:2.1' } + } stages { From c1e92aabe4e680586f98ca6041eb84f340ce3bb1 Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Wed, 11 Sep 2019 15:31:57 +0530 Subject: [PATCH 017/130] Update Jenkinsfile --- Jenkinsfile | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 38f5f09..c239f5f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -6,15 +6,11 @@ pipeline { //Input Docker registry name and image name - DOCKER_IMAGE_NAME = "deepk/assign2:2.1" + DOCKER_IMAGE_NAME = "deepk/assign2:1.2" } - agent{ - - docker { image 'deepk/assign2:2.1' } - } - + stages { stage('Build Docker Image') { From 26af9f8ae7dd636a2d075a05d6ceb387dfda987d Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Thu, 12 Sep 2019 13:33:03 +0530 Subject: [PATCH 018/130] docker added --- Jenkinsfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index c239f5f..8d46559 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -12,6 +12,12 @@ pipeline { stages { + + stage('pull docker images') { + agent { + docker { image 'deepk/assign2:1.2' } + } + } stage('Build Docker Image') { From f945c1abd268feb9eddab714d86f89d3ab2cc5a3 Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Tue, 17 Sep 2019 20:40:43 +0530 Subject: [PATCH 019/130] new stages added --- Jenkinsfile | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 8d46559..c743fe4 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -8,8 +8,19 @@ pipeline { DOCKER_IMAGE_NAME = "deepk/assign2:1.2" + } + stages('codeQuality') { + } + + stages('Security Yasca') { + } + stages('kubernetesDeployment') { } + stages('regression') { + } + stages('perfomance') { + } stages { From b3bcc4a9045f4a83339cae4b5d102dc037b085fa Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Tue, 17 Sep 2019 20:41:49 +0530 Subject: [PATCH 020/130] Update Jenkinsfile --- Jenkinsfile | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index c743fe4..16802c6 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -9,21 +9,21 @@ pipeline { DOCKER_IMAGE_NAME = "deepk/assign2:1.2" } - stages('codeQuality') { + + + stages { + stage('codeQuality') { } - stages('Security Yasca') { + stage('Security Yasca') { } - stages('kubernetesDeployment') { + stage('kubernetesDeployment') { } - stages('regression') { + stage('regression') { } - stages('perfomance') { + stage('perfomance') { } - - stages { - stage('pull docker images') { agent { docker { image 'deepk/assign2:1.2' } From 576b2193a3d55cdcef282a2d6fb17220d267ca59 Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Tue, 17 Sep 2019 20:42:40 +0530 Subject: [PATCH 021/130] Update Jenkinsfile --- Jenkinsfile | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 16802c6..331adb5 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -9,12 +9,6 @@ pipeline { DOCKER_IMAGE_NAME = "deepk/assign2:1.2" } - - - stages { - stage('codeQuality') { - } - stage('Security Yasca') { } stage('kubernetesDeployment') { @@ -24,6 +18,10 @@ pipeline { } stage('perfomance') { } + + + stages { + stage('pull docker images') { agent { docker { image 'deepk/assign2:1.2' } From 674f040eb16c4ca49ab38637e56d3d7aba1dbc11 Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Tue, 17 Sep 2019 20:44:25 +0530 Subject: [PATCH 022/130] Update Jenkinsfile --- Jenkinsfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 331adb5..1e65078 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -8,6 +8,8 @@ pipeline { DOCKER_IMAGE_NAME = "deepk/assign2:1.2" + } + stage('codeQuality') { } stage('Security Yasca') { } From e6f851a4f36d37c880609a203cbc41b3522c9672 Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Tue, 17 Sep 2019 20:44:53 +0530 Subject: [PATCH 023/130] Update Jenkinsfile --- Jenkinsfile | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 1e65078..a33a25d 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,14 +1,4 @@ pipeline { - - agent any - - environment { - - //Input Docker registry name and image name - - DOCKER_IMAGE_NAME = "deepk/assign2:1.2" - - } stage('codeQuality') { } stage('Security Yasca') { @@ -20,6 +10,17 @@ pipeline { } stage('perfomance') { } + + agent any + + environment { + + //Input Docker registry name and image name + + DOCKER_IMAGE_NAME = "deepk/assign2:1.2" + + } + stages { From 10971c8870643a7255a77dd6d48e1c1b3e7166e8 Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Thu, 19 Sep 2019 19:42:11 +0530 Subject: [PATCH 024/130] Update Jenkinsfile --- Jenkinsfile | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index a33a25d..e457015 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,5 +1,18 @@ pipeline { - stage('codeQuality') { + stage('SCM') { + steps { + git url: 'https://github.com/foo/bar.git' + } + } + stage('codeQuality & analysis') { + steps { + withSonarQubeEnv('My SonarQube Server') { + // Optionally use a Maven environment you've configured already + withMaven(maven:'Maven 3.5') { + sh 'mvn clean package sonar:sonar' + } + } + } } stage('Security Yasca') { } From da60a4e2ee48893b552bdd7c33e18e190e1e4441 Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Thu, 19 Sep 2019 19:43:18 +0530 Subject: [PATCH 025/130] Update Jenkinsfile --- Jenkinsfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index e457015..a545980 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -23,8 +23,8 @@ pipeline { } stage('perfomance') { } - - agent any +} + /* agent any environment { @@ -129,6 +129,7 @@ pipeline { } } + */ + -} From ce9db957cf082a02b4f1a104f53ee3e2a61c9382 Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Thu, 19 Sep 2019 19:48:01 +0530 Subject: [PATCH 026/130] Update Jenkinsfile --- Jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index a545980..05af680 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,14 +1,14 @@ pipeline { stage('SCM') { steps { - git url: 'https://github.com/foo/bar.git' + git url: 'https://github.com/MishraKD/firstJava.git' } } stage('codeQuality & analysis') { steps { withSonarQubeEnv('My SonarQube Server') { // Optionally use a Maven environment you've configured already - withMaven(maven:'Maven 3.5') { + withMaven(maven:'Maven 3.0.4') { sh 'mvn clean package sonar:sonar' } } From 18c94dd133f5986eeea3c4952a4d40687f93d3c4 Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Thu, 19 Sep 2019 19:49:33 +0530 Subject: [PATCH 027/130] Update Jenkinsfile --- Jenkinsfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 05af680..0839d71 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,4 +1,5 @@ pipeline { + stages{ stage('SCM') { steps { git url: 'https://github.com/MishraKD/firstJava.git' @@ -23,6 +24,7 @@ pipeline { } stage('perfomance') { } + } } /* agent any From 6a536434bda064da3d1ca3c63de4d948e0c02b7b Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Thu, 19 Sep 2019 19:50:24 +0530 Subject: [PATCH 028/130] Update Jenkinsfile --- Jenkinsfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Jenkinsfile b/Jenkinsfile index 0839d71..d783c01 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,4 +1,5 @@ pipeline { + agent any stages{ stage('SCM') { steps { From 6b90bb59a2bf593eeda04df688a5f2f4daa5bc2d Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Thu, 19 Sep 2019 19:51:45 +0530 Subject: [PATCH 029/130] Update Jenkinsfile --- Jenkinsfile | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index d783c01..c5cb0dc 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -16,15 +16,7 @@ pipeline { } } } - stage('Security Yasca') { - } - stage('kubernetesDeployment') { - } - - stage('regression') { - } - stage('perfomance') { - } + } } /* agent any From 69ea9e3c40c44b9591e6fe6874c8b415942e1d95 Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Wed, 25 Sep 2019 13:39:50 +0530 Subject: [PATCH 030/130] added deployments --- Jenkinsfile | 127 +++++++--------------------------------------------- 1 file changed, 15 insertions(+), 112 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index c5cb0dc..03c2135 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,130 +1,33 @@ pipeline { agent any - stages{ - stage('SCM') { - steps { - git url: 'https://github.com/MishraKD/firstJava.git' - } - } - stage('codeQuality & analysis') { - steps { - withSonarQubeEnv('My SonarQube Server') { - // Optionally use a Maven environment you've configured already - withMaven(maven:'Maven 3.0.4') { - sh 'mvn clean package sonar:sonar' - } - } - } - } - } -} - /* agent any - - environment { - - //Input Docker registry name and image name - - DOCKER_IMAGE_NAME = "deepk/assign2:1.2" - - } - - - - stages { - - stage('pull docker images') { - agent { - docker { image 'deepk/assign2:1.2' } - } - } - - stage('Build Docker Image') { - - when { - - branch 'master' - - } + stage('DeployToProduction') { + steps { - steps { + + kubernetesDeploy( - script { + kubeconfigId: 'kubeconfiguration', - app = docker.build(DOCKER_IMAGE_NAME) - - //app.inside { - - sh 'echo Hello, World!' - - //} - - } - - } - - } - - //perform Docker push - - stage('Push Docker Image') { - - when { - - branch 'master' - - } - - steps { - - script { - - docker.withRegistry('https://registry.hub.docker.com', 'dockerhub_login') { - - app.push("${env.BUILD_NUMBER}") - - app.push("latest") - - } - - } - - - - } - - } - - stage('DeployToProduction') { - - when { + configs: 'deploymentfile.yml', - branch 'master' + enableConfigSubstitution: true + ) } - steps { - - //input 'Deploy to Production?' - - //milestone(1) - - kubernetesDeploy( - - kubeconfigId: 'kubeconfig', - - configs: 'deploymentfile.yml', + + } + + + +} - enableConfigSubstitution: true - ) - } - } - } - */ + From e77482cc80bcaf9b7e36f632c0a839eebbb50d1d Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Wed, 25 Sep 2019 13:52:52 +0530 Subject: [PATCH 031/130] stages added --- Jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 03c2135..2b3b96e 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,7 +1,7 @@ pipeline { agent any - stage('DeployToProduction') { + Stages{ stage('DeployToProduction') { steps { @@ -19,7 +19,7 @@ pipeline { } - + } } From c7c22b92d7a9d353f2e889533f0b1c76c4ab170e Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Wed, 25 Sep 2019 15:59:35 +0530 Subject: [PATCH 032/130] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 2b3b96e..44472f0 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,7 +1,7 @@ pipeline { agent any - Stages{ stage('DeployToProduction') { + stages{ stage('DeployToProduction') { steps { From 5c3c9f89e71e35430720bb1d61fa7c9a2683d8bb Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Thu, 26 Sep 2019 10:38:56 +0530 Subject: [PATCH 033/130] add kubernetes deployments --- Jenkinsfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 44472f0..ab8faed 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,7 +1,8 @@ pipeline { agent any - stages{ stage('DeployToProduction') { + stages{ + stage('DeployToProduction') { steps { @@ -21,6 +22,7 @@ pipeline { } + } From f753e8ba638e3963dc9d15f85d419e3fa0b11f82 Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Thu, 26 Sep 2019 17:03:19 +0530 Subject: [PATCH 034/130] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index ab8faed..1769d5e 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -8,7 +8,7 @@ pipeline { kubernetesDeploy( - kubeconfigId: 'kubeconfiguration', + kubeconfigId: 'kubeconfig', configs: 'deploymentfile.yml', From 905c7692b7508676bd491038cf73c3cb6d1666d6 Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Thu, 26 Sep 2019 17:16:18 +0530 Subject: [PATCH 035/130] Create deploymentfile.yml --- deploymentfile.yml | 1 + 1 file changed, 1 insertion(+) create mode 100644 deploymentfile.yml diff --git a/deploymentfile.yml b/deploymentfile.yml new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/deploymentfile.yml @@ -0,0 +1 @@ + From aaf00782bcb0e072bd849af2441542961471fd88 Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Thu, 26 Sep 2019 17:17:04 +0530 Subject: [PATCH 036/130] yml --- deploymentfile.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/deploymentfile.yml b/deploymentfile.yml index 8b13789..ca8e89b 100644 --- a/deploymentfile.yml +++ b/deploymentfile.yml @@ -1 +1,22 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: nginx-deployment + labels: + app: nginx +spec: + replicas: 1 + selector: + matchLabels: + app: nginx + template: + metadata: + labels: + app: nginx + spec: + containers: + - name: nginx + image: nginx:1.7.9 + ports: + - containerPort: 80 From fc2bfe9b1290fece848c27b938ccbb5ae5270b73 Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Thu, 26 Sep 2019 17:19:35 +0530 Subject: [PATCH 037/130] api version changed --- deploymentfile.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploymentfile.yml b/deploymentfile.yml index ca8e89b..c170b27 100644 --- a/deploymentfile.yml +++ b/deploymentfile.yml @@ -1,4 +1,4 @@ -apiVersion: apps/v1 +apiVersion: extensions/v1beta1 kind: Deployment metadata: name: nginx-deployment From 1dce6527b91e462da26506c76ba31393deb58a7a Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Thu, 3 Oct 2019 11:35:49 +0530 Subject: [PATCH 038/130] Create codequality --- codequality | 1 + 1 file changed, 1 insertion(+) create mode 100644 codequality diff --git a/codequality b/codequality new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/codequality @@ -0,0 +1 @@ + From 4e0a69d0d7dfa333834780645caf7e34500bd83e Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Thu, 3 Oct 2019 11:39:23 +0530 Subject: [PATCH 039/130] Delete codequality --- codequality | 1 - 1 file changed, 1 deletion(-) delete mode 100644 codequality diff --git a/codequality b/codequality deleted file mode 100644 index 8b13789..0000000 --- a/codequality +++ /dev/null @@ -1 +0,0 @@ - From 589cfc226e473ef7678427ca7e082ef737638073 Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Thu, 3 Oct 2019 13:42:42 +0530 Subject: [PATCH 040/130] sonarqube code quality --- Jenkinsfile | 54 ++++++++++++++++++++--------------------------------- 1 file changed, 20 insertions(+), 34 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 1769d5e..7a458d3 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,35 +1,21 @@ pipeline { - agent any - - stages{ - stage('DeployToProduction') { - steps { - - - kubernetesDeploy( - - kubeconfigId: 'kubeconfig', - - configs: 'deploymentfile.yml', - - enableConfigSubstitution: true - ) - - } - - - } - - } - - -} - - - - - - - - - + agent any + stages{ + stage('SCM') { + steps { + git url: 'https://github.com/MishraKD/assin11.git' + } + } + stage('codeQuality & analysis') { + steps { + withSonarQubeEnv('My SonarQube Server') { + + withMaven(maven:'Maven 3.0.4') { + sh 'mvn clean package sonar:sonar' + } + } + } + } + + } + } From 582280d717cf5af5c0df8f346830301c91333210 Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Thu, 3 Oct 2019 15:15:51 +0530 Subject: [PATCH 041/130] Update Jenkinsfile --- Jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 7a458d3..ca6246d 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -3,10 +3,10 @@ pipeline { stages{ stage('SCM') { steps { - git url: 'https://github.com/MishraKD/assin11.git' + git url: 'https://github.com/rohan0903/Devops.git' } } - stage('codeQuality & analysis') { + stage('SAST') { steps { withSonarQubeEnv('My SonarQube Server') { From 1a8d0de730527fde20bfd2aef2f4d3025c05f6aa Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Thu, 3 Oct 2019 15:25:25 +0530 Subject: [PATCH 042/130] Update Jenkinsfile --- Jenkinsfile | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index ca6246d..acfb8ff 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -8,12 +8,11 @@ pipeline { } stage('SAST') { steps { - withSonarQubeEnv('My SonarQube Server') { - - withMaven(maven:'Maven 3.0.4') { - sh 'mvn clean package sonar:sonar' - } - } + + sh '/var/jenkins_home/yasca/yascaConfigScript/yascaConfigScritp.sh' + + + } } From 8974b536329bb0bca51e72a2eee918ace4124589 Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Thu, 3 Oct 2019 15:40:08 +0530 Subject: [PATCH 043/130] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index acfb8ff..ffd9f96 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -3,7 +3,7 @@ pipeline { stages{ stage('SCM') { steps { - git url: 'https://github.com/rohan0903/Devops.git' + git url: 'https://github.com/MishraKD/assin11.git' } } stage('SAST') { From 7cd52b05070bbb2ee22bb2f78e0aff80c087c8c5 Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Thu, 3 Oct 2019 15:57:13 +0530 Subject: [PATCH 044/130] performance test --- Jenkinsfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index ffd9f96..b56473e 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -9,7 +9,10 @@ pipeline { stage('SAST') { steps { - sh '/var/jenkins_home/yasca/yascaConfigScript/yascaConfigScritp.sh' + PERFORMANCE_PATH="/var/jenkins_home/JMeter/jakarta-jmeter-2.5/bin" + cd '$PERFORMANCE_PATH' + sh 'jmeter.sh -n -t $WORKSPACE/microservice/performance-scripts/$JMX.jmx -l $WORKSPACE/$JMX.jtl' + From 0f32d17457077c7632a244142e107be0a559e461 Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Thu, 3 Oct 2019 15:57:29 +0530 Subject: [PATCH 045/130] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index b56473e..85520ba 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -9,7 +9,7 @@ pipeline { stage('SAST') { steps { - PERFORMANCE_PATH="/var/jenkins_home/JMeter/jakarta-jmeter-2.5/bin" + PERFORMANCE_PATH ="/var/jenkins_home/JMeter/jakarta-jmeter-2.5/bin" cd '$PERFORMANCE_PATH' sh 'jmeter.sh -n -t $WORKSPACE/microservice/performance-scripts/$JMX.jmx -l $WORKSPACE/$JMX.jtl' From 1f8998d571f8d71127a33c5ced338131a9bc8510 Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Thu, 3 Oct 2019 15:59:51 +0530 Subject: [PATCH 046/130] Update Jenkinsfile --- Jenkinsfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 85520ba..b37f4ba 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -9,9 +9,8 @@ pipeline { stage('SAST') { steps { - PERFORMANCE_PATH ="/var/jenkins_home/JMeter/jakarta-jmeter-2.5/bin" - cd '$PERFORMANCE_PATH' - sh 'jmeter.sh -n -t $WORKSPACE/microservice/performance-scripts/$JMX.jmx -l $WORKSPACE/$JMX.jtl' + sh '/var/jenkins_home/JMeter/jakarta-jmeter-2.5/bin' + sh 'jmeter.sh -n -t $WORKSPACE/microservice/performance-scripts/$JMX.jmx -l $WORKSPACE/$JMX.jtl' From 648d078dea14610d1769f5004be0102519de3890 Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Thu, 3 Oct 2019 16:00:45 +0530 Subject: [PATCH 047/130] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index b37f4ba..137da01 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -9,7 +9,7 @@ pipeline { stage('SAST') { steps { - sh '/var/jenkins_home/JMeter/jakarta-jmeter-2.5/bin' + sh 'jmeter.sh -n -t $WORKSPACE/microservice/performance-scripts/$JMX.jmx -l $WORKSPACE/$JMX.jtl' From 022a3577e0cc0c83b9bbe7ee33635d9b74b99cf2 Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Fri, 25 Oct 2019 14:36:02 +0530 Subject: [PATCH 048/130] Update Jenkinsfile commited --- Jenkinsfile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 137da01..611fb4f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -6,11 +6,15 @@ pipeline { git url: 'https://github.com/MishraKD/assin11.git' } } - stage('SAST') { + stage('soapui') { steps { + + SoapUIPro ( pathToTestrunner: '', pathToProjectFile: '', + testSuite: '[]', testCase: '[]', projectPassword: '[]', + environment: '[]' ) - sh 'jmeter.sh -n -t $WORKSPACE/microservice/performance-scripts/$JMX.jmx -l $WORKSPACE/$JMX.jtl' + From 4f2fa9b39cbf7ee204c43cbc71ba488ca6bd0711 Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Tue, 29 Oct 2019 11:59:43 +0530 Subject: [PATCH 049/130] Update Jenkinsfile --- Jenkinsfile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 611fb4f..6facf60 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -3,15 +3,14 @@ pipeline { stages{ stage('SCM') { steps { - git url: 'https://github.com/MishraKD/assin11.git' + git url: 'https://git-codecommit.eu-west-1.amazonaws.com/v1/repos/DevopMicro' } } stage('soapui') { steps { - SoapUIPro ( pathToTestrunner: '', pathToProjectFile: '', - testSuite: '[]', testCase: '[]', projectPassword: '[]', - environment: '[]' ) + sh /var/jenkins_home/soapui/SoapUI-5.2.1/bin/testrunner.sh -s"TestSuite 1" + -c"TestCase 1" -r /var/jenkins_home/workspace/KuberTesting2_SoapUi/REST-Project-1-soapui-project.xml From 830928d3e7c1ea1ae9e96b749a86a1386efb8f27 Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Tue, 29 Oct 2019 12:01:54 +0530 Subject: [PATCH 050/130] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 6facf60..d59fbb4 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -3,7 +3,7 @@ pipeline { stages{ stage('SCM') { steps { - git url: 'https://git-codecommit.eu-west-1.amazonaws.com/v1/repos/DevopMicro' + git url: '' } } stage('soapui') { From 1420c1e4b0077ab0ce577dc9bc770f848163ede3 Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Tue, 29 Oct 2019 12:02:50 +0530 Subject: [PATCH 051/130] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index d59fbb4..ff640f1 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -3,7 +3,7 @@ pipeline { stages{ stage('SCM') { steps { - git url: '' + git url: 'https://github.com/MishraKD/firstJava.git' } } stage('soapui') { From e2aea0d21e31b12505d4930211a954bd38683728 Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Mon, 4 Nov 2019 09:49:58 +0530 Subject: [PATCH 052/130] code quality code added on jebkins --- Jenkinsfile | 44 ++++++++++++++++++++------------------------ 1 file changed, 20 insertions(+), 24 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index ff640f1..3c39ace 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,25 +1,21 @@ pipeline { - agent any - stages{ - stage('SCM') { - steps { - git url: 'https://github.com/MishraKD/firstJava.git' - } - } - stage('soapui') { - steps { - - sh /var/jenkins_home/soapui/SoapUI-5.2.1/bin/testrunner.sh -s"TestSuite 1" - -c"TestCase 1" -r /var/jenkins_home/workspace/KuberTesting2_SoapUi/REST-Project-1-soapui-project.xml - - - - - - - - } - } - - } - } + agent any + stages{ + stage('SCM') { + steps { + git url: 'https://github.com/MishraKD/assin11.git' + } + } + stage('codeQuality & analysis') { + steps { + withSonarQubeEnv('My SonarQube Server') { + + withMaven(maven:'Maven 3.0.4') { + sh 'mvn clean package sonar:sonar' + } + } + } + } + + } + } From 0650623a6e8127475f3d6a198f107d064c745cc9 Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Mon, 4 Nov 2019 10:29:08 +0530 Subject: [PATCH 053/130] server name changed --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 3c39ace..d8c66ad 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -8,7 +8,7 @@ pipeline { } stage('codeQuality & analysis') { steps { - withSonarQubeEnv('My SonarQube Server') { + withSonarQubeEnv('sonar') { withMaven(maven:'Maven 3.0.4') { sh 'mvn clean package sonar:sonar' From 94d36a6a1fea60183c18c9ad914ff590c91d1332 Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Mon, 4 Nov 2019 10:49:22 +0530 Subject: [PATCH 054/130] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index d8c66ad..dcb03b3 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -10,7 +10,7 @@ pipeline { steps { withSonarQubeEnv('sonar') { - withMaven(maven:'Maven 3.0.4') { + withMaven(maven:'Maven 3.6.2') { sh 'mvn clean package sonar:sonar' } } From 6460371807e55a2c89779b439a1ad2a1dc6dc70e Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Mon, 4 Nov 2019 10:55:36 +0530 Subject: [PATCH 055/130] withMaven env changed --- Jenkinsfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index dcb03b3..2dc8484 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -9,10 +9,11 @@ pipeline { stage('codeQuality & analysis') { steps { withSonarQubeEnv('sonar') { + sh 'mvn clean package sonar:sonar' - withMaven(maven:'Maven 3.6.2') { - sh 'mvn clean package sonar:sonar' - } + // withMaven(maven:'Maven 3.6.2') { + + // } } } } From 03bf20e60f4e76d25a63a563e98c0e8b67f582cb Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Mon, 4 Nov 2019 11:13:15 +0530 Subject: [PATCH 056/130] m2_home changed --- Jenkinsfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 2dc8484..e5be6d4 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -9,11 +9,12 @@ pipeline { stage('codeQuality & analysis') { steps { withSonarQubeEnv('sonar') { - sh 'mvn clean package sonar:sonar' + - // withMaven(maven:'Maven 3.6.2') { + withMaven(maven:'M2_HOME') { + sh 'mvn clean package sonar:sonar' - // } + } } } } From 119ff863536d35590f3d3661213a1573f41f244f Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Mon, 4 Nov 2019 13:00:26 +0530 Subject: [PATCH 057/130] Update Jenkinsfile --- Jenkinsfile | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index e5be6d4..e8b5fb6 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -6,18 +6,16 @@ pipeline { git url: 'https://github.com/MishraKD/assin11.git' } } - stage('codeQuality & analysis') { - steps { - withSonarQubeEnv('sonar') { - - - withMaven(maven:'M2_HOME') { - sh 'mvn clean package sonar:sonar' - - } - } - } - } + stage('SAST') { + steps { + + sh '/var/jenkins_home/yasca/yascaConfigScript/yascaConfigScritp.sh' + + + + } + } + } } From 068a36d90a7c59ee40c87bc6a176f1fd4c89fb65 Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Mon, 4 Nov 2019 13:59:35 +0530 Subject: [PATCH 058/130] performance testing --- Jenkinsfile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index e8b5fb6..1940d21 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -6,16 +6,21 @@ pipeline { git url: 'https://github.com/MishraKD/assin11.git' } } - stage('SAST') { + stage('performance Testing') { steps { + sh '/var/jenkins_home/JMeter/jakarta-jmeter-2.5/bin/jmeter.sh' - sh '/var/jenkins_home/yasca/yascaConfigScript/yascaConfigScritp.sh' + // PERFORMANCE_PATH="/var/jenkins_home/JMeter/jakarta-jmeter-2.5/bin" + + //cd '$PERFORMANCE_PATH' + //sh 'jmeter.sh -n -t $WORKSPACE/microservice/performance-scripts/$JMX.jmx -l $WORKSPACE/$JMX.jtl' } } + } } From 0280d9ac54660fd55a7e752505f755d8abad1f49 Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Mon, 4 Nov 2019 14:01:45 +0530 Subject: [PATCH 059/130] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 1940d21..e1a24d0 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -8,7 +8,7 @@ pipeline { } stage('performance Testing') { steps { - sh '/var/jenkins_home/JMeter/jakarta-jmeter-2.5/bin/jmeter.sh' + sh '/var/jenkins_home/JMeter/jakarta-jmeter-2.5/bin/microservice/performance-scripts' // PERFORMANCE_PATH="/var/jenkins_home/JMeter/jakarta-jmeter-2.5/bin" From a84b4971c5bcbb88d7c64d6fca36fab921e913e8 Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Mon, 4 Nov 2019 16:09:08 +0530 Subject: [PATCH 060/130] Update Jenkinsfile --- Jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index e1a24d0..ec158b3 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -8,12 +8,12 @@ pipeline { } stage('performance Testing') { steps { - sh '/var/jenkins_home/JMeter/jakarta-jmeter-2.5/bin/microservice/performance-scripts' + //sh '/var/jenkins_home/JMeter/jakarta-jmeter-2.5/bin/microservice/performance-scripts' // PERFORMANCE_PATH="/var/jenkins_home/JMeter/jakarta-jmeter-2.5/bin" //cd '$PERFORMANCE_PATH' - //sh 'jmeter.sh -n -t $WORKSPACE/microservice/performance-scripts/$JMX.jmx -l $WORKSPACE/$JMX.jtl' + sh 'jmeter.sh -n -t $WORKSPACE/microservice/performance-scripts/$JMX.jmx -l $WORKSPACE/$JMX.jtl' From 39442ba7313ea13eca580ef9f1de10b0de6f35ad Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Mon, 4 Nov 2019 16:11:04 +0530 Subject: [PATCH 061/130] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index ec158b3..6cc72ec 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -13,7 +13,7 @@ pipeline { // PERFORMANCE_PATH="/var/jenkins_home/JMeter/jakarta-jmeter-2.5/bin" //cd '$PERFORMANCE_PATH' - sh 'jmeter.sh -n -t $WORKSPACE/microservice/performance-scripts/$JMX.jmx -l $WORKSPACE/$JMX.jtl' + sh '/var/jenkins_home/JMeter/jakarta-jmeter-2.5/bin -n -t $WORKSPACE/microservice/performance-scripts/$JMX.jmx -l $WORKSPACE/$JMX.jtl' From 7157c96e64dccc966f421959a582c5cea591e87b Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Mon, 4 Nov 2019 16:12:36 +0530 Subject: [PATCH 062/130] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 6cc72ec..0715fa5 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -13,7 +13,7 @@ pipeline { // PERFORMANCE_PATH="/var/jenkins_home/JMeter/jakarta-jmeter-2.5/bin" //cd '$PERFORMANCE_PATH' - sh '/var/jenkins_home/JMeter/jakarta-jmeter-2.5/bin -n -t $WORKSPACE/microservice/performance-scripts/$JMX.jmx -l $WORKSPACE/$JMX.jtl' + sh '/var/jenkins_home/JMeter -n -t $WORKSPACE/microservice/performance-scripts/$JMX.jmx -l $WORKSPACE/$JMX.jtl' From 4a5367eb7a307fc1507236fcfc1260e6f4e8c1ac Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Mon, 4 Nov 2019 16:14:45 +0530 Subject: [PATCH 063/130] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 0715fa5..80a48c2 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -13,7 +13,7 @@ pipeline { // PERFORMANCE_PATH="/var/jenkins_home/JMeter/jakarta-jmeter-2.5/bin" //cd '$PERFORMANCE_PATH' - sh '/var/jenkins_home/JMeter -n -t $WORKSPACE/microservice/performance-scripts/$JMX.jmx -l $WORKSPACE/$JMX.jtl' + sh 'jmeter -n -t $WORKSPACE/microservice/performance-scripts/$JMX.jmx -l $WORKSPACE/$JMX.jtl' From 0e9d06ccfea8c5ce13c4c3a0c892be8d1c5ce903 Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Mon, 4 Nov 2019 16:16:10 +0530 Subject: [PATCH 064/130] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 80a48c2..35e8444 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -13,7 +13,7 @@ pipeline { // PERFORMANCE_PATH="/var/jenkins_home/JMeter/jakarta-jmeter-2.5/bin" //cd '$PERFORMANCE_PATH' - sh 'jmeter -n -t $WORKSPACE/microservice/performance-scripts/$JMX.jmx -l $WORKSPACE/$JMX.jtl' + sh 'jmeter -Jjmeter.save.saveservice.output_format=xml -n -t $WORKSPACE/microservice/performance-scripts/$JMX.jmx -l $WORKSPACE/$JMX.jtl' From d25573c78f27c35e592f747e55187844db5be124 Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Mon, 4 Nov 2019 16:19:19 +0530 Subject: [PATCH 065/130] Update Jenkinsfile --- Jenkinsfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 35e8444..d82dcdc 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -6,6 +6,9 @@ pipeline { git url: 'https://github.com/MishraKD/assin11.git' } } + dir('jmeter') { + sh "./mvnw clean install -DskipTests" + } stage('performance Testing') { steps { //sh '/var/jenkins_home/JMeter/jakarta-jmeter-2.5/bin/microservice/performance-scripts' From 94a3df5667a5ea25841710ee2d1dc23649be463f Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Mon, 4 Nov 2019 16:20:06 +0530 Subject: [PATCH 066/130] Update Jenkinsfile --- Jenkinsfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index d82dcdc..9228e50 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,14 +1,15 @@ pipeline { agent any + dir('jmeter') { + sh "./mvnw clean install -DskipTests" + } stages{ stage('SCM') { steps { git url: 'https://github.com/MishraKD/assin11.git' } } - dir('jmeter') { - sh "./mvnw clean install -DskipTests" - } + stage('performance Testing') { steps { //sh '/var/jenkins_home/JMeter/jakarta-jmeter-2.5/bin/microservice/performance-scripts' From fad79a4c73f5d3d6505f277881faa45c71bee9a3 Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Mon, 4 Nov 2019 16:21:08 +0530 Subject: [PATCH 067/130] Update Jenkinsfile --- Jenkinsfile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 9228e50..8ab9bcc 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,8 +1,6 @@ pipeline { agent any - dir('jmeter') { - sh "./mvnw clean install -DskipTests" - } + stages{ stage('SCM') { steps { @@ -17,7 +15,8 @@ pipeline { // PERFORMANCE_PATH="/var/jenkins_home/JMeter/jakarta-jmeter-2.5/bin" //cd '$PERFORMANCE_PATH' - sh 'jmeter -Jjmeter.save.saveservice.output_format=xml -n -t $WORKSPACE/microservice/performance-scripts/$JMX.jmx -l $WORKSPACE/$JMX.jtl' + sh "./mvnw clean install -DskipTests" + //sh 'jmeter -Jjmeter.save.saveservice.output_format=xml -n -t $WORKSPACE/microservice/performance-scripts/$JMX.jmx -l $WORKSPACE/$JMX.jtl' From 897d101608b2b885afa3c10066b5770b2369c883 Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Tue, 5 Nov 2019 10:20:06 +0530 Subject: [PATCH 068/130] Update Jenkinsfile --- Jenkinsfile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 8ab9bcc..2df3006 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -10,13 +10,14 @@ pipeline { stage('performance Testing') { steps { - //sh '/var/jenkins_home/JMeter/jakarta-jmeter-2.5/bin/microservice/performance-scripts' + //bat 'c:/jmeter/bin/jmeter.bat -n -t c:/jmeter/extras/Test.jmx -l test.jtl' + sh '/var/jenkins_home/JMeter/jakarta-jmeter-2.5/bin/jmeter.sh' // PERFORMANCE_PATH="/var/jenkins_home/JMeter/jakarta-jmeter-2.5/bin" - + //microservice/performance-scripts //cd '$PERFORMANCE_PATH' - sh "./mvnw clean install -DskipTests" - //sh 'jmeter -Jjmeter.save.saveservice.output_format=xml -n -t $WORKSPACE/microservice/performance-scripts/$JMX.jmx -l $WORKSPACE/$JMX.jtl' + + // sh 'jmeter.sh -n -t $WORKSPACE/microservice/performance-scripts/$JMX.jmx -l $WORKSPACE/$JMX.jtl' From b24f782b8c13ddf94d4a589ae12cb3d59adc07c8 Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Tue, 5 Nov 2019 10:22:33 +0530 Subject: [PATCH 069/130] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 2df3006..9b1a1f0 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -11,7 +11,7 @@ pipeline { stage('performance Testing') { steps { //bat 'c:/jmeter/bin/jmeter.bat -n -t c:/jmeter/extras/Test.jmx -l test.jtl' - sh '/var/jenkins_home/JMeter/jakarta-jmeter-2.5/bin/jmeter.sh' + sh '/var/jenkins_home/JMeter/jakarta-jmeter-2.5/bin/jmeter.sh -n -t $WORKSPACE/microservice/performance-scripts/$JMX.jmx -l $WORKSPACE/$JMX.jtl' // PERFORMANCE_PATH="/var/jenkins_home/JMeter/jakarta-jmeter-2.5/bin" //microservice/performance-scripts From a104b52238c22de5e2598d63b8d72494ca8e272a Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Tue, 5 Nov 2019 11:02:04 +0530 Subject: [PATCH 070/130] Update Jenkinsfile --- Jenkinsfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 9b1a1f0..df375ac 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -10,8 +10,10 @@ pipeline { stage('performance Testing') { steps { + + sh '/var/jenkins_home/soapui/SoapUI-5.2.1/bin/testrunner.sh -s"TestSuite 1" -c"TestCase 1" -r /var/jenkins_home/workspace/KuberTesting2_SoapUi/REST-Project-1-soapui-project.xml' //bat 'c:/jmeter/bin/jmeter.bat -n -t c:/jmeter/extras/Test.jmx -l test.jtl' - sh '/var/jenkins_home/JMeter/jakarta-jmeter-2.5/bin/jmeter.sh -n -t $WORKSPACE/microservice/performance-scripts/$JMX.jmx -l $WORKSPACE/$JMX.jtl' + //sh '/var/jenkins_home/JMeter/jakarta-jmeter-2.5/bin/jmeter.sh -n -t $WORKSPACE/microservice/performance-scripts/$JMX.jmx -l $WORKSPACE/$JMX.jtl' // PERFORMANCE_PATH="/var/jenkins_home/JMeter/jakarta-jmeter-2.5/bin" //microservice/performance-scripts From 3ee2dec34074448842171242da9d1fdfc53eccc8 Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Tue, 5 Nov 2019 11:03:49 +0530 Subject: [PATCH 071/130] Update Jenkinsfile --- Jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index df375ac..63792e6 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -11,9 +11,9 @@ pipeline { stage('performance Testing') { steps { - sh '/var/jenkins_home/soapui/SoapUI-5.2.1/bin/testrunner.sh -s"TestSuite 1" -c"TestCase 1" -r /var/jenkins_home/workspace/KuberTesting2_SoapUi/REST-Project-1-soapui-project.xml' + //sh '/var/jenkins_home/soapui/SoapUI-5.2.1/bin/testrunner.sh -s"TestSuite 1" -c"TestCase 1" -r /var/jenkins_home/workspace/KuberTesting2_SoapUi/REST-Project-1-soapui-project.xml' //bat 'c:/jmeter/bin/jmeter.bat -n -t c:/jmeter/extras/Test.jmx -l test.jtl' - //sh '/var/jenkins_home/JMeter/jakarta-jmeter-2.5/bin/jmeter.sh -n -t $WORKSPACE/microservice/performance-scripts/$JMX.jmx -l $WORKSPACE/$JMX.jtl' + sh '/var/jenkins_home/JMeter/jakarta-jmeter-2.5/bin/jmeter.sh -n -t $WORKSPACE/microservice/performance-scripts/$JMX.jmx -l $WORKSPACE/$JMX.jtl' // PERFORMANCE_PATH="/var/jenkins_home/JMeter/jakarta-jmeter-2.5/bin" //microservice/performance-scripts From 73b5037897bf3e7d4dec87e855bae6bc54182f6f Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Tue, 5 Nov 2019 11:19:04 +0530 Subject: [PATCH 072/130] soapui --- Jenkinsfile | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 63792e6..92f35e8 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -8,18 +8,18 @@ pipeline { } } - stage('performance Testing') { + stage('soapui & regression') { steps { - //sh '/var/jenkins_home/soapui/SoapUI-5.2.1/bin/testrunner.sh -s"TestSuite 1" -c"TestCase 1" -r /var/jenkins_home/workspace/KuberTesting2_SoapUi/REST-Project-1-soapui-project.xml' + sh '/var/jenkins_home/soapui/SoapUI-5.2.1/bin/testrunner.sh -s"TestSuite 1" -c"TestCase 1" -r /var/jenkins_home/workspace/KuberTesting2_SoapUi/REST-Project-1-soapui-project.xml' + + + + //bat 'c:/jmeter/bin/jmeter.bat -n -t c:/jmeter/extras/Test.jmx -l test.jtl' - sh '/var/jenkins_home/JMeter/jakarta-jmeter-2.5/bin/jmeter.sh -n -t $WORKSPACE/microservice/performance-scripts/$JMX.jmx -l $WORKSPACE/$JMX.jtl' + //sh '/var/jenkins_home/JMeter/jakarta-jmeter-2.5/bin/jmeter.sh -n -t $WORKSPACE/microservice/performance-scripts/$JMX.jmx -l $WORKSPACE/$JMX.jtl' - // PERFORMANCE_PATH="/var/jenkins_home/JMeter/jakarta-jmeter-2.5/bin" - //microservice/performance-scripts - //cd '$PERFORMANCE_PATH' - - // sh 'jmeter.sh -n -t $WORKSPACE/microservice/performance-scripts/$JMX.jmx -l $WORKSPACE/$JMX.jtl' + From 879c9d0a07d2f11b4f19bd915880bdc21158369f Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Tue, 5 Nov 2019 11:37:43 +0530 Subject: [PATCH 073/130] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 92f35e8..2af5c6f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -11,7 +11,7 @@ pipeline { stage('soapui & regression') { steps { - sh '/var/jenkins_home/soapui/SoapUI-5.2.1/bin/testrunner.sh -s"TestSuite 1" -c"TestCase 1" -r /var/jenkins_home/workspace/KuberTesting2_SoapUi/REST-Project-1-soapui-project.xml' + sh '/var/jenkins_home/soapui/SoapUI-5.2.1/bin/testrunner.sh -s "TestSuite 1" -c "TestCase 1" -r /var/jenkins_home/workspace/deployKubeApp_SoapUi/REST-Project-1-soapui-project.xml' From 72cea7b5ccf3f96cde5ca290a277104ad11332bb Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Tue, 5 Nov 2019 11:45:03 +0530 Subject: [PATCH 074/130] Update Jenkinsfile --- Jenkinsfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 2af5c6f..ea3918c 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -11,7 +11,8 @@ pipeline { stage('soapui & regression') { steps { - sh '/var/jenkins_home/soapui/SoapUI-5.2.1/bin/testrunner.sh -s "TestSuite 1" -c "TestCase 1" -r /var/jenkins_home/workspace/deployKubeApp_SoapUi/REST-Project-1-soapui-project.xml' + sh '/var/jenkins_home/soapui/SoapUI-5.2.1/bin/testrunner.sh + -s "TestSuite 1" -c "TestCase 1" -r /var/jenkins_home/workspace/deployKubeApp_SoapUi/REST-Project-1-soapui-project.xml' From c6251ca79f3b1d280b27179c2ff816cbb7e15fea Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Tue, 5 Nov 2019 11:46:21 +0530 Subject: [PATCH 075/130] Update Jenkinsfile --- Jenkinsfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index ea3918c..2af5c6f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -11,8 +11,7 @@ pipeline { stage('soapui & regression') { steps { - sh '/var/jenkins_home/soapui/SoapUI-5.2.1/bin/testrunner.sh - -s "TestSuite 1" -c "TestCase 1" -r /var/jenkins_home/workspace/deployKubeApp_SoapUi/REST-Project-1-soapui-project.xml' + sh '/var/jenkins_home/soapui/SoapUI-5.2.1/bin/testrunner.sh -s "TestSuite 1" -c "TestCase 1" -r /var/jenkins_home/workspace/deployKubeApp_SoapUi/REST-Project-1-soapui-project.xml' From 88ff9d8c902fbfe27b5bbe59fb768a0069716215 Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Tue, 5 Nov 2019 15:23:43 +0530 Subject: [PATCH 076/130] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 2af5c6f..ed3e366 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -11,7 +11,7 @@ pipeline { stage('soapui & regression') { steps { - sh '/var/jenkins_home/soapui/SoapUI-5.2.1/bin/testrunner.sh -s "TestSuite 1" -c "TestCase 1" -r /var/jenkins_home/workspace/deployKubeApp_SoapUi/REST-Project-1-soapui-project.xml' + sh '/var/jenkins_home/soapui/SoapUI-5.2.1/bin/testrunner.sh -s"TestSuite 1" -c"TestCase 1" -r /var/jenkins_home/workspace/deployKubeApp_SoapUi/REST-Project-1-soapui-project.xml' From c13a9b07eb9674a6cf54ed2385bbfa1b0256af80 Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Wed, 6 Nov 2019 10:45:18 +0530 Subject: [PATCH 077/130] data code quality --- Jenkinsfile | 64 ++++++++++++++++++++++++++++------------------------- 1 file changed, 34 insertions(+), 30 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index ed3e366..38cdef4 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,32 +1,36 @@ pipeline { - agent any + agent any - stages{ - stage('SCM') { - steps { - git url: 'https://github.com/MishraKD/assin11.git' - } - } - - stage('soapui & regression') { - steps { - - sh '/var/jenkins_home/soapui/SoapUI-5.2.1/bin/testrunner.sh -s"TestSuite 1" -c"TestCase 1" -r /var/jenkins_home/workspace/deployKubeApp_SoapUi/REST-Project-1-soapui-project.xml' - - - - - //bat 'c:/jmeter/bin/jmeter.bat -n -t c:/jmeter/extras/Test.jmx -l test.jtl' - //sh '/var/jenkins_home/JMeter/jakarta-jmeter-2.5/bin/jmeter.sh -n -t $WORKSPACE/microservice/performance-scripts/$JMX.jmx -l $WORKSPACE/$JMX.jtl' - - - - - - } - } - - - - } - } + stages { + + stage('code-quality') { + + when { + + branch 'master' + + } + + steps { + + script { + + withSonarQubeEnv('sonar') { + + + withMaven(maven:'M2_HOME') { + sh 'mvn clean package sonar:sonar' + + } + } + + + + } + + } + + } + + } +} From de1acb37ec465cfb1ad1f56aa324946c684e0cb3 Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Wed, 6 Nov 2019 14:02:23 +0530 Subject: [PATCH 078/130] code quality codes --- Jenkinsfile | 30 +++++++++--------------------- 1 file changed, 9 insertions(+), 21 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 38cdef4..50b8915 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -3,19 +3,14 @@ pipeline { stages { - stage('code-quality') { - - when { - - branch 'master' - - } - - steps { - - script { - - withSonarQubeEnv('sonar') { + stage('SCM') { + steps { + git url: 'https://github.com/MishraKD/assin11.git' + } + } + stage('codeQuality & analysis') { + steps { + withSonarQubeEnv('sonar') { withMaven(maven:'M2_HOME') { @@ -23,14 +18,7 @@ pipeline { } } - - - - } - - } - - } + } } } From 3c38077331fd20353c22fb1502cd8c275c7301de Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Wed, 6 Nov 2019 14:02:39 +0530 Subject: [PATCH 079/130] code quality codes --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 50b8915..ecd473b 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -20,5 +20,5 @@ pipeline { } } - } + } } From 390a8428534d62db725c4a9fb5f27448a1f0a297 Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Wed, 6 Nov 2019 14:37:11 +0530 Subject: [PATCH 080/130] Update Jenkinsfile --- Jenkinsfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Jenkinsfile b/Jenkinsfile index ecd473b..3a02ea6 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -22,3 +22,4 @@ pipeline { } } +} From bc48a8c261cc7d878b73d6a6fd293f390de05c5f Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Wed, 6 Nov 2019 14:40:46 +0530 Subject: [PATCH 081/130] Update Jenkinsfile --- Jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 3a02ea6..615254e 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -19,7 +19,7 @@ pipeline { } } } - + } + } } -} From a2bbc21d3f2e49c56b1f1822a39c12f4eb350018 Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Fri, 8 Nov 2019 11:18:50 +0530 Subject: [PATCH 082/130] Update Jenkinsfile --- Jenkinsfile | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 615254e..20da0d6 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -20,6 +20,17 @@ pipeline { } } } - + stage('SAST') { + steps { + + sh '/var/jenkins_home/yasca/yascaConfigScript/yascaConfigScritp.sh' + + + + } + } + + + } } From 18324952117d6412aba83fc3f0e52b84724e4471 Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Fri, 8 Nov 2019 11:25:37 +0530 Subject: [PATCH 083/130] Update Jenkinsfile --- Jenkinsfile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 20da0d6..06da946 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -29,6 +29,22 @@ pipeline { } } + + stage('DeployToProduction') { + steps { + + + kubernetesDeploy( + + kubeconfigId: 'kubeconfig', + + configs: 'deploymentfile.yml', + + enableConfigSubstitution: true + ) + + } + } From c310776e4e8e0813e1175c4c3b4a0709fe9e5711 Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Fri, 8 Nov 2019 11:31:36 +0530 Subject: [PATCH 084/130] deployments --- Jenkinsfile | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 06da946..bad65e8 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -8,27 +8,7 @@ pipeline { git url: 'https://github.com/MishraKD/assin11.git' } } - stage('codeQuality & analysis') { - steps { - withSonarQubeEnv('sonar') { - - - withMaven(maven:'M2_HOME') { - sh 'mvn clean package sonar:sonar' - - } - } - } - } - stage('SAST') { - steps { - - sh '/var/jenkins_home/yasca/yascaConfigScript/yascaConfigScritp.sh' - - - - } - } + stage('DeployToProduction') { steps { From 0dc97df2dd2648c41c81f339feee2b308f601290 Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Fri, 8 Nov 2019 11:31:50 +0530 Subject: [PATCH 085/130] deployments added From d073daffa6d3967759c747814c683b61696a5f34 Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Fri, 8 Nov 2019 11:54:55 +0530 Subject: [PATCH 086/130] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index bad65e8..b500a6b 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -5,7 +5,7 @@ pipeline { stage('SCM') { steps { - git url: 'https://github.com/MishraKD/assin11.git' + // git url: 'https://github.com/MishraKD/assin11.git' } } From 49f4d6b4aa20a09bf142f5d9b203c05376505013 Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Fri, 8 Nov 2019 12:00:25 +0530 Subject: [PATCH 087/130] Update Jenkinsfile --- Jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index b500a6b..11bc2da 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -4,9 +4,9 @@ pipeline { stages { stage('SCM') { - steps { + //steps { // git url: 'https://github.com/MishraKD/assin11.git' - } + //} } From 641431b528263944927db3aaead6518efba55c86 Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Fri, 8 Nov 2019 12:01:35 +0530 Subject: [PATCH 088/130] Update Jenkinsfile --- Jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 11bc2da..44fea3b 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -3,11 +3,11 @@ pipeline { stages { - stage('SCM') { + // stage('SCM') { //steps { // git url: 'https://github.com/MishraKD/assin11.git' //} - } + // } stage('DeployToProduction') { From 603df600af68844a36770b5358b5fda8e7f819f0 Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Fri, 8 Nov 2019 12:13:10 +0530 Subject: [PATCH 089/130] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 44fea3b..84e01c9 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -3,7 +3,7 @@ pipeline { stages { - // stage('SCM') { + //stage('SCM') { //steps { // git url: 'https://github.com/MishraKD/assin11.git' //} From a0e14ab5ffbdbf11329d77388815cafb80597c06 Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Fri, 8 Nov 2019 12:31:56 +0530 Subject: [PATCH 090/130] upto deployments --- Jenkinsfile | 31 ++++++++++++++++++++++++++----- 1 file changed, 26 insertions(+), 5 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 84e01c9..972c257 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -3,11 +3,32 @@ pipeline { stages { - //stage('SCM') { - //steps { - // git url: 'https://github.com/MishraKD/assin11.git' - //} - // } + stage('SCM') { + steps { + git url: 'https://github.com/MishraKD/assin11.git' + } + } + stage('codeQuality & analysis') { + steps { + withSonarQubeEnv('sonar') { + + + withMaven(maven:'M2_HOME') { + sh 'mvn clean package sonar:sonar' + + } + } + } + } + stage('SAST') { + steps { + + sh '/var/jenkins_home/yasca/yascaConfigScript/yascaConfigScritp.sh' + + + + } + } stage('DeployToProduction') { From 9accd5c829943f9bf9cf86df848bc4e9fe86a056 Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Fri, 8 Nov 2019 12:45:26 +0530 Subject: [PATCH 091/130] Update Jenkinsfile --- Jenkinsfile | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 972c257..e35e0b7 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -46,8 +46,44 @@ pipeline { } } + + stage('soapui') { + steps { + + sh '/var/jenkins_home/soapui/SoapUI-5.2.1/bin/testrunner.sh -s"TestSuite 1" -c"TestCase 1" -r /var/jenkins_home/workspace/KuberTesting2_SoapUi/REST-Project-1-soapui-project.xml' + + } + } + + stage('performance Testing') { + steps { + + //sh '/var/jenkins_home/soapui/SoapUI-5.2.1/bin/testrunner.sh -s"TestSuite 1" -c"TestCase 1" -r /var/jenkins_home/workspace/KuberTesting2_SoapUi/REST-Project-1-soapui-project.xml' + //bat 'c:/jmeter/bin/jmeter.bat -n -t c:/jmeter/extras/Test.jmx -l test.jtl' + sh '/var/jenkins_home/JMeter/jakarta-jmeter-2.5/bin/jmeter.sh -n -t $WORKSPACE/microservice/performance-scripts/$JMX.jmx -l $WORKSPACE/$JMX.jtl' + + // PERFORMANCE_PATH="/var/jenkins_home/JMeter/jakarta-jmeter-2.5/bin" + //microservice/performance-scripts + //cd '$PERFORMANCE_PATH' + + // sh 'jmeter.sh -n -t $WORKSPACE/microservice/performance-scripts/$JMX.jmx -l $WORKSPACE/$JMX.jtl' + + + + } + } + } } + + + + + + + + + From cc6bfd217a821a98ef7f27bc6efd4f24f04ad07b Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Fri, 8 Nov 2019 13:57:42 +0530 Subject: [PATCH 092/130] Update deploymentfile.yml --- deploymentfile.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploymentfile.yml b/deploymentfile.yml index c170b27..95eb234 100644 --- a/deploymentfile.yml +++ b/deploymentfile.yml @@ -1,7 +1,7 @@ apiVersion: extensions/v1beta1 kind: Deployment metadata: - name: nginx-deployment + name: nginx-deployment1 labels: app: nginx spec: From 7ba3a0d4eed9582a9a1742732117ee80bd9fa3cb Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Fri, 8 Nov 2019 14:49:55 +0530 Subject: [PATCH 093/130] Update Jenkinsfile --- Jenkinsfile | 29 +---------------------------- 1 file changed, 1 insertion(+), 28 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index e35e0b7..5e784ff 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -8,27 +8,7 @@ pipeline { git url: 'https://github.com/MishraKD/assin11.git' } } - stage('codeQuality & analysis') { - steps { - withSonarQubeEnv('sonar') { - - - withMaven(maven:'M2_HOME') { - sh 'mvn clean package sonar:sonar' - - } - } - } - } - stage('SAST') { - steps { - - sh '/var/jenkins_home/yasca/yascaConfigScript/yascaConfigScritp.sh' - - - - } - } + stage('DeployToProduction') { @@ -47,13 +27,6 @@ pipeline { } } - stage('soapui') { - steps { - - sh '/var/jenkins_home/soapui/SoapUI-5.2.1/bin/testrunner.sh -s"TestSuite 1" -c"TestCase 1" -r /var/jenkins_home/workspace/KuberTesting2_SoapUi/REST-Project-1-soapui-project.xml' - - } - } stage('performance Testing') { steps { From aca1849bb6c085cd7f5540905cf5cb1a06d14858 Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Fri, 8 Nov 2019 14:51:02 +0530 Subject: [PATCH 094/130] Update Jenkinsfile --- Jenkinsfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 5e784ff..e949e71 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -4,10 +4,10 @@ pipeline { stages { stage('SCM') { - steps { - git url: 'https://github.com/MishraKD/assin11.git' - } - } + // steps { + // git url: 'https://github.com/MishraKD/assin11.git' + // } + // } From 97f4bd715f2112948e21d5344e9287eab3307d82 Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Fri, 8 Nov 2019 14:51:52 +0530 Subject: [PATCH 095/130] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index e949e71..e1ab49b 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -7,7 +7,7 @@ pipeline { // steps { // git url: 'https://github.com/MishraKD/assin11.git' // } - // } + } From a535f1f1ccf6d924013f2472a84380da848efb03 Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Fri, 8 Nov 2019 14:52:31 +0530 Subject: [PATCH 096/130] Update Jenkinsfile --- Jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index e1ab49b..262c099 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -3,11 +3,11 @@ pipeline { stages { - stage('SCM') { + //stage('SCM') { // steps { // git url: 'https://github.com/MishraKD/assin11.git' // } - } + // } From cca72e896d3a72355490435b3de830ff1b161cb0 Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Fri, 8 Nov 2019 14:56:47 +0530 Subject: [PATCH 097/130] Update Jenkinsfile --- Jenkinsfile | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 262c099..762aa4f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,14 +1,15 @@ pipeline { agent any + stage('SCM') { + steps { + git url: 'https://github.com/MishraKD/assin11.git' + } + } + stages { - //stage('SCM') { - // steps { - // git url: 'https://github.com/MishraKD/assin11.git' - // } - // } - + stage('DeployToProduction') { From 245df2f905996963b9458fba6e35926aa857b612 Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Fri, 8 Nov 2019 14:59:36 +0530 Subject: [PATCH 098/130] Update Jenkinsfile --- Jenkinsfile | 33 +++++++++++++++++++++++++-------- 1 file changed, 25 insertions(+), 8 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 762aa4f..ba4e7ad 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,13 +1,30 @@ pipeline { - agent any - stage('SCM') { - steps { - git url: 'https://github.com/MishraKD/assin11.git' - } - } - - + agent any stages { + stage('codeQuality & analysis') { + steps { + withSonarQubeEnv('sonar') { + + + withMaven(maven:'M2_HOME') { + sh 'mvn clean package sonar:sonar' + + } + } + } + } + stage('SAST') { + steps { + + sh '/var/jenkins_home/yasca/yascaConfigScript/yascaConfigScritp.sh' + + + + } + } + + + From c84d2502738d18c3eb9305fae6efb6fac352f5eb Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Fri, 8 Nov 2019 15:01:22 +0530 Subject: [PATCH 099/130] Update Jenkinsfile --- Jenkinsfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Jenkinsfile b/Jenkinsfile index ba4e7ad..7e0d909 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -3,6 +3,7 @@ pipeline { stages { stage('codeQuality & analysis') { steps { + git url: 'https://github.com/MishraKD/assin11.git' withSonarQubeEnv('sonar') { From b8cf889ab615d98d0c950217593fd5095aeff9fd Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Fri, 8 Nov 2019 15:19:12 +0530 Subject: [PATCH 100/130] added git --- Jenkinsfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Jenkinsfile b/Jenkinsfile index 7e0d909..3057924 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -32,6 +32,7 @@ pipeline { stage('DeployToProduction') { steps { + git url: 'https://github.com/MishraKD/assin11.git' kubernetesDeploy( From 426e5588f3a1662ca20d9b7b3ad2d0b5851b823c Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Fri, 8 Nov 2019 15:27:41 +0530 Subject: [PATCH 101/130] Update Jenkinsfile --- Jenkinsfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 3057924..19e567c 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -3,7 +3,7 @@ pipeline { stages { stage('codeQuality & analysis') { steps { - git url: 'https://github.com/MishraKD/assin11.git' + withSonarQubeEnv('sonar') { @@ -32,8 +32,7 @@ pipeline { stage('DeployToProduction') { steps { - git url: 'https://github.com/MishraKD/assin11.git' - + kubernetesDeploy( From 1134fcc01d9f79ba96621ccd188eec19dfb498ed Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Tue, 12 Nov 2019 15:29:17 +0530 Subject: [PATCH 102/130] added git repository --- Jenkinsfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 19e567c..4810255 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,6 +1,12 @@ pipeline { agent any stages { + stage('SCM') { + steps { + git url: 'https://github.com/MishraKD/assin11.git' + } + } + stage('codeQuality & analysis') { steps { From 8ca749708d0e897db40e4c29b076d90557b9581e Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Tue, 12 Nov 2019 15:29:32 +0530 Subject: [PATCH 103/130] added git repository From 4b7bd8aff661baec60eabe97ad2a59fde88b9b75 Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Thu, 14 Nov 2019 15:45:01 +0530 Subject: [PATCH 104/130] Update deploymentfile.yml --- deploymentfile.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploymentfile.yml b/deploymentfile.yml index 95eb234..c170b27 100644 --- a/deploymentfile.yml +++ b/deploymentfile.yml @@ -1,7 +1,7 @@ apiVersion: extensions/v1beta1 kind: Deployment metadata: - name: nginx-deployment1 + name: nginx-deployment labels: app: nginx spec: From 3b33d3612253b17e2140fa7026ddeb3a81597afb Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Mon, 18 Nov 2019 10:29:58 +0530 Subject: [PATCH 105/130] added new deploy files --- Jenkinsfile | 23 ++++++----------------- 1 file changed, 6 insertions(+), 17 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 4810255..2332507 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -35,23 +35,12 @@ pipeline { - - stage('DeployToProduction') { - steps { - - - kubernetesDeploy( - - kubeconfigId: 'kubeconfig', - - configs: 'deploymentfile.yml', - - enableConfigSubstitution: true - ) - - } - } - + stage('Apply Kubernetes Files') { + steps { + withKubeConfig([credentialsId: 'kubeconfig']) { + sh 'kubectl apply -f deploymentfile.yaml' + } + } stage('performance Testing') { steps { From 8661622e04feca640fed0673c39b3a11edda733d Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Mon, 18 Nov 2019 10:31:20 +0530 Subject: [PATCH 106/130] Update Jenkinsfile --- Jenkinsfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Jenkinsfile b/Jenkinsfile index 2332507..2d02e08 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -41,6 +41,7 @@ pipeline { sh 'kubectl apply -f deploymentfile.yaml' } } + } stage('performance Testing') { steps { From 6429f4480598520e41c50190a26fa6862ff2b9c2 Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Mon, 18 Nov 2019 10:40:48 +0530 Subject: [PATCH 107/130] Update Jenkinsfile --- Jenkinsfile | 52 +++------------------------------------------------- 1 file changed, 3 insertions(+), 49 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 2d02e08..c3fefa0 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -6,61 +6,15 @@ pipeline { git url: 'https://github.com/MishraKD/assin11.git' } } - - stage('codeQuality & analysis') { - steps { - - withSonarQubeEnv('sonar') { - - - withMaven(maven:'M2_HOME') { - sh 'mvn clean package sonar:sonar' - - } - } - } - } - stage('SAST') { - steps { - - sh '/var/jenkins_home/yasca/yascaConfigScript/yascaConfigScritp.sh' - - - - } - } - - - - - - + + stage('Apply Kubernetes Files') { steps { withKubeConfig([credentialsId: 'kubeconfig']) { sh 'kubectl apply -f deploymentfile.yaml' } } - } - - stage('performance Testing') { - steps { - - //sh '/var/jenkins_home/soapui/SoapUI-5.2.1/bin/testrunner.sh -s"TestSuite 1" -c"TestCase 1" -r /var/jenkins_home/workspace/KuberTesting2_SoapUi/REST-Project-1-soapui-project.xml' - //bat 'c:/jmeter/bin/jmeter.bat -n -t c:/jmeter/extras/Test.jmx -l test.jtl' - sh '/var/jenkins_home/JMeter/jakarta-jmeter-2.5/bin/jmeter.sh -n -t $WORKSPACE/microservice/performance-scripts/$JMX.jmx -l $WORKSPACE/$JMX.jtl' - - // PERFORMANCE_PATH="/var/jenkins_home/JMeter/jakarta-jmeter-2.5/bin" - //microservice/performance-scripts - //cd '$PERFORMANCE_PATH' - - // sh 'jmeter.sh -n -t $WORKSPACE/microservice/performance-scripts/$JMX.jmx -l $WORKSPACE/$JMX.jtl' - - - - } - } - + From e7c7a82b5eae2f4e7f9c5b84d30e9af5250c44b0 Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Mon, 18 Nov 2019 10:42:32 +0530 Subject: [PATCH 108/130] Update Jenkinsfile --- Jenkinsfile | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index c3fefa0..f320626 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,19 +1,15 @@ pipeline { agent any stages { - stage('SCM') { - steps { - git url: 'https://github.com/MishraKD/assin11.git' - } - } + - - stage('Apply Kubernetes Files') { + stage('Apply Kubernetes Files') { steps { withKubeConfig([credentialsId: 'kubeconfig']) { sh 'kubectl apply -f deploymentfile.yaml' } } + } From 301651f2804292ad477b98eacbdeab01e176fc7e Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Mon, 18 Nov 2019 10:54:19 +0530 Subject: [PATCH 109/130] Update Jenkinsfile --- Jenkinsfile | 78 +++++++++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 70 insertions(+), 8 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index f320626..3e5a723 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,16 +1,74 @@ pipeline { agent any stages { - + stage('SCM') { + steps { + git url: 'https://github.com/MishraKD/assin11.git' + } + } + + stage('codeQuality & analysis') { + steps { + + withSonarQubeEnv('sonar') { + + + withMaven(maven:'M2_HOME') { + sh 'mvn clean package sonar:sonar' + + } + } + } + } + stage('SAST') { + steps { + + sh '/var/jenkins_home/yasca/yascaConfigScript/yascaConfigScritp.sh' + + + + } + } + + + + + +stage('DeployToProduction') { + steps { + + + kubernetesDeploy( + + kubeconfigId: 'kubeconfig', + + configs: 'deploymentfile.yml', + + enableConfigSubstitution: true + ) + + } + } - stage('Apply Kubernetes Files') { - steps { - withKubeConfig([credentialsId: 'kubeconfig']) { - sh 'kubectl apply -f deploymentfile.yaml' - } - } - } + stage('performance Testing') { + steps { + + //sh '/var/jenkins_home/soapui/SoapUI-5.2.1/bin/testrunner.sh -s"TestSuite 1" -c"TestCase 1" -r /var/jenkins_home/workspace/KuberTesting2_SoapUi/REST-Project-1-soapui-project.xml' + //bat 'c:/jmeter/bin/jmeter.bat -n -t c:/jmeter/extras/Test.jmx -l test.jtl' + sh '/var/jenkins_home/JMeter/jakarta-jmeter-2.5/bin/jmeter.sh -n -t $WORKSPACE/microservice/performance-scripts/$JMX.jmx -l $WORKSPACE/$JMX.jtl' + + // PERFORMANCE_PATH="/var/jenkins_home/JMeter/jakarta-jmeter-2.5/bin" + //microservice/performance-scripts + //cd '$PERFORMANCE_PATH' + + // sh 'jmeter.sh -n -t $WORKSPACE/microservice/performance-scripts/$JMX.jmx -l $WORKSPACE/$JMX.jtl' + + + + } + } + @@ -20,6 +78,10 @@ pipeline { + + + + From c413a0d942e765401b8eac2d3d8d2b222b538b0b Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Mon, 18 Nov 2019 11:28:18 +0530 Subject: [PATCH 110/130] Update Jenkinsfile --- Jenkinsfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 3e5a723..7db4307 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -39,8 +39,10 @@ stage('DeployToProduction') { kubernetesDeploy( + + - kubeconfigId: 'kubeconfig', + kubeconfigId: 'admin.con', configs: 'deploymentfile.yml', From d4a457ea18129e699c26c0cbc30c03de7cfd2fb7 Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Mon, 18 Nov 2019 11:31:41 +0530 Subject: [PATCH 111/130] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 7db4307..9f271e4 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -42,7 +42,7 @@ stage('DeployToProduction') { - kubeconfigId: 'admin.con', + kubeconfigId: 'admin.conf', configs: 'deploymentfile.yml', From 3ad11c0403bff97dd92811d0d5c8c9b2f1d0f398 Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Mon, 18 Nov 2019 11:36:32 +0530 Subject: [PATCH 112/130] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 9f271e4..4f0a9d6 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -42,7 +42,7 @@ stage('DeployToProduction') { - kubeconfigId: 'admin.conf', + kubeconfigId: 'kubeconfig', configs: 'deploymentfile.yml', From fbafa443ccb97bd8cbc2a09f286b826ec5288249 Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Mon, 18 Nov 2019 11:44:04 +0530 Subject: [PATCH 113/130] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 4f0a9d6..1d91d62 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -42,7 +42,7 @@ stage('DeployToProduction') { - kubeconfigId: 'kubeconfig', + kubeconfigId: '$workspace/deployKubeApp/kubeconfig', configs: 'deploymentfile.yml', From 281d13249872989b3ee2c543d5b00deeb342b441 Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Mon, 18 Nov 2019 11:48:09 +0530 Subject: [PATCH 114/130] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 1d91d62..a69bf60 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -42,7 +42,7 @@ stage('DeployToProduction') { - kubeconfigId: '$workspace/deployKubeApp/kubeconfig', + kubeconfigId: '/var/jenkins_home/workspace/deployKubeApp/kubeconfig', configs: 'deploymentfile.yml', From e62704440a743ccb8f48c518a5007392b64780a8 Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Mon, 18 Nov 2019 11:52:44 +0530 Subject: [PATCH 115/130] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index a69bf60..47ad740 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -42,7 +42,7 @@ stage('DeployToProduction') { - kubeconfigId: '/var/jenkins_home/workspace/deployKubeApp/kubeconfig', + kubeconfigId: 'kubeconfig1', configs: 'deploymentfile.yml', From d2d4c39b5d526ba309bf483ae49e847cd8e8c30a Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Mon, 18 Nov 2019 11:56:29 +0530 Subject: [PATCH 116/130] Update Jenkinsfile --- Jenkinsfile | 52 ++-------------------------------------------------- 1 file changed, 2 insertions(+), 50 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 47ad740..5491b09 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,36 +1,6 @@ pipeline { - agent any - stages { - stage('SCM') { - steps { - git url: 'https://github.com/MishraKD/assin11.git' - } - } - - stage('codeQuality & analysis') { - steps { - - withSonarQubeEnv('sonar') { - - - withMaven(maven:'M2_HOME') { - sh 'mvn clean package sonar:sonar' - - } - } - } - } - stage('SAST') { - steps { - - sh '/var/jenkins_home/yasca/yascaConfigScript/yascaConfigScritp.sh' - - - - } - } - - + +any agent @@ -53,24 +23,6 @@ stage('DeployToProduction') { } - stage('performance Testing') { - steps { - - //sh '/var/jenkins_home/soapui/SoapUI-5.2.1/bin/testrunner.sh -s"TestSuite 1" -c"TestCase 1" -r /var/jenkins_home/workspace/KuberTesting2_SoapUi/REST-Project-1-soapui-project.xml' - //bat 'c:/jmeter/bin/jmeter.bat -n -t c:/jmeter/extras/Test.jmx -l test.jtl' - sh '/var/jenkins_home/JMeter/jakarta-jmeter-2.5/bin/jmeter.sh -n -t $WORKSPACE/microservice/performance-scripts/$JMX.jmx -l $WORKSPACE/$JMX.jtl' - - // PERFORMANCE_PATH="/var/jenkins_home/JMeter/jakarta-jmeter-2.5/bin" - //microservice/performance-scripts - //cd '$PERFORMANCE_PATH' - - // sh 'jmeter.sh -n -t $WORKSPACE/microservice/performance-scripts/$JMX.jmx -l $WORKSPACE/$JMX.jtl' - - - - } - } - From e0dc5424d2527b342383226c774ffb60c03b7dda Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Mon, 18 Nov 2019 11:58:32 +0530 Subject: [PATCH 117/130] Update Jenkinsfile --- Jenkinsfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 5491b09..5ecdc19 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,6 +1,8 @@ pipeline { -any agent +agent any + stages { + From 5b38c7c5d53d18d61f6833ec4c3abfcda804f56d Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Mon, 18 Nov 2019 12:01:49 +0530 Subject: [PATCH 118/130] Update Jenkinsfile --- Jenkinsfile | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 5ecdc19..197590e 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -2,6 +2,37 @@ pipeline { agent any stages { + + stage('SCM') { + steps { + git url: 'https://github.com/MishraKD/assin11.git' + } + } + + stage('codeQuality & analysis') { + steps { + + withSonarQubeEnv('sonar') { + + + withMaven(maven:'M2_HOME') { + sh 'mvn clean package sonar:sonar' + + } + } + } + } + stage('SAST') { + steps { + + sh '/var/jenkins_home/yasca/yascaConfigScript/yascaConfigScritp.sh' + + + + } + } + + @@ -12,7 +43,7 @@ stage('DeployToProduction') { kubernetesDeploy( - + kubeconfigId: 'kubeconfig1', From bb9a7102613add727b4a5272241fc65461a1beb2 Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Mon, 18 Nov 2019 12:11:47 +0530 Subject: [PATCH 119/130] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 197590e..8d33a2d 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -47,7 +47,7 @@ stage('DeployToProduction') { kubeconfigId: 'kubeconfig1', - configs: 'deploymentfile.yml', + configs: '/var/jenkins_home/workspace/deploymentfile.yml', enableConfigSubstitution: true ) From 0b14e37c8cb5686a5574a4dfd41bf1622c93d595 Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Mon, 18 Nov 2019 15:04:29 +0530 Subject: [PATCH 120/130] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 8d33a2d..197590e 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -47,7 +47,7 @@ stage('DeployToProduction') { kubeconfigId: 'kubeconfig1', - configs: '/var/jenkins_home/workspace/deploymentfile.yml', + configs: 'deploymentfile.yml', enableConfigSubstitution: true ) From b28d802345e34487027529fd782841106178eeca Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Mon, 18 Nov 2019 15:17:17 +0530 Subject: [PATCH 121/130] Update Jenkinsfile --- Jenkinsfile | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 197590e..22d329f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -22,16 +22,7 @@ agent any } } } - stage('SAST') { - steps { - - sh '/var/jenkins_home/yasca/yascaConfigScript/yascaConfigScritp.sh' - - - - } - } - + From 87b573420e0bc04f5516308d4ee0e6e7fc418cf1 Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Mon, 18 Nov 2019 15:20:17 +0530 Subject: [PATCH 122/130] Update Jenkinsfile --- Jenkinsfile | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 22d329f..44ac4d4 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -3,26 +3,7 @@ pipeline { agent any stages { - stage('SCM') { - steps { - git url: 'https://github.com/MishraKD/assin11.git' - } - } - - stage('codeQuality & analysis') { - steps { - - withSonarQubeEnv('sonar') { - - - withMaven(maven:'M2_HOME') { - sh 'mvn clean package sonar:sonar' - - } - } - } - } - + From be8ddaef7eeb244e0344ee6e7cf7db0cb057a271 Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Mon, 18 Nov 2019 15:32:15 +0530 Subject: [PATCH 123/130] Update Jenkinsfile --- Jenkinsfile | 37 +++++++++++++++++++++++++++++++++++-- 1 file changed, 35 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 44ac4d4..da0cf60 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -2,7 +2,40 @@ pipeline { agent any stages { - + stage('SCM') { + steps { + git url: 'https://github.com/MishraKD/assin11.git' + } + } + + stage('codeQuality & analysis') { + steps { + + withSonarQubeEnv('sonar') { + + + withMaven(maven:'M2_HOME') { + sh 'mvn clean package sonar:sonar' + + } + } + } + } + stage('SAST') { + steps { + + sh '/var/jenkins_home/yasca/yascaConfigScript/yascaConfigScritp.sh' + + + + } + } + + + + + + @@ -11,7 +44,7 @@ agent any stage('DeployToProduction') { steps { - + git url: 'https://github.com/MishraKD/assin11.git' kubernetesDeploy( From 915a8590623a675f206d821f76abfd815e415594 Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Mon, 18 Nov 2019 15:38:52 +0530 Subject: [PATCH 124/130] Update Jenkinsfile --- Jenkinsfile | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index da0cf60..5e0fba0 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -2,12 +2,7 @@ pipeline { agent any stages { - stage('SCM') { - steps { - git url: 'https://github.com/MishraKD/assin11.git' - } - } - + stage('codeQuality & analysis') { steps { From 1efde946c3eafd4f8baa04b136250f076bae92d3 Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Mon, 18 Nov 2019 15:42:12 +0530 Subject: [PATCH 125/130] Update Jenkinsfile --- Jenkinsfile | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 5e0fba0..342087e 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -5,6 +5,7 @@ agent any stage('codeQuality & analysis') { steps { + git url: 'https://github.com/MishraKD/assin11.git' withSonarQubeEnv('sonar') { @@ -16,16 +17,6 @@ agent any } } } - stage('SAST') { - steps { - - sh '/var/jenkins_home/yasca/yascaConfigScript/yascaConfigScritp.sh' - - - - } - } - @@ -39,7 +30,7 @@ agent any stage('DeployToProduction') { steps { - git url: 'https://github.com/MishraKD/assin11.git' + kubernetesDeploy( From d68bb3be9871c239e4ce27e99c08215efb31cb7e Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Mon, 18 Nov 2019 17:35:00 +0530 Subject: [PATCH 126/130] Update Jenkinsfile --- Jenkinsfile | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 342087e..56effc2 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,11 +1,21 @@ pipeline { + environment { + GIT_URL="https://github.com/MishraKD/assin11.git" + } + agent any stages { + stage('Checkout') { + steps { + git url: "${GIT_URL}" + } +} stage('codeQuality & analysis') { steps { - git url: 'https://github.com/MishraKD/assin11.git' + //git url: "${GIT_URL}" + //git url: 'https://github.com/MishraKD/assin11.git' withSonarQubeEnv('sonar') { From d7f4068fe23c3ddd17c9ec84cfe56a6e9bce6e10 Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Tue, 19 Nov 2019 11:40:43 +0530 Subject: [PATCH 127/130] Update Jenkinsfile --- Jenkinsfile | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 56effc2..c1084e3 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -5,15 +5,10 @@ pipeline { } agent any - stages { - stage('Checkout') { - steps { - git url: "${GIT_URL}" - } -} stage('codeQuality & analysis') { steps { + git url: "${GIT_URL}" //git url: "${GIT_URL}" //git url: 'https://github.com/MishraKD/assin11.git' From ddc8049871edb157fa87fe7fc6a265fb0e320c48 Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Tue, 19 Nov 2019 11:42:35 +0530 Subject: [PATCH 128/130] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index c1084e3..f0adb5b 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -56,7 +56,7 @@ stage('DeployToProduction') { } -} + From f6803030764ee37d0efe811d3ae07975bcd21936 Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Tue, 19 Nov 2019 11:44:10 +0530 Subject: [PATCH 129/130] Update Jenkinsfile --- Jenkinsfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index f0adb5b..c9f0c19 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -5,6 +5,7 @@ pipeline { } agent any + stages{ stage('codeQuality & analysis') { steps { @@ -56,7 +57,7 @@ stage('DeployToProduction') { } - +} From 3de37313447eb3cb77daad5c6d74436bdf50a318 Mon Sep 17 00:00:00 2001 From: MishraKD <47573746+MishraKD@users.noreply.github.com> Date: Tue, 19 Nov 2019 11:45:34 +0530 Subject: [PATCH 130/130] Update Jenkinsfile --- Jenkinsfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Jenkinsfile b/Jenkinsfile index c9f0c19..9da78d0 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -36,6 +36,7 @@ agent any stage('DeployToProduction') { steps { + git url: "${GIT_URL}" kubernetesDeploy(