mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-20 14:35:48 +00:00
added more steps in pipeline
This commit is contained in:
parent
e31eb8b5f6
commit
6a485a711a
1 changed files with 20 additions and 1 deletions
19
Jenkinsfile
vendored
19
Jenkinsfile
vendored
|
@ -1,11 +1,30 @@
|
||||||
pipeline {
|
pipeline {
|
||||||
agent any
|
agent any
|
||||||
|
|
||||||
|
environment {
|
||||||
|
GIT_COMMIT_SHORT = sh(script: "git rev-parse --short HEAD", returnStdout: true).trim()
|
||||||
|
DOCKER_HUB_USER = "m1kkY8"
|
||||||
|
}
|
||||||
|
|
||||||
stages {
|
stages {
|
||||||
stage('checkStyle') {
|
stage('checkStyle') {
|
||||||
|
when { not {branch 'main' }}
|
||||||
steps {
|
steps {
|
||||||
sh './gradlew checkstyleMain'
|
sh './gradlew checkstyleMain'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
stage('Test') {
|
||||||
|
when { not {branch 'main' }}
|
||||||
|
steps {
|
||||||
|
sh './gradlew test'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
stage('Build') {
|
||||||
|
steps {
|
||||||
|
sh './gradlew build -x test'
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue