mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-21 07:15:49 +00:00
build: conf jenkins 1.1
This commit is contained in:
parent
863c08d5f9
commit
e9d0e7e742
1 changed files with 13 additions and 10 deletions
19
Jenkinsfile
vendored
19
Jenkinsfile
vendored
|
@ -4,19 +4,22 @@ pipeline{
|
|||
}
|
||||
stages{
|
||||
stage("A"){
|
||||
when {
|
||||
branch 'main'
|
||||
}
|
||||
steps{
|
||||
echo "MAIN BRANCH"
|
||||
sh "printenv"
|
||||
}
|
||||
post{
|
||||
always{
|
||||
echo "========always========"
|
||||
}
|
||||
success{
|
||||
echo "========A executed successfully========"
|
||||
}
|
||||
failure{
|
||||
echo "========A execution failed========"
|
||||
|
||||
stage("B"){
|
||||
when {
|
||||
changeRequest()
|
||||
}
|
||||
steps {
|
||||
echo "PR"
|
||||
sh "printenv"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue