mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-25 17:15:48 +00:00
Update Jenkinsfile
This commit is contained in:
parent
2e18e69f41
commit
6f71e35d89
1 changed files with 4 additions and 9 deletions
13
Jenkinsfile
vendored
13
Jenkinsfile
vendored
|
@ -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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue