mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-21 23:05:50 +00:00
Add test for master branch
This commit is contained in:
parent
8310d2b557
commit
4548820897
1 changed files with 14 additions and 11 deletions
25
Jenkinsfile
vendored
25
Jenkinsfile
vendored
|
@ -1,28 +1,31 @@
|
|||
#!/usr/bin/env groovy
|
||||
pipeline {
|
||||
agent any
|
||||
stages {
|
||||
stage('Build') {
|
||||
agent any
|
||||
stages {
|
||||
stage('Build') {
|
||||
steps {
|
||||
sh './mvnw clean'
|
||||
}
|
||||
}
|
||||
stage('Test') {
|
||||
}
|
||||
stage('Test') {
|
||||
steps {
|
||||
sh './mvnw test'
|
||||
}
|
||||
}
|
||||
stage('Package') {
|
||||
|
||||
stage('Package') {
|
||||
steps {
|
||||
sh './mvnw package'
|
||||
}
|
||||
}
|
||||
/*
|
||||
stage('Deploy') {
|
||||
steps {
|
||||
sh './mvnw deploy'
|
||||
|
||||
if( env.BRANCH_NAME == 'master' ) {
|
||||
stage('Deploy') {
|
||||
steps {
|
||||
sh './mvnw deploy'
|
||||
}
|
||||
}
|
||||
}
|
||||
*/
|
||||
}
|
||||
post {
|
||||
always {
|
||||
|
|
Loading…
Reference in a new issue