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

Generator triggers the build step using "conditional build step"

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      I'm trying to generate jobs that contain a build step of "conditional build step" which calls for a downstream trigger of another job. It seems that instead of including this build step in the output jobs, the generate triggers the downsteam job and the generated job does not contain this step at all.

      I have a "trigger/call builds on other projects" build step that gets put in the generated job just fine. It seems to be a problem with the "conditional build step" plugin or task.

        Attachments

          Activity

          Hide
          syl20bnr Sylvain Benner added a comment -

          Conditional build steps are resolved at generation time, the build step is not generated because the job generator thinks that the condition is always false. There may be a bug in the resolution.

          Can you provide a sample configuration reproducing this behavior ?
          Thank you.

          Show
          syl20bnr Sylvain Benner added a comment - Conditional build steps are resolved at generation time, the build step is not generated because the job generator thinks that the condition is always false. There may be a bug in the resolution. Can you provide a sample configuration reproducing this behavior ? Thank you.
          Hide
          walterk82 Walter Kacynski added a comment -

          Please see the attache job configs. The AA_Generate triggers the process.

          Show
          walterk82 Walter Kacynski added a comment - Please see the attache job configs. The AA_Generate triggers the process.
          Hide
          syl20bnr Sylvain Benner added a comment -

          Great I'll look into this during the week. Thank you.

          Show
          syl20bnr Sylvain Benner added a comment - Great I'll look into this during the week. Thank you.
          Hide
          syl20bnr Sylvain Benner added a comment -

          I fixed the bug and I'm just about to release the 1.16.
          The fix is in 2 parts:

          • correctly keep the build step in the generated job
          • remove the trigger of freestyle jobs when they are part of a job generator hierarchy. If the job triggered in a conditional build step is a job generator then it will be correctly executed as expected.
          Show
          syl20bnr Sylvain Benner added a comment - I fixed the bug and I'm just about to release the 1.16. The fix is in 2 parts: correctly keep the build step in the generated job remove the trigger of freestyle jobs when they are part of a job generator hierarchy. If the job triggered in a conditional build step is a job generator then it will be correctly executed as expected.
          Hide
          walterk82 Walter Kacynski added a comment -

          This problem has been fixed.

          Show
          walterk82 Walter Kacynski added a comment - This problem has been fixed.

            People

            • Assignee:
              syl20bnr Sylvain Benner
              Reporter:
              walterk82 Walter Kacynski
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: