From 16b8e90370714d5a3f85b9e08efb58e9bdbb855e Mon Sep 17 00:00:00 2001 From: komalagrawaljain Date: Tue, 20 May 2025 10:11:50 +0530 Subject: [PATCH 1/4] Create Jenkinsfile --- Jenkinsfile | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..b60fc53 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,24 @@ +pipeline { + agent any + tools { + maven 'Maven 3.6.3' + } + stages{ + stage("compile"){ + steps{ + + sh "mvn compile" + } + } + stage("test"){ + steps{ + sh "mvn clean test" + } + } + stage("package"){ + steps{ + sh "mvn package -DskipTests" + } + } + } +} From 0abdc3855a7bd8d18438b6dea6f41d7836ff6c61 Mon Sep 17 00:00:00 2001 From: komalagrawaljain Date: Tue, 20 May 2025 10:28:03 +0530 Subject: [PATCH 2/4] Added Jenkinsfile --- Jenkinsfile | 44 ++++++++++++++++++++++++++------------------ 1 file changed, 26 insertions(+), 18 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index b60fc53..e384bda 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,24 +1,32 @@ pipeline { agent any - tools { - maven 'Maven 3.6.3' - } - stages{ - stage("compile"){ - steps{ - - sh "mvn compile" - } + stages { + stage('compile') { + steps { + sh 'mvn compile' + } + } + + stage('test') { + steps { + sh 'mvn clean test' } - stage("test"){ - steps{ - sh "mvn clean test" - } + } + + stage('package') { + steps { + sh 'mvn package -DskipTests' } - stage("package"){ - steps{ - sh "mvn package -DskipTests" - } + } + + stage('Archive') { + steps { + archiveArtifacts '**/target/*.jar' } + } + + } + tools { + maven 'Maven 3.6.3' } -} +} \ No newline at end of file From 334538fd67db900f72505372dcd94d57d544302f Mon Sep 17 00:00:00 2001 From: komalagrawaljain Date: Tue, 20 May 2025 10:50:50 +0530 Subject: [PATCH 3/4] Added Jenkinsfile --- Jenkinsfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Jenkinsfile b/Jenkinsfile index e384bda..2caa2a2 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -4,6 +4,7 @@ pipeline { stage('compile') { steps { sh 'mvn compile' + echo 'ddfhsdfksdf' } } From c5b2f3185d4119b3fbb2b9df05d1e5821bad7e58 Mon Sep 17 00:00:00 2001 From: komalagrawaljain Date: Tue, 20 May 2025 11:58:17 +0530 Subject: [PATCH 4/4] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 6ae4ea5..13b1a41 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,4 @@ +Extra changes for testing # Sysfoo Application