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:
Olivier Lamy 2024-07-10 09:50:23 +10:00 committed by GitHub
parent 46204a86ff
commit d8f2a8167a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 17 additions and 0 deletions

17
Jenkinsfile vendored
View File

@ -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