Update Jenkinsfile

This commit is contained in:
s4616 2023-07-10 18:44:34 +09:00 committed by GitHub
parent 2e18e69f41
commit 6f71e35d89
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

13
Jenkinsfile vendored
View file

@ -17,9 +17,7 @@ pipeline {
error 'fail clone project' // exit pipeline
}
}
}
}
}
stage ('mvn Build') {
steps {
sh 'mvn -Dmaven.test.failure.ignore=true install'
@ -29,16 +27,14 @@ pipeline {
junit '**/target/surefire-reports/TEST-*.xml'
}
}
}
}
stage ('Docker Build') {
steps {
dir("${env.WORKSPACE}") {
sh 'docker build -t spring-perclinic:1.0 .'
}
}
}
}
stage('Push Docker Image') {
steps {
echo "Push Docker Image to ECR"
@ -47,7 +43,6 @@ pipeline {
stage('Upload to S3') {
steps {
echo "Upload to S3"
}
}
}
@ -55,6 +50,6 @@ pipeline {
steps {
echo "create application"
}
}
}
}
}