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

Job generator parameters are not resolved correctly for normal build steps

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Component/s: jobgenerator-plugin
    • Labels:
      None
    • Environment:
      Jenkins 1.550
      Job Generator 1.20
      Debian Wheezy
    • Similar Issues:

      Description

      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

        Attachments

          Activity

          Hide
          syl20bnr Sylvain Benner added a comment -

          Hi Balázs,

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

          Show
          syl20bnr Sylvain Benner added a comment - Hi Balázs, Thank you for creating the issue, I will look into it.
          Hide
          lentini 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.

          Show
          lentini 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.
          Hide
          abubadabu 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.

          Show
          abubadabu 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.
          Hide
          juba 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!

          Show
          juba 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!

            People

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

              Dates

              Created:
              Updated: