mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-23 08:15:49 +00:00
Update pipeline_lib.groovy
This commit is contained in:
parent
5daa969744
commit
68fc95af0f
1 changed files with 46 additions and 44 deletions
|
@ -1,4 +1,5 @@
|
||||||
if(env.CHANGE_ID != null){
|
def run(){
|
||||||
|
if(env.CHANGE_ID != null){
|
||||||
pipeline{
|
pipeline{
|
||||||
agent any
|
agent any
|
||||||
stages {
|
stages {
|
||||||
|
@ -29,8 +30,8 @@ if(env.CHANGE_ID != null){
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if(env.BRANCH_NAME == "main"){
|
else if(env.BRANCH_NAME == "main"){
|
||||||
pipeline{
|
pipeline{
|
||||||
agent any
|
agent any
|
||||||
stages{
|
stages{
|
||||||
|
@ -52,4 +53,5 @@ else if(env.BRANCH_NAME == "main"){
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue