Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-31702

Post successful build steps are executed when build fails

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • release-plugin
    • Standalone Jenkins 1.638 with release plugin 2.5.4

      First build step was to copy artifacts from another job. This build step failed.

      Configured post successful build steps of the release plugin are executed anyway. But they should not be executed in my eyes when some build step fails.

      Do you have any hints how to debug this?

          [JENKINS-31702] Post successful build steps are executed when build fails

          Marcus Klein added a comment - - edited

          I use the Git Publisher plugin as post successful build step. This plugin offers as first option to push only if build succeeds. But this option is broken, too. It fails with a NullPointerException: https://issues.jenkins-ci.org/browse/JENKINS-31678

          So there is currently no possibility to push to Git only when the build succeeds.

          Marcus Klein added a comment - - edited I use the Git Publisher plugin as post successful build step. This plugin offers as first option to push only if build succeeds. But this option is broken, too. It fails with a NullPointerException: https://issues.jenkins-ci.org/browse/JENKINS-31678 So there is currently no possibility to push to Git only when the build succeeds.

            petehayes Peter Hayes
            kleini Marcus Klein
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: