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

Conditional step is not being executed by UserCause

    Details

    • Similar Issues:

      Description

      When a conditional step is created on a job with the conditional being Build Cause (UserCause), the step is not executed even if the build was triggered manually by a User.

      Steps to reproduce:

      • Create a new freestyle job
      • Add a conditional step with Build Cause (UserCause) to performe some action (echo something with batch for example)
      • Trigger the build manually.

      The step is not executed.

      The attachments show the job configuration and actual console output and a similar job with another Build Cause (TimerTrigger) showing the step working.

      I am not sure if this problem is related to the conditional-buildstep plugin or run-condition, so I added both in the issue.

        Attachments

        1. timer-config.png
          timer-config.png
          22 kB
        2. timer-console-output.png
          timer-console-output.png
          25 kB
        3. user-config.png
          user-config.png
          23 kB
        4. user-console-output.png
          user-console-output.png
          16 kB

          Activity

          Hide
          domi Dominik Bartholdi added a comment -

          please give me some hints on the versions of the plugins and core you are using.

          Show
          domi Dominik Bartholdi added a comment - please give me some hints on the versions of the plugins and core you are using.
          Hide
          domi Dominik Bartholdi added a comment -

          I think your Jenkins version is > 1.427, if so then this is fixed with version 0.10 of the run-condition-plugin
          please reopen if this is not the case...

          Show
          domi Dominik Bartholdi added a comment - I think your Jenkins version is > 1.427, if so then this is fixed with version 0.10 of the run-condition-plugin please reopen if this is not the case...
          Hide
          lluccia Leandro Conca added a comment -

          Yes, my Jenkins is 1.465 and run-condition-plugin is 0.9.

          Also tested in older Jenkins version, but greater than 1.427.

          I will test as soon as the version 0.10 is released.

          Thanks

          Show
          lluccia Leandro Conca added a comment - Yes, my Jenkins is 1.465 and run-condition-plugin is 0.9. Also tested in older Jenkins version, but greater than 1.427. I will test as soon as the version 0.10 is released. Thanks
          Hide
          lluccia Leandro Conca added a comment -

          I just confirmed that it is working now on version 0.10 of run-condition-plugin.

          Thanks!

          Show
          lluccia Leandro Conca added a comment - I just confirmed that it is working now on version 0.10 of run-condition-plugin. Thanks!

            People

            • Assignee:
              domi Dominik Bartholdi
              Reporter:
              lluccia Leandro Conca
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: