Update Jenkinsfile

This commit is contained in:
boat cow 2023-04-09 02:11:25 -04:00 committed by GitHub
parent c52c77eef8
commit 191169bfcc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

8
Jenkinsfile vendored
View file

@ -3,9 +3,9 @@ pipeline {
stages {
stage('build') {
steps {
// sh './mvnw clean package -Dmaven.test.skip=true '
sh 'docker --version'
sh 'docker build -f . --tag pet .'
sh './mvnw clean package -Dmaven.test.skip=true '
// sh 'docker --version'
// sh 'docker build -f . --tag pet .'
}
}
@ -20,7 +20,7 @@ pipeline {
stage('run') {
steps {
sh 'cp -r target/spring-petclinic-3.0.0-SNAPSHOT.jar bin/spring-petclinic-3.0.0-SNAPSHOT.jar'
sh 'cp -r target/ /shared/target'
}
}