From cdf3c2d69e86d189b11f2c9be8fc01b9ee000c69 Mon Sep 17 00:00:00 2001
From: Rajnikanthyadav336
<46199913+Rajnikanthyadav336@users.noreply.github.com>
Date: Fri, 2 Dec 2022 14:58:12 +0530
Subject: [PATCH 1/3] Update pom.xml
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 7f5d8b9..f3a12ad 100644
--- a/pom.xml
+++ b/pom.xml
@@ -30,7 +30,7 @@
test
-
+
From 194807fdd3ac6dbf94dd1b58cca186b16579396b Mon Sep 17 00:00:00 2001
From: Rajnikanth336 <46199913+Rajnikanthyadav336@users.noreply.github.com>
Date: Sat, 18 Feb 2023 23:18:20 +0530
Subject: [PATCH 2/3] 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..a509d25
--- /dev/null
+++ b/jenkinsfile
@@ -0,0 +1,27 @@
+pipeline {
+ agent any
+ stages {
+ stage('SCM') {
+ steps {
+ checkout scmGit(branches: [[name: '*/UAT']], extensions: [], userRemoteConfigs: [[url: 'https://github.com/Rajnikanthyadav336/java-example.git']])
+ }
+ }
+ stage('SonarQube Analysis') {
+ tools {
+ maven 'Default Maven'
+ }
+ steps {
+ withSonarQubeEnv(installationName: 'sonar') {
+ sh "mvn clean test sonar:sonar -Dsonar.projectKey=sonar1"
+ }
+ }
+ }
+ stage('Quality Gate') {
+ steps {
+ timeout(time: 1, unit: 'HOURS') {
+ waitForQualityGate abortPipeline: true
+ }
+ }
+ }
+}
+}
From 70c3db7e5bd8ad20a9704680ed35e937cbcf31a7 Mon Sep 17 00:00:00 2001
From: Rajnikanth336 <46199913+Rajnikanthyadav336@users.noreply.github.com>
Date: Sat, 18 Feb 2023 23:33:51 +0530
Subject: [PATCH 3/3] Update jenkinsfile
---
jenkinsfile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/jenkinsfile b/jenkinsfile
index a509d25..1f51a9f 100644
--- a/jenkinsfile
+++ b/jenkinsfile
@@ -1,7 +1,7 @@
pipeline {
agent any
stages {
- stage('SCM') {
+ stage('SM') {
steps {
checkout scmGit(branches: [[name: '*/UAT']], extensions: [], userRemoteConfigs: [[url: 'https://github.com/Rajnikanthyadav336/java-example.git']])
}