This is an automated email from the ASF dual-hosted git repository. neilcsmith pushed a commit to branch jenkinsfile-successful-commit in repository https://gitbox.apache.org/repos/asf/netbeans-website.git
commit dec7ee04f16d9377a2a430f8b1f855c6041dad78 Author: Neil C Smith <neilcsm...@apache.org> AuthorDate: Tue May 2 10:01:53 2023 +0100 Update Jenkinsfile.groovy to check last successful commit --- Jenkinsfile.groovy | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile.groovy b/Jenkinsfile.groovy index c72423391..f087996a3 100644 --- a/Jenkinsfile.groovy +++ b/Jenkinsfile.groovy @@ -58,11 +58,13 @@ pipeline { ]) def gitCommit = masterBranch.GIT_COMMIT def gitPreviousCommit = masterBranch.GIT_PREVIOUS_COMMIT + def gitPreviousSuccessfulCommit = masterBranch.GIT_PREVIOUS_SUCCESSFUL_COMMIT println("GIT_COMMIT: ${gitCommit}") println("GIT_PREVIOUS_COMMIT: ${gitPreviousCommit}") + println("GIT_PREVIOUS_SUCCESSFUL_COMMIT: ${gitPreviousSuccessfulCommit}") println("MASTER BRANCH : ${masterBranch}") // We want to rebuild the website when 'master' changes, not when 'asf-site' changes... - if (gitCommit.equals(gitPreviousCommit)) { + if (gitCommit.equals(gitPreviousSuccessfulCommit)) { // vieiro/2020-07-25 // It seems there's no clean way to stop a build from a step without using exceptions and weird things. // It seems "As a user I want to stop a build from a stage step" is not a user story jenkins authors had in mind. --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists