updated Jenkinsfile

This commit is contained in:
Lihan 2024-07-28 21:09:04 -04:00
parent f44e375181
commit db60d2e6ff

32
Jenkinsfile vendored
View file

@ -8,23 +8,23 @@ pipeline {
} }
stages { stages {
stage('Checkout') { // stage('Checkout') {
steps { // steps {
script { // script {
echo "Checking out code..." // echo "Checking out code..."
git url: 'https://github.com/CChariot/spring-petclinic.git', branch: 'FinalProject_main', credentialsId: 'github-token' // git url: 'https://github.com/CChariot/spring-petclinic.git', branch: 'FinalProject_main', credentialsId: 'github-token'
} // }
} // }
} // }
stage('Build JAR') { // stage('Build JAR') {
steps { // steps {
script { // script {
echo "Building JAR..." // echo "Building JAR..."
sh './mvnw clean package -Dmaven.test.skip=true' // sh './mvnw clean package -Dmaven.test.skip=true'
} // }
} // }
} // }
stage('Build Docker Image') { stage('Build Docker Image') {
steps { steps {