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

On evaluation failure is not being honored

    XMLWordPrintable

Details

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

    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

        Issue Links

          Activity

            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.

            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.
            danielbeck Daniel Beck added a comment -

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

            danielbeck Daniel Beck added a comment - Workaround: Add another conditional buildstep with inverted condition that runs a shell/batch step with exit 1 .
            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)

            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

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

              Dates

                Created:
                Updated:
                Resolved: