From a16963c727441a5a933ab45f4cda3e3ada33274e Mon Sep 17 00:00:00 2001 From: srpalani93 <146675626+srpalani93@users.noreply.github.com> Date: Sun, 28 Sep 2025 00:58:49 +0530 Subject: [PATCH 1/2] Update Jenkinsfile --- Jenkinsfile | 44 +++++++++++++++++++++++++++++++++----------- 1 file changed, 33 insertions(+), 11 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index cc4897e0..c4ce40fe 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,32 +1,54 @@ pipeline { agent any - + tools { - maven 'maven3.6' jdk 'jdk17' + maven 'maven3' } stages { - - stage('Compile') { + stage('Hello') { steps { - sh 'mvn compile' + echo 'Hello World' } } - stage('test') { + + stage('Checkout') { steps { - sh 'mvn test' + git branch: 'main', + credentialsId: 'git-credentials', + url: 'https://github.com/srpalani93/Boardgame.git' } } - stage('Package') { + + stage('Build') { steps { - sh 'mvn package' + sh 'mvn clean compile -DskipTests=true' } } - stage('Hello') { + + stage('Test') { steps { - echo 'Hello World' + sh 'mvn test' } } + + stage('Package') { + steps { + sh 'mvn package -DskipTests=true' + } + } + } + + post { + success { + echo '✅ Build completed successfully!' + } + failure { + echo '❌ Build failed!' + } + always{ + echo 'my first build always fails' + } } } From f7e980ba35540bebead719ada6893dcebf95a2ee Mon Sep 17 00:00:00 2001 From: srpalani93 <146675626+srpalani93@users.noreply.github.com> Date: Sun, 28 Sep 2025 12:51:08 +0530 Subject: [PATCH 2/2] Update Jenkinsfile --- Jenkinsfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Jenkinsfile b/Jenkinsfile index c4ce40fe..ec75b4bd 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -10,6 +10,7 @@ pipeline { stage('Hello') { steps { echo 'Hello World' + echo 'this is palani from webhooktrigger' } }