From 8c878863171c114be94579ee7d60ec67bf60915c Mon Sep 17 00:00:00 2001 From: Emmanuel <52438592+EmmanuelAudu@users.noreply.github.com> Date: Tue, 7 Mar 2023 09:40:32 -0800 Subject: [PATCH 01/76] Delete Jenkinsfile --- Jenkinsfile | 121 ---------------------------------------------------- 1 file changed, 121 deletions(-) delete mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile deleted file mode 100644 index bac1d50b..00000000 --- a/Jenkinsfile +++ /dev/null @@ -1,121 +0,0 @@ - def getDockerTag(){ - def tag = sh script: 'git rev-parse --short HEAD', returnStdout: true - return tag - } - -pipeline{ - agent any - environment{ - Docker_tag = getDockerTag() - docker_login = credentials('public-docker-auth') - } - stages{ - stage("static code analysis"){ - agent { - docker { - image 'maven' - args '-v $HOME/.m2:/root/.m2' - } - } - steps{ - script{ - withSonarQubeEnv(credentialsId: 'sonar-qube-token') { - sh "mvn sonar:sonar" - } - timeout(5){ - def qg = waitForQualityGate() - if (qg.status != 'OK'){ - error "code didnt met qulaity gate" - } - } - } - } - } - - stage('build'){ - agent { - docker { - image 'maven' - args '-v $HOME/.m2:/root/.m2' - } - } - steps{ - script{ - sh "mvn clean install" - } - } - } - - stage('docker build'){ - steps { - script{ - sh """ - pwd - ls -la - cp -r ../backend-app@2/target . - docker build . -t deekshithsn/webapp:$Docker_tag - """ - currentBuild.description = "deekshithsn/webapp:$Docker_tag" - } - } - } - - stage('docker upload'){ - steps{ - script{ - sh """ - docker login -u $docker_login_USR -p $docker_login_PSW - docker push deekshithsn/webapp:$Docker_tag - """ - addBadge(icon: 'info.gif', text: 'docker registry', link: 'https://hub.docker.com/repository/docker/deekshithsn/webapp/general') - } - } - } - - stage('approval from managers'){ - input { - message "do you want to procced for deployment?" - ok "Procced?" - submitter "alice,bob" - parameters { - string(name: 'PERSON', defaultValue: 'Mr Jenkins', description: 'Who should I say hello to?') - } - } - steps{ - script{ - sh "echo Approved!!!!" - } - } - } - - stage('prepare deplyment file'){ - steps{ - script{ - sh ''' - final_tag=$(echo $Docker_tag | tr -d ' ') - sed -i "s|TAG|$final_tag|" deployment.yaml - cat deployment.yaml - ''' - } - } - } - - stage('authenticate & deploy'){ - steps{ - script{ - sh""" - export KUBECONFIG=/opt/config - kubectl get po - kubectl apply -f deployment.yaml - """ - } - } - } - } - - post{ - always{ - cleanWs() - } - } -} \ No newline at end of file From 592bcbb5387fc53a6a64a98ee86f02e70cb2d72f Mon Sep 17 00:00:00 2001 From: EmmanuelAudu Date: Tue, 7 Mar 2023 09:52:39 -0800 Subject: [PATCH 02/76] initial commit to jenkinesfile --- jenkinsfile | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 jenkinsfile diff --git a/jenkinsfile b/jenkinsfile new file mode 100644 index 00000000..e69de29b From bf30e5c9631a35f57aec2ccb9fbdb55c8d2e5229 Mon Sep 17 00:00:00 2001 From: EmmanuelAudu Date: Tue, 7 Mar 2023 09:56:50 -0800 Subject: [PATCH 03/76] initial commit --- jenkinsfile | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/jenkinsfile b/jenkinsfile index e69de29b..21d512d9 100644 --- a/jenkinsfile +++ b/jenkinsfile @@ -0,0 +1,32 @@ +pipeline{ + agent any + stages{ + stage("A"){ + steps{ + echo "========executing A========" + } + post{ + always{ + echo "========always========" + } + success{ + echo "========A executed successfully========" + } + failure{ + echo "========A execution failed========" + } + } + } + } + post{ + always{ + echo "========always========" + } + success{ + echo "========pipeline executed successfully ========" + } + failure{ + echo "========pipeline execution failed========" + } + } +} \ No newline at end of file From 34f6f7f15d27581328b089c5a9225c42bf48d1e0 Mon Sep 17 00:00:00 2001 From: EmmanuelAudu Date: Tue, 7 Mar 2023 10:25:28 -0800 Subject: [PATCH 04/76] second commit to jenkinsfile --- jenkinsfile | 1 + 1 file changed, 1 insertion(+) diff --git a/jenkinsfile b/jenkinsfile index 21d512d9..63d7b2b3 100644 --- a/jenkinsfile +++ b/jenkinsfile @@ -1,5 +1,6 @@ pipeline{ agent any + stages{ stage("A"){ steps{ From c203385bb529395591d12d43e592d5cd1fd5f1d3 Mon Sep 17 00:00:00 2001 From: EmmanuelAudu Date: Tue, 7 Mar 2023 10:33:35 -0800 Subject: [PATCH 05/76] removed block of code which is not required --- jenkinsfile | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/jenkinsfile b/jenkinsfile index 63d7b2b3..aaf5abdf 100644 --- a/jenkinsfile +++ b/jenkinsfile @@ -1,22 +1,11 @@ pipeline{ agent any - + stages{ stage("A"){ steps{ echo "========executing A========" } - post{ - always{ - echo "========always========" - } - success{ - echo "========A executed successfully========" - } - failure{ - echo "========A execution failed========" - } - } } } post{ From 2a5f9508c7dd3dfd854f591f7b94dc994fd5be9c Mon Sep 17 00:00:00 2001 From: EmmanuelAudu Date: Tue, 7 Mar 2023 22:29:48 -0800 Subject: [PATCH 06/76] adding sonarqube stage --- jenkinsfile | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/jenkinsfile b/jenkinsfile index aaf5abdf..ed952bd3 100644 --- a/jenkinsfile +++ b/jenkinsfile @@ -2,21 +2,20 @@ pipeline{ agent any stages{ - stage("A"){ + stage("static code analysis"){ + agent{ + docker{ + image: 'maven' + } + } steps{ - echo "========executing A========" + script{ + withSonarQubeEnv(credentialsId: 'sonar-token') { + sh "mvn sonar:sonar" + } + } } } } - post{ - always{ - echo "========always========" - } - success{ - echo "========pipeline executed successfully ========" - } - failure{ - echo "========pipeline execution failed========" - } - } + } \ No newline at end of file From 6f9a691909365633037b9d20abc0a38bb79789ce Mon Sep 17 00:00:00 2001 From: EmmanuelAudu Date: Tue, 7 Mar 2023 22:35:22 -0800 Subject: [PATCH 07/76] adding sonarqube stage --- jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jenkinsfile b/jenkinsfile index ed952bd3..43002b04 100644 --- a/jenkinsfile +++ b/jenkinsfile @@ -1,5 +1,5 @@ pipeline{ - agent any + agent none stages{ stage("static code analysis"){ From 42a6c0bee44a5e4240f9c19a44f1fdd6e8fbd6fe Mon Sep 17 00:00:00 2001 From: EmmanuelAudu Date: Tue, 7 Mar 2023 22:36:11 -0800 Subject: [PATCH 08/76] adding sonarqube stage --- jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jenkinsfile b/jenkinsfile index 43002b04..401c9150 100644 --- a/jenkinsfile +++ b/jenkinsfile @@ -5,7 +5,7 @@ pipeline{ stage("static code analysis"){ agent{ docker{ - image: 'maven' + image 'maven' } } steps{ From e8945bf185d7161a0b97488d6a32680c9ceed207 Mon Sep 17 00:00:00 2001 From: EmmanuelAudu Date: Tue, 7 Mar 2023 23:24:21 -0800 Subject: [PATCH 09/76] adding quality gate --- jenkinsfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/jenkinsfile b/jenkinsfile index 401c9150..5f408190 100644 --- a/jenkinsfile +++ b/jenkinsfile @@ -13,6 +13,12 @@ pipeline{ withSonarQubeEnv(credentialsId: 'sonar-token') { sh "mvn sonar:sonar" } + timeout(5){ + def qg = waitForQualityGate() + if (qg.status != 'OK'){ + error "code didn't meet quality gate" + } + } } } } From 7aae6236ffaad31730a027efc0d939b4e25fbaf5 Mon Sep 17 00:00:00 2001 From: EmmanuelAudu Date: Tue, 7 Mar 2023 23:45:58 -0800 Subject: [PATCH 10/76] adding quality gate --- jenkinsfile | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/jenkinsfile b/jenkinsfile index 5f408190..3dcc1a91 100644 --- a/jenkinsfile +++ b/jenkinsfile @@ -13,13 +13,7 @@ pipeline{ withSonarQubeEnv(credentialsId: 'sonar-token') { sh "mvn sonar:sonar" } - timeout(5){ - def qg = waitForQualityGate() - if (qg.status != 'OK'){ - error "code didn't meet quality gate" - } - } - } + } } } From 8694d83d17b00729cef57aa666120b45eb6d04ec Mon Sep 17 00:00:00 2001 From: EmmanuelAudu Date: Tue, 7 Mar 2023 23:48:45 -0800 Subject: [PATCH 11/76] adding quality gate --- jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jenkinsfile b/jenkinsfile index 3dcc1a91..67105248 100644 --- a/jenkinsfile +++ b/jenkinsfile @@ -17,5 +17,5 @@ pipeline{ } } } - + } } \ No newline at end of file From a4989c14f4ddef93f5e2b6f031a863c5446ff07e Mon Sep 17 00:00:00 2001 From: EmmanuelAudu Date: Tue, 7 Mar 2023 23:50:36 -0800 Subject: [PATCH 12/76] adding quality gate --- jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jenkinsfile b/jenkinsfile index 67105248..893548ce 100644 --- a/jenkinsfile +++ b/jenkinsfile @@ -11,7 +11,7 @@ pipeline{ steps{ script{ withSonarQubeEnv(credentialsId: 'sonar-token') { - sh "mvn sonar:sonar" + sh "mvn sonar:sonar -X" } } From 0543007bd40335c2e1d21d25e7d2a644ee4eaea3 Mon Sep 17 00:00:00 2001 From: EmmanuelAudu Date: Tue, 7 Mar 2023 23:52:03 -0800 Subject: [PATCH 13/76] adding quality gate --- jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jenkinsfile b/jenkinsfile index 893548ce..67105248 100644 --- a/jenkinsfile +++ b/jenkinsfile @@ -11,7 +11,7 @@ pipeline{ steps{ script{ withSonarQubeEnv(credentialsId: 'sonar-token') { - sh "mvn sonar:sonar -X" + sh "mvn sonar:sonar" } } From 5c2cbc7fa43b6b960390b506ce3749efb33eb255 Mon Sep 17 00:00:00 2001 From: EmmanuelAudu Date: Wed, 8 Mar 2023 00:14:12 -0800 Subject: [PATCH 14/76] update quality gate --- jenkinsfile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/jenkinsfile b/jenkinsfile index 67105248..7ccee23f 100644 --- a/jenkinsfile +++ b/jenkinsfile @@ -13,7 +13,12 @@ pipeline{ withSonarQubeEnv(credentialsId: 'sonar-token') { sh "mvn sonar:sonar" } - + timeout(5){ + def qg = waitForQualityGate() + if (qg.status != 'OK'){ + error "code didn't meet quality gate" + } + } } } } From d189e9e6db7fa992809260e0e3c9ddccb485b82c Mon Sep 17 00:00:00 2001 From: EmmanuelAudu Date: Wed, 8 Mar 2023 00:17:54 -0800 Subject: [PATCH 15/76] update quality gate --- jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jenkinsfile b/jenkinsfile index 7ccee23f..3d00b8e4 100644 --- a/jenkinsfile +++ b/jenkinsfile @@ -15,7 +15,7 @@ pipeline{ } timeout(5){ def qg = waitForQualityGate() - if (qg.status != 'OK'){ + if (qg.status != "OK"){ error "code didn't meet quality gate" } } From b678389ad9558bb6f60e47a51ad75cdbc314ff5a Mon Sep 17 00:00:00 2001 From: EmmanuelAudu Date: Wed, 8 Mar 2023 00:20:27 -0800 Subject: [PATCH 16/76] update quality gate --- jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jenkinsfile b/jenkinsfile index 3d00b8e4..fcab50c8 100644 --- a/jenkinsfile +++ b/jenkinsfile @@ -11,7 +11,7 @@ pipeline{ steps{ script{ withSonarQubeEnv(credentialsId: 'sonar-token') { - sh "mvn sonar:sonar" + sh "mvn sonar:sonar -X" } timeout(5){ def qg = waitForQualityGate() From 1fa6a78f38ce1ec0e07a251e9599bf31435a17e8 Mon Sep 17 00:00:00 2001 From: EmmanuelAudu Date: Wed, 8 Mar 2023 00:31:33 -0800 Subject: [PATCH 17/76] update quality gate --- jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jenkinsfile b/jenkinsfile index fcab50c8..3d00b8e4 100644 --- a/jenkinsfile +++ b/jenkinsfile @@ -11,7 +11,7 @@ pipeline{ steps{ script{ withSonarQubeEnv(credentialsId: 'sonar-token') { - sh "mvn sonar:sonar -X" + sh "mvn sonar:sonar" } timeout(5){ def qg = waitForQualityGate() From 2dfb0394781e917ec0313d986cad9fbbe86c537f Mon Sep 17 00:00:00 2001 From: EmmanuelAudu Date: Wed, 8 Mar 2023 01:16:58 -0800 Subject: [PATCH 18/76] update quality gate --- jenkinsfile | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/jenkinsfile b/jenkinsfile index 3d00b8e4..df98cfea 100644 --- a/jenkinsfile +++ b/jenkinsfile @@ -11,16 +11,18 @@ pipeline{ steps{ script{ withSonarQubeEnv(credentialsId: 'sonar-token') { - sh "mvn sonar:sonar" + sh "mvn clean sonar:sonar" } - timeout(5){ - def qg = waitForQualityGate() - if (qg.status != "OK"){ - error "code didn't meet quality gate" - } - } + stage("Quality Gate"){ + timeout(time: 5, unit: 'MINUTES') { + def qg = waitForQualityGate() + if (qg.status != 'OK') { + error "Pipeline aborted due to quality gate failure: ${qg.status}" + } + } + } + } } } } - } -} \ No newline at end of file +} From c67dad78d1cecaa17e383014f9b9d693e4783d1d Mon Sep 17 00:00:00 2001 From: EmmanuelAudu Date: Wed, 8 Mar 2023 01:25:35 -0800 Subject: [PATCH 19/76] update quality gate --- jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jenkinsfile b/jenkinsfile index df98cfea..f8447f27 100644 --- a/jenkinsfile +++ b/jenkinsfile @@ -15,7 +15,7 @@ pipeline{ } stage("Quality Gate"){ timeout(time: 5, unit: 'MINUTES') { - def qg = waitForQualityGate() + def call() qg = waitForQualityGate() if (qg.status != 'OK') { error "Pipeline aborted due to quality gate failure: ${qg.status}" } From 4fbd78305ea8ac4676c3cefb1b12ed2b2ff67991 Mon Sep 17 00:00:00 2001 From: EmmanuelAudu Date: Wed, 8 Mar 2023 01:29:33 -0800 Subject: [PATCH 20/76] update quality gate --- jenkinsfile | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/jenkinsfile b/jenkinsfile index f8447f27..68275a94 100644 --- a/jenkinsfile +++ b/jenkinsfile @@ -13,14 +13,13 @@ pipeline{ withSonarQubeEnv(credentialsId: 'sonar-token') { sh "mvn clean sonar:sonar" } - stage("Quality Gate"){ - timeout(time: 5, unit: 'MINUTES') { - def call() qg = waitForQualityGate() - if (qg.status != 'OK') { - error "Pipeline aborted due to quality gate failure: ${qg.status}" - } - } - } + stage("Quality Gate") { + steps { + timeout(time: 5, unit: 'MINUTES') { + waitForQualityGate abortPipeline: true + } + } + } } } } From c1272ec935603f4846ae9b61d60c1095fc3c50db Mon Sep 17 00:00:00 2001 From: EmmanuelAudu Date: Wed, 8 Mar 2023 01:33:47 -0800 Subject: [PATCH 21/76] update quality gate --- jenkinsfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jenkinsfile b/jenkinsfile index 68275a94..78900c54 100644 --- a/jenkinsfile +++ b/jenkinsfile @@ -13,7 +13,8 @@ pipeline{ withSonarQubeEnv(credentialsId: 'sonar-token') { sh "mvn clean sonar:sonar" } - stage("Quality Gate") { + stage("Quality Gate") { + agent any steps { timeout(time: 5, unit: 'MINUTES') { waitForQualityGate abortPipeline: true From 7f4bbf14000d0ed6ba21e1c6b6e1496f31d7a816 Mon Sep 17 00:00:00 2001 From: EmmanuelAudu Date: Wed, 8 Mar 2023 01:35:42 -0800 Subject: [PATCH 22/76] update quality gate --- jenkinsfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/jenkinsfile b/jenkinsfile index 78900c54..f859e1a0 100644 --- a/jenkinsfile +++ b/jenkinsfile @@ -14,9 +14,8 @@ pipeline{ sh "mvn clean sonar:sonar" } stage("Quality Gate") { - agent any steps { - timeout(time: 5, unit: 'MINUTES') { + timeout(time: 10, unit: 'MINUTES') { waitForQualityGate abortPipeline: true } } From 82da13acda553034ecc46531fc7041ef042c1d28 Mon Sep 17 00:00:00 2001 From: EmmanuelAudu Date: Wed, 8 Mar 2023 01:39:16 -0800 Subject: [PATCH 23/76] update quality gate --- jenkinsfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jenkinsfile b/jenkinsfile index f859e1a0..f38b99a3 100644 --- a/jenkinsfile +++ b/jenkinsfile @@ -11,12 +11,12 @@ pipeline{ steps{ script{ withSonarQubeEnv(credentialsId: 'sonar-token') { - sh "mvn clean sonar:sonar" + sh "mvn sonar:sonar" } stage("Quality Gate") { steps { - timeout(time: 10, unit: 'MINUTES') { - waitForQualityGate abortPipeline: true + timeout(time: 5, unit: 'MINUTES') { + waitForQualityGate abortPipeline: true, credentialsId: 'sonar-token' } } } From 99fe4ffa0a004de4c662ae0640525799620e1b07 Mon Sep 17 00:00:00 2001 From: EmmanuelAudu Date: Wed, 8 Mar 2023 01:47:10 -0800 Subject: [PATCH 24/76] update quality gate --- jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jenkinsfile b/jenkinsfile index f38b99a3..cb24ee45 100644 --- a/jenkinsfile +++ b/jenkinsfile @@ -16,7 +16,7 @@ pipeline{ stage("Quality Gate") { steps { timeout(time: 5, unit: 'MINUTES') { - waitForQualityGate abortPipeline: true, credentialsId: 'sonar-token' + waitForQualityGate abortPipeline: false, credentialsId: 'sonar-token' } } } From f2a0ead943bea414ef953538ca84741487b7aada Mon Sep 17 00:00:00 2001 From: EmmanuelAudu Date: Wed, 8 Mar 2023 01:49:20 -0800 Subject: [PATCH 25/76] update quality gate --- src/main/webapp/index.jsp | 206 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 206 insertions(+) diff --git a/src/main/webapp/index.jsp b/src/main/webapp/index.jsp index f1c1845b..c40b9f4b 100644 --- a/src/main/webapp/index.jsp +++ b/src/main/webapp/index.jsp @@ -102,3 +102,209 @@ + + + + + + + + + + + Jumbotron Template for Bootstrap + + + + + + + + + + + + + +
+
+

Hello

+

This is from Dev Environment

+

Learn more »

+
+
+ +
+ +
+
+

Devops

+

DevOps is the combination of cultural philosophies, practices, and tools that increases an organization's ability to deliver applications and services at high velocity: evolving and improving products at a faster pace than organizations using traditional software development and infrastructure management processes.

+

View details »

+
+
+
+
+

Jenkins

+

Jenkins is a free and open source automation server. Jenkins helps to automate the non-human part of the software development process, with continuous integration and facilitating technical aspects of continuous delivery

+

View details »

+
+
+

Maven

+

Maven is a build automation tool used primarily for Java projects. Maven can also be used to build and manage projects written in C#, Ruby, Scala, and other languages.

+

View details »

+
+
+

Docker

+

Docker is a set of platform as a service products that uses OS-level virtualization to deliver software in packages called containers. Containers are isolated from one another and bundle their own software, libraries and configuration files; they can communicate with each other through well-defined channels

+

View details »

+
+
+ +
+ +
+

© Company 2014

+
+
+ + + + + + + + + + + + + + + + + + + + + + + Jumbotron Template for Bootstrap + + + + + + + + + + + + + +
+
+

Hello

+

This is from Dev Environment

+

Learn more »

+
+
+ +
+ +
+
+

Devops

+

DevOps is the combination of cultural philosophies, practices, and tools that increases an organization's ability to deliver applications and services at high velocity: evolving and improving products at a faster pace than organizations using traditional software development and infrastructure management processes.

+

View details »

+
+
+
+
+

Jenkins

+

Jenkins is a free and open source automation server. Jenkins helps to automate the non-human part of the software development process, with continuous integration and facilitating technical aspects of continuous delivery

+

View details »

+
+
+

Maven

+

Maven is a build automation tool used primarily for Java projects. Maven can also be used to build and manage projects written in C#, Ruby, Scala, and other languages.

+

View details »

+
+
+

Docker

+

Docker is a set of platform as a service products that uses OS-level virtualization to deliver software in packages called containers. Containers are isolated from one another and bundle their own software, libraries and configuration files; they can communicate with each other through well-defined channels

+

View details »

+
+
+ +
+ +
+

© Company 2014

+
+
+ + + + + + + + + + From f088e3785ca1c527918a35159b354532e122f4e9 Mon Sep 17 00:00:00 2001 From: EmmanuelAudu Date: Wed, 8 Mar 2023 01:50:51 -0800 Subject: [PATCH 26/76] update quality gate --- src/main/webapp/index.jsp | 207 -------------------------------------- 1 file changed, 207 deletions(-) diff --git a/src/main/webapp/index.jsp b/src/main/webapp/index.jsp index c40b9f4b..b252ac4c 100644 --- a/src/main/webapp/index.jsp +++ b/src/main/webapp/index.jsp @@ -101,210 +101,3 @@ - - - - - - - - - - - - Jumbotron Template for Bootstrap - - - - - - - - - - - - - -
-
-

Hello

-

This is from Dev Environment

-

Learn more »

-
-
- -
- -
-
-

Devops

-

DevOps is the combination of cultural philosophies, practices, and tools that increases an organization's ability to deliver applications and services at high velocity: evolving and improving products at a faster pace than organizations using traditional software development and infrastructure management processes.

-

View details »

-
-
-
-
-

Jenkins

-

Jenkins is a free and open source automation server. Jenkins helps to automate the non-human part of the software development process, with continuous integration and facilitating technical aspects of continuous delivery

-

View details »

-
-
-

Maven

-

Maven is a build automation tool used primarily for Java projects. Maven can also be used to build and manage projects written in C#, Ruby, Scala, and other languages.

-

View details »

-
-
-

Docker

-

Docker is a set of platform as a service products that uses OS-level virtualization to deliver software in packages called containers. Containers are isolated from one another and bundle their own software, libraries and configuration files; they can communicate with each other through well-defined channels

-

View details »

-
-
- -
- -
-

© Company 2014

-
-
- - - - - - - - - - - - - - - - - - - - - - - Jumbotron Template for Bootstrap - - - - - - - - - - - - - -
-
-

Hello

-

This is from Dev Environment

-

Learn more »

-
-
- -
- -
-
-

Devops

-

DevOps is the combination of cultural philosophies, practices, and tools that increases an organization's ability to deliver applications and services at high velocity: evolving and improving products at a faster pace than organizations using traditional software development and infrastructure management processes.

-

View details »

-
-
-
-
-

Jenkins

-

Jenkins is a free and open source automation server. Jenkins helps to automate the non-human part of the software development process, with continuous integration and facilitating technical aspects of continuous delivery

-

View details »

-
-
-

Maven

-

Maven is a build automation tool used primarily for Java projects. Maven can also be used to build and manage projects written in C#, Ruby, Scala, and other languages.

-

View details »

-
-
-

Docker

-

Docker is a set of platform as a service products that uses OS-level virtualization to deliver software in packages called containers. Containers are isolated from one another and bundle their own software, libraries and configuration files; they can communicate with each other through well-defined channels

-

View details »

-
-
- -
- -
-

© Company 2014

-
-
- - - - - - - - - - From 823b145408db67bd767e951eced452770753a90f Mon Sep 17 00:00:00 2001 From: EmmanuelAudu Date: Wed, 8 Mar 2023 02:04:59 -0800 Subject: [PATCH 27/76] update quality gate --- jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jenkinsfile b/jenkinsfile index cb24ee45..9f617b22 100644 --- a/jenkinsfile +++ b/jenkinsfile @@ -11,12 +11,12 @@ pipeline{ steps{ script{ withSonarQubeEnv(credentialsId: 'sonar-token') { - sh "mvn sonar:sonar" + sh 'mvn sonar:sonar' } stage("Quality Gate") { steps { timeout(time: 5, unit: 'MINUTES') { - waitForQualityGate abortPipeline: false, credentialsId: 'sonar-token' + waitForQualityGate abortPipeline: true, credentialsId: 'sonar-token' } } } From e7aef134e3abc129841db1182f58108977f8da05 Mon Sep 17 00:00:00 2001 From: EmmanuelAudu Date: Wed, 8 Mar 2023 02:10:12 -0800 Subject: [PATCH 28/76] update quality gate --- jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jenkinsfile b/jenkinsfile index 9f617b22..986dd227 100644 --- a/jenkinsfile +++ b/jenkinsfile @@ -11,12 +11,12 @@ pipeline{ steps{ script{ withSonarQubeEnv(credentialsId: 'sonar-token') { - sh 'mvn sonar:sonar' + sh "mvn sonar:sonar" } stage("Quality Gate") { steps { timeout(time: 5, unit: 'MINUTES') { - waitForQualityGate abortPipeline: true, credentialsId: 'sonar-token' + waitForQualityGate abortPipeline: true } } } From 457642c7f85961b87a81b5d7bbcadfdf27a3ba13 Mon Sep 17 00:00:00 2001 From: EmmanuelAudu Date: Wed, 8 Mar 2023 02:12:19 -0800 Subject: [PATCH 29/76] update quality gate --- jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jenkinsfile b/jenkinsfile index 986dd227..c81ca531 100644 --- a/jenkinsfile +++ b/jenkinsfile @@ -15,7 +15,7 @@ pipeline{ } stage("Quality Gate") { steps { - timeout(time: 5, unit: 'MINUTES') { + timeout(time: 20, unit: 'MINUTES') { waitForQualityGate abortPipeline: true } } From 0c8f902bd30ca8cb21e3136763560144e2c8d271 Mon Sep 17 00:00:00 2001 From: EmmanuelAudu Date: Wed, 8 Mar 2023 02:20:36 -0800 Subject: [PATCH 30/76] update quality gate --- jenkinsfile | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/jenkinsfile b/jenkinsfile index c81ca531..93a27d3f 100644 --- a/jenkinsfile +++ b/jenkinsfile @@ -13,13 +13,14 @@ pipeline{ withSonarQubeEnv(credentialsId: 'sonar-token') { sh "mvn sonar:sonar" } - stage("Quality Gate") { - steps { - timeout(time: 20, unit: 'MINUTES') { - waitForQualityGate abortPipeline: true + stage("Quality Gate"){ + timeout(time: 5, unit: 'MINUTES') { + def qg = waitForQualityGate() + if (qg.status != 'OK') { + error "Pipeline aborted due to quality gate failure: ${qg.status}" } - } } + } } } } From fa416b0a9176aeff1a586b7f82637b52a08b3031 Mon Sep 17 00:00:00 2001 From: EmmanuelAudu Date: Wed, 8 Mar 2023 02:30:56 -0800 Subject: [PATCH 31/76] adding build stage --- jenkinsfile | 28 ++++++++++++++++++++-------- 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/jenkinsfile b/jenkinsfile index 93a27d3f..36aebd43 100644 --- a/jenkinsfile +++ b/jenkinsfile @@ -13,14 +13,26 @@ pipeline{ withSonarQubeEnv(credentialsId: 'sonar-token') { sh "mvn sonar:sonar" } - stage("Quality Gate"){ - timeout(time: 5, unit: 'MINUTES') { - def qg = waitForQualityGate() - if (qg.status != 'OK') { - error "Pipeline aborted due to quality gate failure: ${qg.status}" - } - } - } + stage("Quality Gate"){ + timeout(time: 5, unit: 'MINUTES') { + def qg = waitForQualityGate() + if (qg.status != 'OK') { + error "Pipeline aborted due to quality gate failure: ${qg.status}" + } + } + } + stage('build'){ + agent{ + docker{ + image 'maven' + } + } + steps{ + script{ + sh "mvn clean install" + } + } + } } } } From 85676e204bfe49a8a8642074f0dadb6c610c1402 Mon Sep 17 00:00:00 2001 From: EmmanuelAudu Date: Wed, 8 Mar 2023 03:11:03 -0800 Subject: [PATCH 32/76] adding build stage --- pom.xml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pom.xml b/pom.xml index 81c6a03d..350f881e 100644 --- a/pom.xml +++ b/pom.xml @@ -18,6 +18,11 @@ WebApp + + org.codehaus.mojo + sonar-maven-plugin + 3.0.2 + org.apache.maven.plugins maven-war-plugin From 3912999e074e18c23e60596710c73e73cb31b0ff Mon Sep 17 00:00:00 2001 From: EmmanuelAudu Date: Wed, 8 Mar 2023 03:14:30 -0800 Subject: [PATCH 33/76] adding build stage --- pom.xml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/pom.xml b/pom.xml index 350f881e..81c6a03d 100644 --- a/pom.xml +++ b/pom.xml @@ -18,11 +18,6 @@ WebApp - - org.codehaus.mojo - sonar-maven-plugin - 3.0.2 - org.apache.maven.plugins maven-war-plugin From 2344f824e74b0cdd438db4b7dcf2d2d595b8c196 Mon Sep 17 00:00:00 2001 From: EmmanuelAudu Date: Wed, 8 Mar 2023 03:41:40 -0800 Subject: [PATCH 34/76] adding build stage --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 81c6a03d..c3b6bd56 100644 --- a/pom.xml +++ b/pom.xml @@ -21,12 +21,12 @@ org.apache.maven.plugins maven-war-plugin - 3.3.1 + 3.3.2 org.apache.maven.plugins maven-compiler-plugin - 3.8.1 + 3.11.0 From 8ec9e0d86c164e99ef9434b2092a9d399d20f71f Mon Sep 17 00:00:00 2001 From: EmmanuelAudu Date: Wed, 8 Mar 2023 03:46:11 -0800 Subject: [PATCH 35/76] adding build stage --- jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jenkinsfile b/jenkinsfile index 36aebd43..b58a1500 100644 --- a/jenkinsfile +++ b/jenkinsfile @@ -10,8 +10,8 @@ pipeline{ } steps{ script{ - withSonarQubeEnv(credentialsId: 'sonar-token') { - sh "mvn sonar:sonar" + withSonarQubeEnv(credentialsId: 'sonar-autho') { + sh "mvn sonar:sonar -e" } stage("Quality Gate"){ timeout(time: 5, unit: 'MINUTES') { From bec2d804feedab91352c0b4fb1ef2bf24f66a2a9 Mon Sep 17 00:00:00 2001 From: EmmanuelAudu Date: Wed, 8 Mar 2023 03:48:53 -0800 Subject: [PATCH 36/76] adding build stage --- jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jenkinsfile b/jenkinsfile index b58a1500..30e50366 100644 --- a/jenkinsfile +++ b/jenkinsfile @@ -11,7 +11,7 @@ pipeline{ steps{ script{ withSonarQubeEnv(credentialsId: 'sonar-autho') { - sh "mvn sonar:sonar -e" + sh "mvn sonar:sonar -X" } stage("Quality Gate"){ timeout(time: 5, unit: 'MINUTES') { From b99e8f2ef31b2cecfe9fcfe10b97d5da1d898ef9 Mon Sep 17 00:00:00 2001 From: EmmanuelAudu Date: Wed, 8 Mar 2023 03:53:06 -0800 Subject: [PATCH 37/76] adding build stage --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index c3b6bd56..a247ac59 100644 --- a/pom.xml +++ b/pom.xml @@ -21,7 +21,7 @@ org.apache.maven.plugins maven-war-plugin - 3.3.2 + 3.3.1 org.apache.maven.plugins From ab59c35493062e635e24fa653d5206a23b3cf474 Mon Sep 17 00:00:00 2001 From: Emmanuel <52438592+EmmanuelAudu@users.noreply.github.com> Date: Wed, 8 Mar 2023 03:59:21 -0800 Subject: [PATCH 38/76] Update pom.xml --- pom.xml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index a247ac59..2d591746 100644 --- a/pom.xml +++ b/pom.xml @@ -1,3 +1,4 @@ + 4.0.0 @@ -26,8 +27,8 @@ org.apache.maven.plugins maven-compiler-plugin - 3.11.0 + 3.8.1 - \ No newline at end of file + From 00a1d9fde78b0d166f4512b7e45108f13780bfff Mon Sep 17 00:00:00 2001 From: EmmanuelAudu Date: Wed, 8 Mar 2023 04:08:08 -0800 Subject: [PATCH 39/76] adding build stage --- jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jenkinsfile b/jenkinsfile index 30e50366..1328597a 100644 --- a/jenkinsfile +++ b/jenkinsfile @@ -11,7 +11,7 @@ pipeline{ steps{ script{ withSonarQubeEnv(credentialsId: 'sonar-autho') { - sh "mvn sonar:sonar -X" + sh "mvn sonar:sonar" } stage("Quality Gate"){ timeout(time: 5, unit: 'MINUTES') { From d81362305f1c6fa4f3143d1a6eff3c3d8064f937 Mon Sep 17 00:00:00 2001 From: EmmanuelAudu Date: Wed, 8 Mar 2023 04:12:09 -0800 Subject: [PATCH 40/76] adding build stage --- jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jenkinsfile b/jenkinsfile index 1328597a..d600b933 100644 --- a/jenkinsfile +++ b/jenkinsfile @@ -11,7 +11,7 @@ pipeline{ steps{ script{ withSonarQubeEnv(credentialsId: 'sonar-autho') { - sh "mvn sonar:sonar" + sh "mvn sonar:sonar -X" } stage("Quality Gate"){ timeout(time: 5, unit: 'MINUTES') { @@ -37,4 +37,4 @@ pipeline{ } } } -} +} \ No newline at end of file From dba5d9408dbd194d3263c58c78941fdc0033de5a Mon Sep 17 00:00:00 2001 From: EmmanuelAudu Date: Wed, 8 Mar 2023 04:13:21 -0800 Subject: [PATCH 41/76] adding build stage --- jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jenkinsfile b/jenkinsfile index d600b933..2a461381 100644 --- a/jenkinsfile +++ b/jenkinsfile @@ -11,7 +11,7 @@ pipeline{ steps{ script{ withSonarQubeEnv(credentialsId: 'sonar-autho') { - sh "mvn sonar:sonar -X" + sh "mvn sonar:sonar" } stage("Quality Gate"){ timeout(time: 5, unit: 'MINUTES') { From f89ac9474a068aa539e4d7725fcb8618a6eb9048 Mon Sep 17 00:00:00 2001 From: EmmanuelAudu Date: Wed, 8 Mar 2023 04:20:51 -0800 Subject: [PATCH 42/76] adding build stage --- jenkinsfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/jenkinsfile b/jenkinsfile index 2a461381..1b917878 100644 --- a/jenkinsfile +++ b/jenkinsfile @@ -20,6 +20,7 @@ pipeline{ error "Pipeline aborted due to quality gate failure: ${qg.status}" } } + } } stage('build'){ agent{ @@ -29,11 +30,11 @@ pipeline{ } steps{ script{ - sh "mvn clean install" + sh "mvn install" } } } - } + } } } From 4dabd00895d7d7176062a9abb3087a5931b020cb Mon Sep 17 00:00:00 2001 From: EmmanuelAudu Date: Wed, 8 Mar 2023 04:21:40 -0800 Subject: [PATCH 43/76] adding build stage --- jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jenkinsfile b/jenkinsfile index 1b917878..5197ddcf 100644 --- a/jenkinsfile +++ b/jenkinsfile @@ -30,7 +30,7 @@ pipeline{ } steps{ script{ - sh "mvn install" + sh "mvn clean install" } } } From 8362ba4322403b6ba7eb6d97a5f488fb9d25bc08 Mon Sep 17 00:00:00 2001 From: EmmanuelAudu Date: Wed, 8 Mar 2023 04:31:51 -0800 Subject: [PATCH 44/76] adding build stage --- jenkinsfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/jenkinsfile b/jenkinsfile index 5197ddcf..0292771f 100644 --- a/jenkinsfile +++ b/jenkinsfile @@ -21,8 +21,7 @@ pipeline{ } } } - } - stage('build'){ + stage("build"){ agent{ docker{ image 'maven' @@ -38,4 +37,6 @@ pipeline{ } } } + } + } \ No newline at end of file From d1ec20bc88aa79ffa6984adec1dfc7dba6f9cdc0 Mon Sep 17 00:00:00 2001 From: EmmanuelAudu Date: Wed, 8 Mar 2023 04:35:27 -0800 Subject: [PATCH 45/76] adding build stage --- jenkinsfile | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/jenkinsfile b/jenkinsfile index 0292771f..948011e7 100644 --- a/jenkinsfile +++ b/jenkinsfile @@ -18,25 +18,12 @@ pipeline{ def qg = waitForQualityGate() if (qg.status != 'OK') { error "Pipeline aborted due to quality gate failure: ${qg.status}" - } - } - } - stage("build"){ - agent{ - docker{ - image 'maven' - } - } - steps{ - script{ - sh "mvn clean install" + } + } + } } } } - - } - } - } } } \ No newline at end of file From 4e680f2ce5edf8618ded3b0a9df1f2689abd5c1f Mon Sep 17 00:00:00 2001 From: EmmanuelAudu Date: Wed, 8 Mar 2023 04:42:53 -0800 Subject: [PATCH 46/76] adding build stage --- jenkinsfile | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/jenkinsfile b/jenkinsfile index 948011e7..5404c920 100644 --- a/jenkinsfile +++ b/jenkinsfile @@ -24,6 +24,18 @@ pipeline{ } } } + stage("build"){ + agent{ + docker{ + image 'maven' + } + } + steps{ + script{ + sh "mvn clean install" + } + } + } } } \ No newline at end of file From 8c6cceed226559c8fc2c07337495cc9c0a8bcde6 Mon Sep 17 00:00:00 2001 From: EmmanuelAudu Date: Wed, 8 Mar 2023 04:59:32 -0800 Subject: [PATCH 47/76] adding build stage --- src/main/webapp/index.jsp | 208 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 208 insertions(+) diff --git a/src/main/webapp/index.jsp b/src/main/webapp/index.jsp index b252ac4c..02af22c7 100644 --- a/src/main/webapp/index.jsp +++ b/src/main/webapp/index.jsp @@ -101,3 +101,211 @@ + + + + + + + + + + + + Jumbotron Template for Bootstrap + + + + + + + + + + + + + +
+
+

Hello

+

This is from Dev Environment

+

Learn more »

+
+
+ +
+ +
+
+

Devops

+

DevOps is the combination of cultural philosophies, practices, and tools that increases an organization's ability to deliver applications and services at high velocity: evolving and improving products at a faster pace than organizations using traditional software development and infrastructure management processes.

+

View details »

+
+
+
+
+

Jenkins

+

Jenkins is a free and open source automation server. Jenkins helps to automate the non-human part of the software development process, with continuous integration and facilitating technical aspects of continuous delivery

+

View details »

+
+
+

Maven

+

Maven is a build automation tool used primarily for Java projects. Maven can also be used to build and manage projects written in C#, Ruby, Scala, and other languages.

+

View details »

+
+
+

Docker

+

Docker is a set of platform as a service products that uses OS-level virtualization to deliver software in packages called containers. Containers are isolated from one another and bundle their own software, libraries and configuration files; they can communicate with each other through well-defined channels

+

View details »

+
+
+ +
+ +
+

© Company 2014

+
+
+ + + + + + + + + + + + + + + + + + + + + + + Jumbotron Template for Bootstrap + + + + + + + + + + + + + +
+
+

Hello

+

This is from Dev Environment

+

Learn more »

+
+
+ +
+ +
+
+

Devops

+

DevOps is the combination of cultural philosophies, practices, and tools that increases an organization's ability to deliver applications and services at high velocity: evolving and improving products at a faster pace than organizations using traditional software development and infrastructure management processes.

+

View details »

+
+
+
+
+

Jenkins

+

Jenkins is a free and open source automation server. Jenkins helps to automate the non-human part of the software development process, with continuous integration and facilitating technical aspects of continuous delivery

+

View details »

+
+
+

Maven

+

Maven is a build automation tool used primarily for Java projects. Maven can also be used to build and manage projects written in C#, Ruby, Scala, and other languages.

+

View details »

+
+
+

Docker

+

Docker is a set of platform as a service products that uses OS-level virtualization to deliver software in packages called containers. Containers are isolated from one another and bundle their own software, libraries and configuration files; they can communicate with each other through well-defined channels

+

View details »

+
+
+ +
+ +
+

© Company 2014

+
+
+ + + + + + + + + + + From df8330ee38b8ffd31244ca2d12226dc40fb05376 Mon Sep 17 00:00:00 2001 From: EmmanuelAudu Date: Wed, 8 Mar 2023 05:03:43 -0800 Subject: [PATCH 48/76] adding build stage --- jenkinsfile | 1 + src/main/webapp/index.jsp | 208 -------------------------------------- 2 files changed, 1 insertion(+), 208 deletions(-) diff --git a/jenkinsfile b/jenkinsfile index 5404c920..44553643 100644 --- a/jenkinsfile +++ b/jenkinsfile @@ -6,6 +6,7 @@ pipeline{ agent{ docker{ image 'maven' + args '-v $HOME/.m2:/root/.m2' } } steps{ diff --git a/src/main/webapp/index.jsp b/src/main/webapp/index.jsp index 02af22c7..b252ac4c 100644 --- a/src/main/webapp/index.jsp +++ b/src/main/webapp/index.jsp @@ -101,211 +101,3 @@ - - - - - - - - - - - - Jumbotron Template for Bootstrap - - - - - - - - - - - - - -
-
-

Hello

-

This is from Dev Environment

-

Learn more »

-
-
- -
- -
-
-

Devops

-

DevOps is the combination of cultural philosophies, practices, and tools that increases an organization's ability to deliver applications and services at high velocity: evolving and improving products at a faster pace than organizations using traditional software development and infrastructure management processes.

-

View details »

-
-
-
-
-

Jenkins

-

Jenkins is a free and open source automation server. Jenkins helps to automate the non-human part of the software development process, with continuous integration and facilitating technical aspects of continuous delivery

-

View details »

-
-
-

Maven

-

Maven is a build automation tool used primarily for Java projects. Maven can also be used to build and manage projects written in C#, Ruby, Scala, and other languages.

-

View details »

-
-
-

Docker

-

Docker is a set of platform as a service products that uses OS-level virtualization to deliver software in packages called containers. Containers are isolated from one another and bundle their own software, libraries and configuration files; they can communicate with each other through well-defined channels

-

View details »

-
-
- -
- -
-

© Company 2014

-
-
- - - - - - - - - - - - - - - - - - - - - - - Jumbotron Template for Bootstrap - - - - - - - - - - - - - -
-
-

Hello

-

This is from Dev Environment

-

Learn more »

-
-
- -
- -
-
-

Devops

-

DevOps is the combination of cultural philosophies, practices, and tools that increases an organization's ability to deliver applications and services at high velocity: evolving and improving products at a faster pace than organizations using traditional software development and infrastructure management processes.

-

View details »

-
-
-
-
-

Jenkins

-

Jenkins is a free and open source automation server. Jenkins helps to automate the non-human part of the software development process, with continuous integration and facilitating technical aspects of continuous delivery

-

View details »

-
-
-

Maven

-

Maven is a build automation tool used primarily for Java projects. Maven can also be used to build and manage projects written in C#, Ruby, Scala, and other languages.

-

View details »

-
-
-

Docker

-

Docker is a set of platform as a service products that uses OS-level virtualization to deliver software in packages called containers. Containers are isolated from one another and bundle their own software, libraries and configuration files; they can communicate with each other through well-defined channels

-

View details »

-
-
- -
- -
-

© Company 2014

-
-
- - - - - - - - - - - From f50d146cc32c421641c020fc126054000f69c762 Mon Sep 17 00:00:00 2001 From: EmmanuelAudu Date: Wed, 8 Mar 2023 05:08:25 -0800 Subject: [PATCH 49/76] adding build stage --- jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jenkinsfile b/jenkinsfile index 44553643..1466a05d 100644 --- a/jenkinsfile +++ b/jenkinsfile @@ -6,7 +6,7 @@ pipeline{ agent{ docker{ image 'maven' - args '-v $HOME/.m2:/root/.m2' + // args '-v $HOME/.m2:/root/.m2' } } steps{ From 53f8e3f4572349535829963a080c2c02b284d839 Mon Sep 17 00:00:00 2001 From: EmmanuelAudu Date: Wed, 8 Mar 2023 05:13:33 -0800 Subject: [PATCH 50/76] saving files to local m2 folder --- jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jenkinsfile b/jenkinsfile index 1466a05d..44553643 100644 --- a/jenkinsfile +++ b/jenkinsfile @@ -6,7 +6,7 @@ pipeline{ agent{ docker{ image 'maven' - // args '-v $HOME/.m2:/root/.m2' + args '-v $HOME/.m2:/root/.m2' } } steps{ From 1e15a49fdfe08dfcdc1b52cb298aa69038aef9b4 Mon Sep 17 00:00:00 2001 From: EmmanuelAudu Date: Wed, 8 Mar 2023 05:16:15 -0800 Subject: [PATCH 51/76] saving files to local m2 folder --- jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jenkinsfile b/jenkinsfile index 44553643..ea7ab22f 100644 --- a/jenkinsfile +++ b/jenkinsfile @@ -6,7 +6,6 @@ pipeline{ agent{ docker{ image 'maven' - args '-v $HOME/.m2:/root/.m2' } } steps{ @@ -29,6 +28,7 @@ pipeline{ agent{ docker{ image 'maven' + args '-v $HOME/.m2:/root/.m2' } } steps{ From fb4324ba32ada4da1e02f125e80278772b0e3c19 Mon Sep 17 00:00:00 2001 From: EmmanuelAudu Date: Wed, 8 Mar 2023 09:39:13 -0800 Subject: [PATCH 52/76] updating the file --- jenkinsfile | 1 + 1 file changed, 1 insertion(+) diff --git a/jenkinsfile b/jenkinsfile index ea7ab22f..69bd7b8b 100644 --- a/jenkinsfile +++ b/jenkinsfile @@ -6,6 +6,7 @@ pipeline{ agent{ docker{ image 'maven' + args '-v $HOME/.m2:/root/.m2' } } steps{ From 00efa585e64474f7d22a1268b43851c60e67442f Mon Sep 17 00:00:00 2001 From: EmmanuelAudu Date: Wed, 8 Mar 2023 09:43:49 -0800 Subject: [PATCH 53/76] updating the file --- jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jenkinsfile b/jenkinsfile index 69bd7b8b..2eb514f8 100644 --- a/jenkinsfile +++ b/jenkinsfile @@ -11,7 +11,7 @@ pipeline{ } steps{ script{ - withSonarQubeEnv(credentialsId: 'sonar-autho') { + withSonarQubeEnv(credentialsId: 'sonar-token') { sh "mvn sonar:sonar" } stage("Quality Gate"){ From 855b412e4b52ce809d078fc692eda068f4b17ef7 Mon Sep 17 00:00:00 2001 From: EmmanuelAudu Date: Wed, 8 Mar 2023 10:00:34 -0800 Subject: [PATCH 54/76] updating the file --- jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jenkinsfile b/jenkinsfile index 2eb514f8..c76cefbb 100644 --- a/jenkinsfile +++ b/jenkinsfile @@ -12,7 +12,7 @@ pipeline{ steps{ script{ withSonarQubeEnv(credentialsId: 'sonar-token') { - sh "mvn sonar:sonar" + sh "mvn clean sonar:sonar" } stage("Quality Gate"){ timeout(time: 5, unit: 'MINUTES') { From f84d48cdbbc958fb13518f5eaabb8bdd79c755c6 Mon Sep 17 00:00:00 2001 From: EmmanuelAudu Date: Wed, 8 Mar 2023 10:07:24 -0800 Subject: [PATCH 55/76] updating the file --- jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jenkinsfile b/jenkinsfile index c76cefbb..e3d5d0a7 100644 --- a/jenkinsfile +++ b/jenkinsfile @@ -6,7 +6,7 @@ pipeline{ agent{ docker{ image 'maven' - args '-v $HOME/.m2:/root/.m2' + // args '-v $HOME/.m2:/root/.m2' } } steps{ From f7ba70d4c2f5f7b716d0ddb4bbf8fd0658ceffca Mon Sep 17 00:00:00 2001 From: EmmanuelAudu Date: Wed, 8 Mar 2023 10:08:19 -0800 Subject: [PATCH 56/76] updating the file --- jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jenkinsfile b/jenkinsfile index e3d5d0a7..c76cefbb 100644 --- a/jenkinsfile +++ b/jenkinsfile @@ -6,7 +6,7 @@ pipeline{ agent{ docker{ image 'maven' - // args '-v $HOME/.m2:/root/.m2' + args '-v $HOME/.m2:/root/.m2' } } steps{ From d7777322561938ca0509ee160926f58f78c22b60 Mon Sep 17 00:00:00 2001 From: Emmanuel <52438592+EmmanuelAudu@users.noreply.github.com> Date: Wed, 8 Mar 2023 10:25:09 -0800 Subject: [PATCH 57/76] Update jenkinsfile --- jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jenkinsfile b/jenkinsfile index c76cefbb..53d8b82f 100644 --- a/jenkinsfile +++ b/jenkinsfile @@ -12,7 +12,7 @@ pipeline{ steps{ script{ withSonarQubeEnv(credentialsId: 'sonar-token') { - sh "mvn clean sonar:sonar" + sh "mvn sonar:sonar" } stage("Quality Gate"){ timeout(time: 5, unit: 'MINUTES') { @@ -40,4 +40,4 @@ pipeline{ } } -} \ No newline at end of file +} From 8d412ccac2cdfe3fd531c1613e33c2b8252e79e1 Mon Sep 17 00:00:00 2001 From: EmmanuelAudu Date: Wed, 8 Mar 2023 10:33:32 -0800 Subject: [PATCH 58/76] updating the file --- jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jenkinsfile b/jenkinsfile index c76cefbb..2eb514f8 100644 --- a/jenkinsfile +++ b/jenkinsfile @@ -12,7 +12,7 @@ pipeline{ steps{ script{ withSonarQubeEnv(credentialsId: 'sonar-token') { - sh "mvn clean sonar:sonar" + sh "mvn sonar:sonar" } stage("Quality Gate"){ timeout(time: 5, unit: 'MINUTES') { From 1e835da4078a02f46fa21e4cf8dd63ef78b8980b Mon Sep 17 00:00:00 2001 From: EmmanuelAudu Date: Wed, 8 Mar 2023 10:36:18 -0800 Subject: [PATCH 59/76] updating the file --- pom.xml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pom.xml b/pom.xml index 2d591746..1bd54422 100644 --- a/pom.xml +++ b/pom.xml @@ -29,6 +29,11 @@ maven-compiler-plugin 3.8.1 + + org.codehaus.mojo + sonar-maven-plugin + 3.0.2 + From 2b8c7b160de3eb33ffe395d803dbeb1216b3a28e Mon Sep 17 00:00:00 2001 From: EmmanuelAudu Date: Wed, 8 Mar 2023 10:41:45 -0800 Subject: [PATCH 60/76] updating the file --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 1bd54422..3c696b5c 100644 --- a/pom.xml +++ b/pom.xml @@ -32,7 +32,7 @@ org.codehaus.mojo sonar-maven-plugin - 3.0.2 + 3.9.0 From 6e695d6be1028c5cdab0695917540d26fa58bfdf Mon Sep 17 00:00:00 2001 From: EmmanuelAudu Date: Wed, 8 Mar 2023 10:51:45 -0800 Subject: [PATCH 61/76] updating the file --- pom.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index 3c696b5c..c8a5a19b 100644 --- a/pom.xml +++ b/pom.xml @@ -30,9 +30,9 @@ 3.8.1 - org.codehaus.mojo - sonar-maven-plugin - 3.9.0 + org.sonarsource.scanner.maven + sonar-maven-plugin + 3.9.1.2184 From 4b0ce61bd0366ad4987966acce9290301e54ef63 Mon Sep 17 00:00:00 2001 From: EmmanuelAudu Date: Wed, 8 Mar 2023 11:00:58 -0800 Subject: [PATCH 62/76] updating the file --- pom.xml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/pom.xml b/pom.xml index c8a5a19b..9644e933 100644 --- a/pom.xml +++ b/pom.xml @@ -28,12 +28,8 @@ org.apache.maven.plugins maven-compiler-plugin 3.8.1 - - - org.sonarsource.scanner.maven - sonar-maven-plugin - 3.9.1.2184 + + From 706c33103a6af740691decef1372daa064ef6616 Mon Sep 17 00:00:00 2001 From: EmmanuelAudu Date: Wed, 8 Mar 2023 11:04:57 -0800 Subject: [PATCH 63/76] updating the file --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 9644e933..38d8bc65 100644 --- a/pom.xml +++ b/pom.xml @@ -27,7 +27,7 @@ org.apache.maven.plugins maven-compiler-plugin - 3.8.1 + 3.11.0 From a5330fef6fe8c7616bbbb5072d39a0db920ff4df Mon Sep 17 00:00:00 2001 From: EmmanuelAudu Date: Wed, 8 Mar 2023 11:06:42 -0800 Subject: [PATCH 64/76] updating the file --- pom.xml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/pom.xml b/pom.xml index 38d8bc65..459d6ed8 100644 --- a/pom.xml +++ b/pom.xml @@ -1,4 +1,3 @@ - 4.0.0 @@ -27,9 +26,8 @@ org.apache.maven.plugins maven-compiler-plugin - 3.11.0 - + 3.8.1 + - From 4f78b1c7493f530fa771ce9e93e3038ad770c7cd Mon Sep 17 00:00:00 2001 From: EmmanuelAudu Date: Wed, 8 Mar 2023 11:10:56 -0800 Subject: [PATCH 65/76] updating the file --- jenkinsfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/jenkinsfile b/jenkinsfile index 53d8b82f..f77b2abc 100644 --- a/jenkinsfile +++ b/jenkinsfile @@ -20,6 +20,9 @@ pipeline{ if (qg.status != 'OK') { error "Pipeline aborted due to quality gate failure: ${qg.status}" } + dir(env.WORKSPACE) { + bat 'mvn -B -f proj\\pom.xml sonar:sonar' + } } } } From 1ad3894e5bf9b48a773d5a4cae0036ce7ae1239a Mon Sep 17 00:00:00 2001 From: EmmanuelAudu Date: Wed, 8 Mar 2023 11:14:52 -0800 Subject: [PATCH 66/76] updating the file --- jenkinsfile | 3 --- 1 file changed, 3 deletions(-) diff --git a/jenkinsfile b/jenkinsfile index f77b2abc..53d8b82f 100644 --- a/jenkinsfile +++ b/jenkinsfile @@ -20,9 +20,6 @@ pipeline{ if (qg.status != 'OK') { error "Pipeline aborted due to quality gate failure: ${qg.status}" } - dir(env.WORKSPACE) { - bat 'mvn -B -f proj\\pom.xml sonar:sonar' - } } } } From 86a82662f648cb66f68fa8b6ada759f6e144c02e Mon Sep 17 00:00:00 2001 From: EmmanuelAudu Date: Wed, 8 Mar 2023 11:48:59 -0800 Subject: [PATCH 67/76] updating the file --- jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jenkinsfile b/jenkinsfile index 53d8b82f..17c19222 100644 --- a/jenkinsfile +++ b/jenkinsfile @@ -15,7 +15,7 @@ pipeline{ sh "mvn sonar:sonar" } stage("Quality Gate"){ - timeout(time: 5, unit: 'MINUTES') { + timeout(5) { def qg = waitForQualityGate() if (qg.status != 'OK') { error "Pipeline aborted due to quality gate failure: ${qg.status}" From e9f374f175b15c816cf8959c203d73dab9685c2c Mon Sep 17 00:00:00 2001 From: EmmanuelAudu Date: Wed, 8 Mar 2023 11:57:14 -0800 Subject: [PATCH 68/76] updating the file --- jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jenkinsfile b/jenkinsfile index 17c19222..e07413a3 100644 --- a/jenkinsfile +++ b/jenkinsfile @@ -12,7 +12,7 @@ pipeline{ steps{ script{ withSonarQubeEnv(credentialsId: 'sonar-token') { - sh "mvn sonar:sonar" + sh "mvn clean sonar:sonar" } stage("Quality Gate"){ timeout(5) { From 4231823baa7646caa94e0cfe1a85d8128234b12a Mon Sep 17 00:00:00 2001 From: EmmanuelAudu Date: Wed, 8 Mar 2023 12:05:42 -0800 Subject: [PATCH 69/76] updating the file --- jenkinsfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/jenkinsfile b/jenkinsfile index e07413a3..4a8049cc 100644 --- a/jenkinsfile +++ b/jenkinsfile @@ -1,3 +1,7 @@ + def getDockerTag(){ + def tag = sh script: 'git rev-parse --short HEAD', returnStdout: true + return tag + } pipeline{ agent none From aac38d1b407de7f7e4ddfd2712cce859efe5c363 Mon Sep 17 00:00:00 2001 From: EmmanuelAudu Date: Wed, 8 Mar 2023 12:07:06 -0800 Subject: [PATCH 70/76] updating the file --- jenkinsfile | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/jenkinsfile b/jenkinsfile index 4a8049cc..45394aec 100644 --- a/jenkinsfile +++ b/jenkinsfile @@ -1,7 +1,3 @@ - def getDockerTag(){ - def tag = sh script: 'git rev-parse --short HEAD', returnStdout: true - return tag - } pipeline{ agent none @@ -16,7 +12,7 @@ pipeline{ steps{ script{ withSonarQubeEnv(credentialsId: 'sonar-token') { - sh "mvn clean sonar:sonar" + sh "mvn sonar:sonar -X" } stage("Quality Gate"){ timeout(5) { From 1b8fc4f21ed70c4981c4d08af074036d60a1ec24 Mon Sep 17 00:00:00 2001 From: EmmanuelAudu Date: Wed, 8 Mar 2023 12:10:44 -0800 Subject: [PATCH 71/76] updating the file --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 459d6ed8..a5e7ae93 100644 --- a/pom.xml +++ b/pom.xml @@ -26,7 +26,7 @@ org.apache.maven.plugins maven-compiler-plugin - 3.8.1 + 3.11.0 From e1e3a5496cb92ad0edac5f1cc499ecd121c6bc03 Mon Sep 17 00:00:00 2001 From: EmmanuelAudu Date: Wed, 8 Mar 2023 12:14:47 -0800 Subject: [PATCH 72/76] updating the file --- jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jenkinsfile b/jenkinsfile index 45394aec..b424db56 100644 --- a/jenkinsfile +++ b/jenkinsfile @@ -15,7 +15,7 @@ pipeline{ sh "mvn sonar:sonar -X" } stage("Quality Gate"){ - timeout(5) { + timeout(5){ def qg = waitForQualityGate() if (qg.status != 'OK') { error "Pipeline aborted due to quality gate failure: ${qg.status}" From 6750d9eb72a291570397563dcf9f2a10ae77c719 Mon Sep 17 00:00:00 2001 From: EmmanuelAudu Date: Wed, 8 Mar 2023 12:18:55 -0800 Subject: [PATCH 73/76] updating the file --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index a5e7ae93..a247ac59 100644 --- a/pom.xml +++ b/pom.xml @@ -30,4 +30,4 @@ - + \ No newline at end of file From 66dd75c9dd49793fb59e10d1100843d076d11c74 Mon Sep 17 00:00:00 2001 From: EmmanuelAudu Date: Wed, 8 Mar 2023 12:22:01 -0800 Subject: [PATCH 74/76] updating the file --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index a247ac59..81c6a03d 100644 --- a/pom.xml +++ b/pom.xml @@ -26,7 +26,7 @@ org.apache.maven.plugins maven-compiler-plugin - 3.11.0 + 3.8.1 From 4ebda6173861169f24ddfc1d1245d196029cc8d0 Mon Sep 17 00:00:00 2001 From: EmmanuelAudu Date: Wed, 8 Mar 2023 12:24:40 -0800 Subject: [PATCH 75/76] updating the file --- jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jenkinsfile b/jenkinsfile index b424db56..d15023ca 100644 --- a/jenkinsfile +++ b/jenkinsfile @@ -15,7 +15,7 @@ pipeline{ sh "mvn sonar:sonar -X" } stage("Quality Gate"){ - timeout(5){ + timeout(10){ def qg = waitForQualityGate() if (qg.status != 'OK') { error "Pipeline aborted due to quality gate failure: ${qg.status}" From 90c07f62aecd41d73844d7640184a8bb0cb1b781 Mon Sep 17 00:00:00 2001 From: EmmanuelAudu Date: Wed, 8 Mar 2023 12:29:46 -0800 Subject: [PATCH 76/76] updating the file --- jenkinsfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/jenkinsfile b/jenkinsfile index d15023ca..e4b82026 100644 --- a/jenkinsfile +++ b/jenkinsfile @@ -17,7 +17,7 @@ pipeline{ stage("Quality Gate"){ timeout(10){ def qg = waitForQualityGate() - if (qg.status != 'OK') { + if (qg.status != "OK") { error "Pipeline aborted due to quality gate failure: ${qg.status}" } } @@ -29,7 +29,6 @@ pipeline{ agent{ docker{ image 'maven' - args '-v $HOME/.m2:/root/.m2' } } steps{