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

M2 Extra Steps Plugin Post Build Steps only fires when set to run "regardless"

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      I have configured an External Shell M2 Extra Steps post build step. I configured
      it to only be executed if the build was a success. The build is a maven goal of
      release:prepare. The build succeeds but the post step does not execute.

      I added a pre build step, this was executed. I removed the pre build step.

      I modified the config to run the post build step if the build was either
      successful or unstable. The job ran, the build was a success but the post build
      step did not run.

      I modified the config to run the post build step "Run regardless of build
      result". I ran the job, the build was a success and the post build step was run.

      It appears that the post build shell script step is only run if the Post Build
      Run Criteria is set to "Run regardless of build result"

        Attachments

          Activity

          Hide
          abayer Andrew Bayer added a comment -

          I think I've got a sense of what's wrong here - the m2-extra-steps plugin is
          checking build.getResult(), but I think the build's Result hasn't been set yet
          at the time we're calling it. I'm trying to figure out how we'd get that info now.

          Show
          abayer Andrew Bayer added a comment - I think I've got a sense of what's wrong here - the m2-extra-steps plugin is checking build.getResult(), but I think the build's Result hasn't been set yet at the time we're calling it. I'm trying to figure out how we'd get that info now.
          Hide
          abayer Andrew Bayer added a comment -

          Fixed in the about-to-get-released 1.1.2 release of m2-extra-steps.

          Show
          abayer Andrew Bayer added a comment - Fixed in the about-to-get-released 1.1.2 release of m2-extra-steps.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in hudson
          User: : abayer
          Path:
          trunk/hudson/plugins/m2-extra-steps/pom.xml
          trunk/hudson/plugins/m2-extra-steps/src/main/java/hudson/plugins/m2extrasteps/M2ExtraStepsWrapper.java
          http://fisheye4.cenqua.com/changelog/hudson/?cs=22265
          Log:
          [FIXED JENKINS-4465] Properly checks build result, including null Result object.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in hudson User: : abayer Path: trunk/hudson/plugins/m2-extra-steps/pom.xml trunk/hudson/plugins/m2-extra-steps/src/main/java/hudson/plugins/m2extrasteps/M2ExtraStepsWrapper.java http://fisheye4.cenqua.com/changelog/hudson/?cs=22265 Log: [FIXED JENKINS-4465] Properly checks build result, including null Result object.
          Hide
          zoosnack zoosnack added a comment -

          I have this exact same issue. I have version 1.1.3 of m2-extra-steps & Hudson ver. 1.367.

          My maven job is configured with this:
          -DSCMuser=xxxxxx -DSCMpassword=xxxxx -Dresume=false release:prepare release:perform

          I have an ant task set up in a post build step and it only executes when configure to Run regardless of build result.

          Show
          zoosnack zoosnack added a comment - I have this exact same issue. I have version 1.1.3 of m2-extra-steps & Hudson ver. 1.367. My maven job is configured with this: -DSCMuser=xxxxxx -DSCMpassword=xxxxx -Dresume=false release:prepare release:perform I have an ant task set up in a post build step and it only executes when configure to Run regardless of build result.

            People

            Assignee:
            abayer Andrew Bayer
            Reporter:
            russell_ioko russell_ioko
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: