Trigger website build after jetty-12.0.x branch merge (https://github.com/jetty/jetty.website/issues/57) (#12017)
* trigger website build after successful built Signed-off-by: Olivier Lamy <olamy@apache.org>
This commit is contained in:
parent
46204a86ff
commit
d8f2a8167a
|
@ -62,6 +62,10 @@ pipeline {
|
|||
}
|
||||
fixed {
|
||||
slackNotif()
|
||||
websiteBuild()
|
||||
}
|
||||
success {
|
||||
websiteBuild()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -153,4 +157,17 @@ def saveHome() {
|
|||
return false;
|
||||
}
|
||||
|
||||
def websiteBuild() {
|
||||
script {
|
||||
try {
|
||||
if ( env.BRANCH_NAME == 'jetty-10.0.x' || env.BRANCH_NAME == 'jetty-11.0.x' || env.BRANCH_NAME == 'jetty-12.0.x' ) {
|
||||
build( job: 'website/jetty.website/main', propagate: false, wait: false )
|
||||
}
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace()
|
||||
echo "skip website build triggering: " + e.getMessage()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// vim: et:ts=2:sw=2:ft=groovy
|
||||
|
|
Loading…
Reference in New Issue