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

Conditional build step plugin does not mark build a s unstable

    XMLWordPrintable

Details

    Description

      "Conditional build step-single" shows nice field:
      "On evaluation failure" with options "Fail the build" or mark build as unstable.

      Unfortunatly this is not working.
      Example 1
      Run? = Never
      On evaluation failure = "Mark the build unstable"
      Builder = "Execute windows batch command"
      Command = "echo run builder"

      It should mark all builds as unstable and not run the builder.
      It does not run builder but does not mark build as unstable.

      Example 2 - more reliable
      Run? = Execute Windows batch Command
      Command = which notinpath
      On evaluation failure = "Mark the build unstable"
      Builder = "Execute Windows batch Command"
      Command = echo builder

      notinpath is not in my path, so evaluation should fail - it does.
      Build should be marked as unstable - it is not.
      Echo builder should not be runned - it is not.

      It Shouls mark all builds as unstable - but it does not.

      Attachments

        Issue Links

          Activity

            fantastory Roman Wieczorek created issue -
            fantastory Roman Wieczorek made changes -
            Field Original Value New Value
            Link This issue duplicates JENKINS-14296 [ JENKINS-14296 ]
            fantastory Roman Wieczorek made changes -
            Link This issue is related to JENKINS-14068 [ JENKINS-14068 ]
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 171175 ] JNJira + In-Review [ 184207 ]
            ajaydwarkani Ajay Kumar made changes -
            Attachment image-2020-10-21-10-21-51-501.png [ 53010 ]
            ajaydwarkani Ajay Kumar made changes -
            Attachment image-2020-10-21-10-21-51-501.png [ 53010 ]
            ajaydwarkani Ajay Kumar made changes -
            Attachment image-2020-10-21-10-22-42-906.png [ 53011 ]
            cdlehman Curtis made changes -
            Link This issue blocks JENKINS-24242 [ JENKINS-24242 ]
            imod Dominik Bartholdi made changes -
            Assignee Dominik Bartholdi [ domi ]

            People

              Unassigned Unassigned
              fantastory Roman Wieczorek
              Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated: