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