From f228fc661e03b4ec73975005bbfbcdf8a5fe9c93 Mon Sep 17 00:00:00 2001
From: sudheer76R <106054260+sudheer76R@users.noreply.github.com>
Date: Sun, 3 Sep 2023 21:48:01 +0530
Subject: [PATCH 01/11] Update test
---
test | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/test b/test
index eb58ad5..9f4b6d8 100644
--- a/test
+++ b/test
@@ -1 +1 @@
-Checking POLL SCM
+This is a test file
From 68d255546a65af93819d2884ffd3b08577ca2334 Mon Sep 17 00:00:00 2001
From: sudheer76R <106054260+sudheer76R@users.noreply.github.com>
Date: Fri, 15 Dec 2023 08:22:17 +0530
Subject: [PATCH 02/11] Update README.md
---
README.md | 1 +
1 file changed, 1 insertion(+)
diff --git a/README.md b/README.md
index 6fe00b3..7ff233a 100644
--- a/README.md
+++ b/README.md
@@ -1,3 +1,4 @@
# Simple Java Project
This is a demo project that you can use with [Buddy Continuous Deployment](https://buddy.works).
Adding some lines
+Checking POLL scm
From 2b01d36254d71f17c324a3e541dfe6bd7e8944ee Mon Sep 17 00:00:00 2001
From: sudheer76R <106054260+sudheer76R@users.noreply.github.com>
Date: Mon, 18 Dec 2023 09:18:28 +0530
Subject: [PATCH 03/11] Update pom.xml
---
pom.xml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/pom.xml b/pom.xml
index 7f5d8b9..4eade3a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -7,8 +7,8 @@
1.0
war
- 1.6
- 1.6
+ 1.7
+ 1.7
From 23d998d1fdc1bc4ebe0c306d5ed3e3bc2a8de602 Mon Sep 17 00:00:00 2001
From: sudheer76R <106054260+sudheer76R@users.noreply.github.com>
Date: Mon, 18 Dec 2023 09:32:09 +0530
Subject: [PATCH 04/11] Update pom.xml
---
pom.xml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/pom.xml b/pom.xml
index 4eade3a..67864ea 100644
--- a/pom.xml
+++ b/pom.xml
@@ -7,8 +7,8 @@
1.0
war
- 1.7
- 1.7
+ 11
+ 11
From 8fe799282122f2131531a832037b04a4df9f1e5e Mon Sep 17 00:00:00 2001
From: sudheer76R <106054260+sudheer76R@users.noreply.github.com>
Date: Tue, 19 Dec 2023 20:42:23 +0530
Subject: [PATCH 05/11] Update pom.xml
---
pom.xml | 20 ++++++++++++++------
1 file changed, 14 insertions(+), 6 deletions(-)
diff --git a/pom.xml b/pom.xml
index 67864ea..f7eacb3 100644
--- a/pom.xml
+++ b/pom.xml
@@ -6,10 +6,13 @@
works-with-heroku
1.0
war
+
+
- 11
- 11
+ 17
+ 17
+
javax.servlet
@@ -25,18 +28,23 @@
org.mockito
- mockito-all
- 1.10.19
+ mockito-core
+ 3.12.4
test
-
+
+
+ org.apache.maven.plugins
+ maven-war-plugin
+ 3.3.1
+
org.apache.maven.plugins
maven-dependency-plugin
- 2.3
+ 3.4.0
package
From d0cc6aad0388b6ad70d05bc17836eb2b0fcd0645 Mon Sep 17 00:00:00 2001
From: sudheer76R <106054260+sudheer76R@users.noreply.github.com>
Date: Wed, 3 Apr 2024 08:28:50 +0530
Subject: [PATCH 06/11] Create Jenkinsfile
---
Jenkinsfile | 28 ++++++++++++++++++++++++++++
1 file changed, 28 insertions(+)
create mode 100644 Jenkinsfile
diff --git a/Jenkinsfile b/Jenkinsfile
new file mode 100644
index 0000000..5912ca3
--- /dev/null
+++ b/Jenkinsfile
@@ -0,0 +1,28 @@
+pipeline {
+ agent any
+ stages {
+ stage('Checkout') {
+ steps {
+ echo 'Checkout completed'
+ }
+ }
+ stage('Static-test') {
+ steps {
+ echo 'Running static tests on code'
+ }
+ }
+ stage('Build') {
+ when {
+ branch "master"
+ }
+ steps {
+ sh 'echo "Building the code"'
+ }
+ }
+ stage('Deploy') {
+ steps {
+ echo 'Deploying into environment'
+ }
+ }
+ }
+}
From 220b09a21326db1f6c99d03cf3a8bc0285927bd0 Mon Sep 17 00:00:00 2001
From: sudheer76R <106054260+sudheer76R@users.noreply.github.com>
Date: Sat, 20 Jul 2024 20:13:29 +0530
Subject: [PATCH 07/11] Update pom.xml
---
pom.xml | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/pom.xml b/pom.xml
index f7eacb3..b586f6f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -7,10 +7,10 @@
1.0
war
-
+
- 17
- 17
+ 11
+ 11
From f79aba8009832424538b20edac153e4250fc0e28 Mon Sep 17 00:00:00 2001
From: sudheer76R <106054260+sudheer76R@users.noreply.github.com>
Date: Mon, 22 Jul 2024 22:10:37 +0530
Subject: [PATCH 08/11] Update Jenkinsfile
---
Jenkinsfile | 3 ---
1 file changed, 3 deletions(-)
diff --git a/Jenkinsfile b/Jenkinsfile
index 5912ca3..c978297 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -12,9 +12,6 @@ pipeline {
}
}
stage('Build') {
- when {
- branch "master"
- }
steps {
sh 'echo "Building the code"'
}
From 294663b2add91a574bb64b565f0c8a8800aa6912 Mon Sep 17 00:00:00 2001
From: sudheer76R <106054260+sudheer76R@users.noreply.github.com>
Date: Sat, 15 Mar 2025 08:41:12 +0530
Subject: [PATCH 09/11] Update Jenkinsfile
---
Jenkinsfile | 45 +++++++++++++++++++++------------------------
1 file changed, 21 insertions(+), 24 deletions(-)
diff --git a/Jenkinsfile b/Jenkinsfile
index c978297..aeeffd4 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -1,25 +1,22 @@
-pipeline {
- agent any
- stages {
- stage('Checkout') {
- steps {
- echo 'Checkout completed'
- }
- }
- stage('Static-test') {
- steps {
- echo 'Running static tests on code'
- }
- }
- stage('Build') {
- steps {
- sh 'echo "Building the code"'
- }
- }
- stage('Deploy') {
- steps {
- echo 'Deploying into environment'
- }
- }
- }
+pipeline{
+ agent any
+ stages{
+ stage('Git Checkout Stage'){
+ steps{
+ git branch: 'main', url: 'https://github.com/sudheer76R/java-example.git'
+ }
+ }
+ stage('Build Stage'){
+ steps{
+ sh 'mvn clean install'
+ }
+ }
+ stage('SonarQube Analysis Stage') {
+ steps{
+ withSonarQubeEnv('sonar') {
+ sh "mvn clean verify sonar:sonar -Dsonar.projectKey=demo_sp"
+ }
+ }
+ }
+ }
}
From 98444670b5b29336d00c18b4e7e38c1a1c324bbe Mon Sep 17 00:00:00 2001
From: sudheer76R <106054260+sudheer76R@users.noreply.github.com>
Date: Sat, 15 Mar 2025 09:10:26 +0530
Subject: [PATCH 10/11] Update Jenkinsfile
---
Jenkinsfile | 7 -------
1 file changed, 7 deletions(-)
diff --git a/Jenkinsfile b/Jenkinsfile
index aeeffd4..d0505e1 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -11,12 +11,5 @@ pipeline{
sh 'mvn clean install'
}
}
- stage('SonarQube Analysis Stage') {
- steps{
- withSonarQubeEnv('sonar') {
- sh "mvn clean verify sonar:sonar -Dsonar.projectKey=demo_sp"
- }
- }
- }
}
}
From 4c0c561cbcd5edb87d0bea1ebcb92c6fd1179d8d Mon Sep 17 00:00:00 2001
From: sudheer76R <106054260+sudheer76R@users.noreply.github.com>
Date: Sat, 15 Mar 2025 19:16:21 +0530
Subject: [PATCH 11/11] Update Jenkinsfile
---
Jenkinsfile | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/Jenkinsfile b/Jenkinsfile
index d0505e1..171e3d4 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -1,5 +1,5 @@
pipeline{
- agent any
+ agent {label 'angular'}
stages{
stage('Git Checkout Stage'){
steps{
@@ -11,5 +11,12 @@ pipeline{
sh 'mvn clean install'
}
}
+ stage('SonarQube Analysis Stage') {
+ steps{
+ withSonarQubeEnv('sonarqube-server') {
+ sh "mvn clean verify sonar:sonar"
+ }
+ }
+ }
}
}