mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-15 20:35:49 +00:00
modify jobs go run on pull request only
This commit is contained in:
parent
873d21dd7b
commit
5119ea688e
1 changed files with 15 additions and 2 deletions
17
Jenkinsfile
vendored
17
Jenkinsfile
vendored
|
@ -20,6 +20,10 @@ pipeline {
|
|||
}
|
||||
}
|
||||
stage('Test') {
|
||||
when {
|
||||
changeRequest()
|
||||
}
|
||||
|
||||
agent {
|
||||
docker { image 'maven:3.8.5-openjdk-17' }
|
||||
}
|
||||
|
@ -28,6 +32,10 @@ pipeline {
|
|||
}
|
||||
}
|
||||
stage('Build') {
|
||||
when {
|
||||
changeRequest()
|
||||
}
|
||||
|
||||
agent {
|
||||
docker { image 'maven:3.8.5-openjdk-17' }
|
||||
}
|
||||
|
@ -41,6 +49,10 @@ pipeline {
|
|||
}
|
||||
}
|
||||
stage('Build Image') {
|
||||
when {
|
||||
changeRequest()
|
||||
}
|
||||
|
||||
agent {
|
||||
docker {
|
||||
image 'docker:20.10.16'
|
||||
|
@ -59,8 +71,9 @@ pipeline {
|
|||
}
|
||||
stage('Build Image Main') {
|
||||
when {
|
||||
branch 'main'
|
||||
}
|
||||
not { changeRequest() }
|
||||
}
|
||||
|
||||
agent {
|
||||
docker {
|
||||
image 'docker:20.10.16'
|
||||
|
|
Loading…
Reference in a new issue