From 6f71e35d8997fc4d85af09daed540b21822ae1f1 Mon Sep 17 00:00:00 2001 From: s4616 <87678241+s4616@users.noreply.github.com> Date: Mon, 10 Jul 2023 18:44:34 +0900 Subject: [PATCH] Update Jenkinsfile --- Jenkinsfile | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index e2bf7e91e..7219f0412 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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" } - } + } } }