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

Post successful build steps are executed when build fails

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Critical
    • Resolution: Unresolved
    • Component/s: release-plugin
    • Labels:
    • Environment:
      Standalone Jenkins 1.638 with release plugin 2.5.4
    • Similar Issues:

      Description

      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?

        Attachments

          Activity

          Hide
          kleini 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.

          Show
          kleini 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.

            People

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

              Dates

              • Created:
                Updated: