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 {
stage('Checkout') {
steps {
script {
echo "Checking out code..."
git url: 'https://github.com/CChariot/spring-petclinic.git', branch: 'FinalProject_main', credentialsId: 'github-token'
}
}
}
// stage('Checkout') {
// steps {
// script {
// echo "Checking out code..."
// git url: 'https://github.com/CChariot/spring-petclinic.git', branch: 'FinalProject_main', credentialsId: 'github-token'
// }
// }
// }
stage('Build JAR') {
steps {
script {
echo "Building JAR..."
sh './mvnw clean package -Dmaven.test.skip=true'
}
}
}
// stage('Build JAR') {
// steps {
// script {
// echo "Building JAR..."
// sh './mvnw clean package -Dmaven.test.skip=true'
// }
// }
// }
stage('Build Docker Image') {
steps {