From 684f5c4a4b852d7341a72b35fce566e13092e0a2 Mon Sep 17 00:00:00 2001
From: Sangamesh1001 <158812901+Sangamesh1001@users.noreply.github.com>
Date: Thu, 12 Sep 2024 16:41:38 +0530
Subject: [PATCH 1/5] poll
---
readme | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/readme b/readme
index 5f78d2c..7b81395 100644
--- a/readme
+++ b/readme
@@ -1,3 +1,4 @@
Java code for sprint boot application
Test
-adding
\ No newline at end of file
+adding
+pollscm
From f1ed9e7a3b346e1a42a97cd379b644027f745384 Mon Sep 17 00:00:00 2001
From: Sangamesh1001 <158812901+Sangamesh1001@users.noreply.github.com>
Date: Thu, 12 Sep 2024 22:32:14 +0530
Subject: [PATCH 2/5] Update readme
---
readme | 1 +
1 file changed, 1 insertion(+)
diff --git a/readme b/readme
index 7b81395..09cc115 100644
--- a/readme
+++ b/readme
@@ -2,3 +2,4 @@ Java code for sprint boot application
Test
adding
pollscm
+git-webhook
From bf998273b461e1c02cb28f1a4e4af4378604cc56 Mon Sep 17 00:00:00 2001
From: Sangamesh1001 <158812901+Sangamesh1001@users.noreply.github.com>
Date: Sat, 14 Sep 2024 22:25:43 +0530
Subject: [PATCH 3/5] Update readme
---
readme | 1 +
1 file changed, 1 insertion(+)
diff --git a/readme b/readme
index 09cc115..ce2ebca 100644
--- a/readme
+++ b/readme
@@ -3,3 +3,4 @@ Test
adding
pollscm
git-webhook
+yes added
From efca6c5717940b0344afeed38f6e9c0a7f606d14 Mon Sep 17 00:00:00 2001
From: Sangamesh1001 <158812901+Sangamesh1001@users.noreply.github.com>
Date: Mon, 16 Sep 2024 22:25:49 +0530
Subject: [PATCH 4/5] Update pom.xml
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 1a1862c..c9f3f31 100644
--- a/pom.xml
+++ b/pom.xml
@@ -10,7 +10,7 @@
com.example
jenkins-test
- 1.0
+ 1.1
jenkins-test
Demo for jenkins
From 97435299a9d5a2c606d8bcb936bcd0474eb9e1a7 Mon Sep 17 00:00:00 2001
From: Sangamesh1001 <158812901+Sangamesh1001@users.noreply.github.com>
Date: Tue, 17 Sep 2024 11:55:00 +0530
Subject: [PATCH 5/5] Create Jenkinsfile
---
Jenkinsfile | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)
create mode 100644 Jenkinsfile
diff --git a/Jenkinsfile b/Jenkinsfile
new file mode 100644
index 0000000..e6daf6b
--- /dev/null
+++ b/Jenkinsfile
@@ -0,0 +1,23 @@
+
+pipeline{
+ agent {label 'sonar'}
+ stages{
+ /*stage('Git Checkout Stage'){
+ steps{
+ git branch: 'main', url: 'https://github.com/tranju664/Sonar-Qube-war-example.git'
+ }
+ }*/
+ stage('Build Stage'){
+ steps{
+ sh 'mvn clean install'
+ }
+ }
+ stage('SonarQube Analysis Stage') {
+ steps{
+ withSonarQubeEnv('sonardemo') {
+ sh "mvn clean verify sonar:sonar -Dsonar.projectKey=sonardemo"
+ }
+ }
+ }
+ }
+}