mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-18 13:35:50 +00:00
Almost master (#18)
* trying out slack notifications * print all environment variables * print all environment variables * print all environment variables * print all environment variables * printenv * printenv * find environment variables * find environment variables * find environment variables * find environment variables * find environment variables * find environment variables * post failures for now * remove erroneous line
This commit is contained in:
parent
4a1b7c4ee3
commit
f0b57e4613
1 changed files with 6 additions and 1 deletions
|
@ -55,9 +55,14 @@ pipeline {
|
||||||
script {
|
script {
|
||||||
if ( env.BRANCH_NAME == 'master' )
|
if ( env.BRANCH_NAME == 'master' )
|
||||||
sh "docker push liatrio/petclinic-tomcat:${containerVersion}"
|
sh "docker push liatrio/petclinic-tomcat:${containerVersion}"
|
||||||
else sh "docker push liatrio/petclinic-tomcat:${env.BRANCH_NAME}"
|
else sh "docker push liatrio/petclinic-tomcat:${env.BRANCH_NAME}"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
post {
|
||||||
|
failure {
|
||||||
|
slackSend (channel:"#petclinic", color: "CF1318", message: "${env.JOB_NAME} Failed (<${env.BUILD_URL}|Open>)")
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue