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

Post build task ignores previous task failure

    XMLWordPrintable

Details

    Description

      I have several Post build tasks in one Conditional action (Always). All of these tasks have these checked:

      • Run script only if all previous steps were successful
      • Escalate script execution status to job status

      One of these failed, and so the job failed, but the rest of the Post build tasks still ran. That is not what I expect to happen - seems like a bug to me.

      Could not match :There was an error while executing a query. : False
      Match found for :for complete error details : True
      Logical operation result is TRUE
      Running script : MySQLSyncFailure
      [workspace] $ cmd /c call C:\Users\NETWOR~1\AppData\Local\Temp\hudson5148263034762842144.bat

      C:\Jenkins\jobs\Intranet-Deploy\workspace>MySQLSyncFailure
      'MySQLSyncFailure' is not recognized as an internal or external command,
      operable program or batch file.

      C:\Jenkins\jobs\Intranet-Deploy\workspace>exit 9009
      *POST BUILD TASK : FAILURE
      END OF POST BUILD TASK : 2
      ESCALATE FAILED POST BUILD TASK TO JOB STATUS*
      Match found for :BUILD SUCCESSFUL : True
      Logical operation result is TRUE
      Running script : c:\Scripts\RobocopyWrapper.exe c:\intranet-phinx \\intranet.pridedallas.com\c$\intranet-phinx /MIR /NS /NC /NFL /NDL /NP
      c:\Scripts\RobocopyWrapper.exe "%WORKSPACE%" \\intranet.pridedallas.com\inetpub\wwwroot /MIR /NS /NC /NFL /NDL /NP
      [workspace] $ cmd /c call C:\Users\NETWOR~1\AppData\Local\Temp\hudson8507112162448117925.bat

      C:\Jenkins\jobs\Intranet-Deploy\workspace>c:\Scripts\RobocopyWrapper.exe c:\intranet-phinx \\intranet.pridedallas.com\c$\intranet-phinx /MIR /NS /NC /NFL /NDL /NP

      C:\Jenkins\jobs\Intranet-Deploy\workspace>c:\Scripts\RobocopyWrapper.exe "C:\Jenkins\jobs\Intranet-Deploy\workspace" \\intranet.pridedallas.com\inetpub\wwwroot /MIR /NS /NC /NFL /NDL /NP

      C:\Jenkins\jobs\Intranet-Deploy\workspace>exit 0
      POST BUILD TASK : SUCCESS
      END OF POST BUILD TASK : 3

      Attachments

        Activity

          ikedam ikedam added a comment -

          I could reproduce the problem even without flexible-publish.
          It looks an issue of postbuild-task plugin.

          Anyway, postbuild-task doesn't work correct with flexible-publish.
          See JENKINS-23952 for details.

          ikedam ikedam added a comment - I could reproduce the problem even without flexible-publish. It looks an issue of postbuild-task plugin. Anyway, postbuild-task doesn't work correct with flexible-publish. See JENKINS-23952 for details.

          People

            Unassigned Unassigned
            laurin1 Keith Davis
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: