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

Current build status condition always shown as success

    Details

    • Similar Issues:

      Description

      I would like my job to run only when the previous execution was successful.

      To do so, I've tried to use the Current build status condition and set the Worst and Best statuses to Sucess. When the job is invoked (periodic execution) the plugin will always return that the current status is Success (as shown below) even though the last\previous build failed.

      Run condition [Current build status] enabling prebuild for step [BuilderChain]
      No emails were triggered.
      [Current build status] check if current [SUCCESS] is worse or equals then [SUCCESS] and better or equals then [SUCCESS]
      Run condition [Current build status] enabling perform for step [BuilderChain]

      Am I doing something wrong? Do I need to configure anything at the server level?

        Attachments

          Activity

          asher Asher Karadi created issue -
          asher Asher Karadi made changes -
          Field Original Value New Value
          Component/s conditional-buildstep-plugin [ 15947 ]
          asher Asher Karadi made changes -
          Description I would like my job to run only when the previous execution was successful.

          To do so, I've tried to use the Current build status condition and set the Worst and Best statuses to Sucess. When the job is invoked (periodic execution) the plugin will always return that the current status is Success (as shown below) even though the last\previous build failed.
          Run condition [Current build status] enabling prebuild for step [BuilderChain]
          No emails were triggered.
          [Current build status] check if current [SUCCESS] is worse or equals then [SUCCESS] and better or equals then [SUCCESS]
          Run condition [Current build status] enabling perform for step [BuilderChain]
          Am I doing something wrong? Do I need to configure anything at the server level?
          I would like my job to run only when the previous execution was successful.

          To do so, I've tried to use the Current build status condition and set the Worst and Best statuses to Sucess. When the job is invoked (periodic execution) the plugin will always return that the current status is Success (as shown below) even though the last\previous build failed.
          {quote}Run condition [Current build status] enabling prebuild for step [BuilderChain]
           No emails were triggered.
          [Current build status] check if current [SUCCESS] is worse or equals then [SUCCESS] and better or equals then [SUCCESS]
           Run condition [Current build status] enabling perform for step [BuilderChain]
          {quote}
          Am I doing something wrong? Do I need to configure anything at the server level?
          Hide
          henry_lee Henry Lee added a comment -

          Yes, this is a problem for me too. Jenkins version 2.73.2.

          Show
          henry_lee Henry Lee added a comment - Yes, this is a problem for me too. Jenkins version 2.73.2.

            People

            • Assignee:
              bap bap
              Reporter:
              asher Asher Karadi
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: