Skip to content

Commit

Permalink
trigger a website build check after 10.0.x build (#12034)
Browse files Browse the repository at this point in the history
Signed-off-by: Olivier Lamy <[email protected]>
  • Loading branch information
olamy authored Sep 4, 2024
1 parent f277b0a commit cfc599c
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ pipeline {
}
fixed {
slackNotif()
websiteBuild()
}
success {
websiteBuild()
}
}
}
Expand Down Expand Up @@ -128,4 +132,17 @@ def mavenBuild(jdk, cmdline, mvnName) {
}
}

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

0 comments on commit cfc599c

Please sign in to comment.