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

No end of release phase if any of the steps has an error in it.

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      For example if i just simply put in the following into the execute shell for Before Release build

      exit 1
      

      This return code will simply being ignored which mean in result that the real build step will be executed which is in my opinion wrong. I have checked that this is true for all kind of ... build steps in relationship with execute shell.

      I have added the output of the console which shows this behaviour:

      00:00:00.002 Started by user khmarbaise
      00:00:00.003 [EnvInject] - Loading node environment variables.
      00:00:00.004 Building on master in workspace /opt/build/jenkins/workspace/test-release
      00:00:00.011 [test-release] $ /bin/sh -xe /tmp/hudson1223783551402627107.sh
      00:00:00.030 + exit 1
      00:00:00.032 ERROR: Failed to parse POMs
      

      The exit 1 is from the pre release step and the ERROR: Failed to parse POMs is from the build step which should never being executed in case of the exit 1.

        Attachments

          Activity

          Hide
          khmarbaise Karl-Heinz Marbaise added a comment -

          Hi,
          after diving into this problem i found out the problem is located not in release plugin.

          00:00:25.702 ERROR: Failed to parse POMs
          00:00:25.702 java.io.IOException: Could not execute pre-build steps
          00:00:25.703 	at hudson.plugins.release.ReleaseWrapper.setUp(ReleaseWrapper.java:261)
          00:00:25.703 	at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:653)
          00:00:25.703 	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:533)
          00:00:25.703 	at hudson.model.Run.execute(Run.java:1759)
          00:00:25.703 	at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:529)
          00:00:25.703 	at hudson.model.ResourceController.execute(ResourceController.java:89)
          00:00:25.703 	at hudson.model.Executor.run(Executor.java:240)
          

          This gives me the hint the release plugin correctly realized a problem during the pre release steps, but unfortunately the error message is not very clear and could be improved which is a different story.

          Show
          khmarbaise Karl-Heinz Marbaise added a comment - Hi, after diving into this problem i found out the problem is located not in release plugin. 00:00:25.702 ERROR: Failed to parse POMs 00:00:25.702 java.io.IOException: Could not execute pre-build steps 00:00:25.703 at hudson.plugins.release.ReleaseWrapper.setUp(ReleaseWrapper.java:261) 00:00:25.703 at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:653) 00:00:25.703 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:533) 00:00:25.703 at hudson.model.Run.execute(Run.java:1759) 00:00:25.703 at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:529) 00:00:25.703 at hudson.model.ResourceController.execute(ResourceController.java:89) 00:00:25.703 at hudson.model.Executor.run(Executor.java:240) This gives me the hint the release plugin correctly realized a problem during the pre release steps, but unfortunately the error message is not very clear and could be improved which is a different story.
          Hide
          khmarbaise Karl-Heinz Marbaise added a comment -

          After checking this is not a bug.

          Show
          khmarbaise Karl-Heinz Marbaise added a comment - After checking this is not a bug.

            People

            • Assignee:
              khmarbaise Karl-Heinz Marbaise
              Reporter:
              khmarbaise Karl-Heinz Marbaise
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: