Skip to content

Commit

Permalink
Trigger website build after jetty-12.0.x branch merge (jetty/jetty.we…
Browse files Browse the repository at this point in the history
…bsite#57) (#12017)

* trigger website build after successful built

Signed-off-by: Olivier Lamy <olamy@apache.org>
  • Loading branch information
olamy authored Jul 9, 2024
1 parent 46204a8 commit d8f2a81
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 @@ -62,6 +62,10 @@ pipeline {
}
fixed {
slackNotif()
websiteBuild()
}
success {
websiteBuild()
}
}
}
Expand Down Expand Up @@ -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

0 comments on commit d8f2a81

Please sign in to comment.