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

Job generator parameters are not resolved correctly for normal build steps

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • jobgenerator-plugin
    • None
    • Jenkins 1.550
      Job Generator 1.20
      Debian Wheezy

      Using a normal "build" step > "Trigger/call builds on other projects"
      and "Predefined Generator parametes" then the parameters are not resolved
      correctly.
      For example if I use "LANGUAGE" as generator parameter and set it to EN the
      generated job will be "${LANGUAGE}_C" using "${LANGUAGE}_C" as "Generated
      Job Name". Expected name is "EN_C".

      Using "File Generator Parameter Factory" also resulted in one "${LANGUAGE}_C" job.

      See also:
      https://groups.google.com/forum/#!searchin/jenkinsci-users/parameter$20factories/jenkinsci-users/MmQFuTuimts/9hEzihMTgAcJ

          [JENKINS-21742] Job generator parameters are not resolved correctly for normal build steps

          Hi Balázs,

          Thank you for creating the issue, I will look into it.

          Sylvain Benner added a comment - Hi Balázs, Thank you for creating the issue, I will look into it.

          Gigi Lentini added a comment - - edited

          Hi,
          any updates on this issue?

          I have noticed the same problem, while designing a CI pipeline where a 'master' job is waiting (so it is blocked) for other's job completions.
          That's why I would like to use the build" step > "Trigger/call builds on other projects" to call a generator.
          I have installed the latest plugin version on Jenkins 1.554.1.

          Thanks.

          Gigi Lentini added a comment - - edited Hi, any updates on this issue? I have noticed the same problem, while designing a CI pipeline where a 'master' job is waiting (so it is blocked) for other's job completions. That's why I would like to use the build" step > "Trigger/call builds on other projects" to call a generator. I have installed the latest plugin version on Jenkins 1.554.1. Thanks.

          Timm Drevensek added a comment - - edited

          This is only the case if you are within a Generator Project.

          In this project it seems it does not evaluate any Predefined Generator parameters from a Trigger/call builds on other projects step within the Build section.
          Workarround is to define Generator Parameters as Job Parameter or to place trigger within the Post-Build action but than you cannot block.

          So you cannot have a generator project, generating a project that triggers a parameterized generator.

          Timm Drevensek added a comment - - edited This is only the case if you are within a Generator Project . In this project it seems it does not evaluate any Predefined Generator parameters from a Trigger/call builds on other projects step within the Build section. Workarround is to define Generator Parameters as Job Parameter or to place trigger within the Post-Build action but than you cannot block. So you cannot have a generator project, generating a project that triggers a parameterized generator.

          Ju Ba added a comment -

          Hi,

          do you know if this problem is already planned to be fixed in the next release?

          Thanks in advance!

          Ju Ba added a comment - Hi, do you know if this problem is already planned to be fixed in the next release? Thanks in advance!

            syl20bnr Sylvain Benner
            adamisb Balázs Adamis
            Votes:
            3 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: