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

On evaluation failure is not being honored

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Not A Defect
    • Labels:
      None
    • Environment:
      Ubuntu 12.04
      Jenkins official debian package 1.575
      Conditional buildstep plugin 1.3.3
    • Similar Issues:

      Description

      I'm testing this plugin and the string comparisson I'm doing seems to work fine.

      However I would like to cancel the build if the comparisson doesn't match. It actually cancels the build but it always ends as Success. I've tried the "on evaluation failure" options "falid the build" and "mark the build unstable" but it always ends as success.

      Although the build is actually cancelled I would really need it to be marked as failed so it doesn't cause confussion to the person executing the build.

      This is the text it appears in the output:


      Run condition [Strings match] preventing perform for step [BuilderChain]
      Finished: SUCCESS

      Thanks

        Attachments

          Activity

          Hide
          danielbeck Daniel Beck added a comment -

          Not a defect:

          "Evaluation failure" means that an error occurs when testing the condition (e.g. matching a syntactically invalid regular expression). This is different from match / mismatch of the string.

          Show
          danielbeck Daniel Beck added a comment - Not a defect: "Evaluation failure" means that an error occurs when testing the condition (e.g. matching a syntactically invalid regular expression). This is different from match / mismatch of the string.
          Hide
          danielbeck Daniel Beck added a comment -

          Workaround: Add another conditional buildstep with inverted condition that runs a shell/batch step with exit 1.

          Show
          danielbeck Daniel Beck added a comment - Workaround: Add another conditional buildstep with inverted condition that runs a shell/batch step with exit 1 .
          Hide
          sushijason Jason Tsai added a comment -

          is it possible for me to mark the status as "ABORTED" or "SKIPPED" (show a grey ball in status) instead of the default "SUCCESS"? (blue ball)

          Show
          sushijason Jason Tsai added a comment - is it possible for me to mark the status as "ABORTED" or "SKIPPED" (show a grey ball in status) instead of the default "SUCCESS"? (blue ball)

            People

            • Assignee:
              domi Dominik Bartholdi
              Reporter:
              luisico Luis Bosque
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: