From ca957e56b0dbf110c19f6791d1f0e6448f4a69ae Mon Sep 17 00:00:00 2001 From: Rajkumar PP <79452802+rajkumarpp@users.noreply.github.com> Date: Tue, 22 Aug 2023 15:54:03 +0530 Subject: [PATCH 1/4] Update Jenkinsfile --- Jenkinsfile | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 445611cb..e837b0b1 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,21 +1,23 @@ -pipeline{ +pipeline { agent any - tools { - maven 'maven' - jdk 'java' - } - - stages{ - stage('checkout'){ - steps{ - checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[credentialsId: 'github access', url: 'https://github.com/sreenivas449/java-hello-world-with-maven.git']]]) + stages { + stage('build') { + steps { + bat "mvn clean" + } + } + stage('test') { + steps { + bat "mvn test" + echo "Testing Completed" } } - stage('build'){ - steps{ - bat 'mvn package' + stage('deploy') { + steps { + bat "mvn package" + echo "Deployment Completed" } } } -} \ No newline at end of file +} From 48919ca427f11d2cb2a0e10bd6912ba5b8e2d8c6 Mon Sep 17 00:00:00 2001 From: Rajkumar PP <79452802+rajkumarpp@users.noreply.github.com> Date: Wed, 23 Aug 2023 11:04:05 +0530 Subject: [PATCH 2/4] Delete Jenkinsfile --- Jenkinsfile | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile deleted file mode 100644 index e837b0b1..00000000 --- a/Jenkinsfile +++ /dev/null @@ -1,23 +0,0 @@ -pipeline { - agent any - - stages { - stage('build') { - steps { - bat "mvn clean" - } - } - stage('test') { - steps { - bat "mvn test" - echo "Testing Completed" - } - } - stage('deploy') { - steps { - bat "mvn package" - echo "Deployment Completed" - } - } - } -} From 71674d1fb609cc9b412672ce5e2ae5b3e3ff292d Mon Sep 17 00:00:00 2001 From: Rajkumar PP <79452802+rajkumarpp@users.noreply.github.com> Date: Wed, 30 Aug 2023 11:23:20 +0530 Subject: [PATCH 3/4] Create JenkinsFile --- JenkinsFile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 JenkinsFile diff --git a/JenkinsFile b/JenkinsFile new file mode 100644 index 00000000..dfa44934 --- /dev/null +++ b/JenkinsFile @@ -0,0 +1,21 @@ +pipeline{ + agent any + + tools { + maven 'maven' + jdk 'java' + } + + stages{ + stage('checkout'){ + steps{ + checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[credentialsId: 'github access', url: 'https://github.com/sreenivas449/java-hello-world-with-maven.git']]]) + } + } + stage('build'){ + steps{ + bat 'mvn package' + } + } + } +} From 8c007b24387d9c4b943911c7c21c6c5388c7ac0e Mon Sep 17 00:00:00 2001 From: Rajkumar PP <79452802+rajkumarpp@users.noreply.github.com> Date: Wed, 30 Aug 2023 11:24:03 +0530 Subject: [PATCH 4/4] Rename JenkinsFile to Jenkinsfile --- JenkinsFile => Jenkinsfile | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename JenkinsFile => Jenkinsfile (100%) diff --git a/JenkinsFile b/Jenkinsfile similarity index 100% rename from JenkinsFile rename to Jenkinsfile