From 676ddf785d12e66f33ea6a601ee600bf722bd1d8 Mon Sep 17 00:00:00 2001 From: swatigoyal911 Date: Wed, 16 Oct 2024 15:22:05 +0530 Subject: [PATCH 1/7] Update README.md change commit 1 --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index 6ae4ea5..b597547 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,4 @@ +change commit 1 # Sysfoo Application @@ -175,5 +176,3 @@ If you encounter any issues while using or developing the Sysfoo application, pl We hope you find the Sysfoo application useful for learning and developing your skills in Spring Boot and web application development! - - From 2ccfa69c5b1163ff8b253a66f3296821cf3f167b Mon Sep 17 00:00:00 2001 From: swatigoyal911 Date: Wed, 16 Oct 2024 15:28:30 +0530 Subject: [PATCH 2/7] Update README.md change commit 2 --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index b597547..682b4be 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ change commit 1 +change commit 2 # Sysfoo Application From 8aa21a0fb9029a862a43b274765647d859069965 Mon Sep 17 00:00:00 2001 From: swatigoyal911 Date: Thu, 17 Oct 2024 11:43:09 +0530 Subject: [PATCH 3/7] Create Jenkinsfile Create Jenkinsfile --- Jenkinsfile | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..51aee26 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,29 @@ +pipeline { + agent any + stages{ + stage("one"){ + steps{ + echo 'step 1' + sleep 3 + } + } + stage("two"){ + steps{ + echo 'step 2' + sleep 9 + } + } + stage("three"){ + steps{ + echo 'step 3' + sleep 5 + } + } + } + + post{ + always{ + echo 'This pipeline is completed..' + } + } +} From 48a4113eef3f63f3173fa814363c9b9bc9adcd0e Mon Sep 17 00:00:00 2001 From: swatigoyal911 Date: Thu, 17 Oct 2024 12:38:22 +0530 Subject: [PATCH 4/7] Update Jenkinsfile build-test-package --- Jenkinsfile | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 51aee26..03a22ec 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,22 +1,23 @@ pipeline { agent any stages{ - stage("one"){ + stage("build"){ steps{ - echo 'step 1' - sleep 3 + echo 'Building.....' + sh 'mvn compile' } } - stage("two"){ + stage("test"){ steps{ - echo 'step 2' - sleep 9 + echo 'Testing......' + sh 'mvn clean install' } } - stage("three"){ + stage("package"){ steps{ - echo 'step 3' - sleep 5 + echo 'Packaging.....' + sh 'mvn package' + archiveArtifacts artifacts: '**/target/*.jar', followSymlinks: false } } } From cecb4ac317246bd38505334f6c740376b56ad335 Mon Sep 17 00:00:00 2001 From: swatigoyal911 Date: Thu, 17 Oct 2024 12:59:51 +0530 Subject: [PATCH 5/7] maven tool add in jenkinsfile --- Jenkinsfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 03a22ec..e8495fe 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,5 +1,8 @@ pipeline { agent any + tools { + maven 'Maven 3.8.6' + } stages{ stage("build"){ steps{ From f68ba1f966f6062b77e94efbb919e0bb7eddc8ed Mon Sep 17 00:00:00 2001 From: swatigoyal911 Date: Thu, 17 Oct 2024 13:07:31 +0530 Subject: [PATCH 6/7] add echo job --- Jenkinsfile | 62 ++++++++++++++++++++++++++++++++--------------------- 1 file changed, 38 insertions(+), 24 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index e8495fe..6802a40 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,33 +1,47 @@ pipeline { agent any - tools { - maven 'Maven 3.8.6' - } - stages{ - stage("build"){ - steps{ - echo 'Building.....' - sh 'mvn compile' - } + stages { + stage('build') { + steps { + echo 'Building.....' + sh 'mvn compile' } - stage("test"){ - steps{ - echo 'Testing......' - sh 'mvn clean install' + } + + stage('test') { + parallel { + stage('test') { + steps { + echo 'Testing......' + sh 'mvn clean install' } - } - stage("package"){ - steps{ - echo 'Packaging.....' - sh 'mvn package' - archiveArtifacts artifacts: '**/target/*.jar', followSymlinks: false + } + + stage('echo') { + steps { + sleep 4 } + } + } - } + } + + stage('package') { + steps { + echo 'Packaging.....' + sh 'mvn package' + archiveArtifacts '**/target/*.jar' + } + } - post{ - always{ - echo 'This pipeline is completed..' + } + tools { + maven 'Maven 3.8.6' + } + post { + always { + echo 'This pipeline is completed..' } + } -} +} \ No newline at end of file From cab05b23453b58f919faf579faa6f7d956219fd1 Mon Sep 17 00:00:00 2001 From: swatigoyal911 Date: Thu, 17 Oct 2024 13:28:49 +0530 Subject: [PATCH 7/7] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 682b4be..51d3e90 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,6 @@ change commit 1 change commit 2 +change commit 3 # Sysfoo Application