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

Multijob runs one parameterized child job instead of running multiple child jobs with different parameters

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • multijob-plugin
    • None
    • Jenkins 2.7.4
      Multijob plugin 1.22
      Environment Injector Plugin 1.92.1
      Matrix Project Plugin 1.7.1
      Parameterized Trigger plugin 2.32
      Token Macro Plugin 2.0
      Conditional BuildStep 1.3.5
      Maven Integration plugin 2.13

      Precondition

      Job name Input parameters Child jobs Input parameters of child jobs
      A a B, C a=$a
      B a D a=$a, b=1
      C a D a=$a, b=2
      D a, b    

      See jobs B,C in attachment.

      Steps

      1. Run A

      Expected result

      Job D runs twice. Each run with different parameters.

      Actual result

      Job D runs once. In the log of job D something like the following:

      Started by upstream project "B" build number 80
      originally caused by:
       Started by upstream project "A" build number 7
         originally caused by:
          Started by user user
      Started by upstream project "C" build number 80
      originally caused by:
       Started by upstream project "A" build number 7
         originally caused by:
          Started by user user
      

      Additional info

      Statistics example: 11 runs of job D instead of expected 40.

        1. ~worker-config.xml
          2 kB
        2. ~X1-to-X5-config.xml
          3 kB
        3. ~X-config.xml
          7 kB
        4. job-builds-merged.png
          job-builds-merged.png
          34 kB
        5. MultijobBC.png
          MultijobBC.png
          85 kB
        6. multijob-structure.png
          multijob-structure.png
          23 kB

          [JENKINS-38850] Multijob runs one parameterized child job instead of running multiple child jobs with different parameters

          Victor Ott added a comment -

          Changed priority to blocker, because builds are skipped when this bug triggers, without any notice.

          Victor Ott added a comment - Changed priority to blocker, because builds are skipped when this bug triggers, without any notice.

          Victor Ott added a comment -

          I've created a pull request, containing a test reproducing the issue:
          https://github.com/jenkinsci/tikal-multijob-plugin/pull/106

          Victor Ott added a comment - I've created a pull request, containing a test reproducing the issue: https://github.com/jenkinsci/tikal-multijob-plugin/pull/106

          Oleg Nenashev added a comment -

          Working on the fix

          Oleg Nenashev added a comment - Working on the fix

          Oleg Nenashev added a comment -

          Another pull-request with the fix and direct unit tests: https://github.com/jenkinsci/tikal-multijob-plugin/pull/115

          Oleg Nenashev added a comment - Another pull-request with the fix and direct unit tests:  https://github.com/jenkinsci/tikal-multijob-plugin/pull/115

          Code changed in jenkins
          User: Oleg Nenashev
          Path:
          src/main/java/com/tikal/jenkins/plugins/multijob/MultiJobParametersAction.java
          src/test/java/com/tikal/jenkins/plugins/multijob/test/MultiJobParametersActionTest.java
          http://jenkins-ci.org/commit/tikal-multijob-plugin/e259f896bb1fb07ae3ebc02bb51f0231e063a7ab
          Log:
          [FIXED JENKINS-38850] - Pass params to ParametersAction to fix shouldSchedule()

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Oleg Nenashev Path: src/main/java/com/tikal/jenkins/plugins/multijob/MultiJobParametersAction.java src/test/java/com/tikal/jenkins/plugins/multijob/test/MultiJobParametersActionTest.java http://jenkins-ci.org/commit/tikal-multijob-plugin/e259f896bb1fb07ae3ebc02bb51f0231e063a7ab Log: [FIXED JENKINS-38850] - Pass params to ParametersAction to fix shouldSchedule()

          Oleg Nenashev added a comment -

          The fix has been finally released in MultiJob 1.25. Though the changelog on Wiki has not been updated yet

          Oleg Nenashev added a comment - The fix has been finally released in MultiJob 1.25. Though the changelog on Wiki has not been updated yet

          Not sure but the plugin updated 1.24 -> 1.27 (with jenkins and other updates) and no failing to OOM for heap

          Heikki Simperi added a comment - Not sure but the plugin updated 1.24 -> 1.27 (with jenkins and other updates) and no failing to OOM for heap

          Oleg Nenashev added a comment -

          heikkisi Please create a new ticket. I doubt OOM is related to this change

          Oleg Nenashev added a comment - heikkisi Please create a new ticket. I doubt OOM is related to this change

          oleg_nenashev I made a comment on adding new related to link between this and OOM issue. But I now have tested older version (1.24) and having same problem so I deleted the link between this and JENKINS-46120

          Heikki Simperi added a comment - oleg_nenashev  I made a comment on adding new related to link between this and OOM issue. But I now have tested older version (1.24) and having same problem so I deleted the link between this and  JENKINS-46120 . 

          Code changed in jenkins
          User: Chen Cohen
          Path:
          src/main/java/com/tikal/jenkins/plugins/multijob/MultiJobParametersAction.java
          http://jenkins-ci.org/commit/tikal-multijob-plugin/92efcf338c8b9ed9eacc314cc8cbd1efbdd1bfd3
          Log:
          Revert "JENKINS-38850 - Add migration logic for actions loaded from the disk"

          This reverts commit 77f4ede1baf4d2bc8817c46c06159ef5068497e0.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Chen Cohen Path: src/main/java/com/tikal/jenkins/plugins/multijob/MultiJobParametersAction.java http://jenkins-ci.org/commit/tikal-multijob-plugin/92efcf338c8b9ed9eacc314cc8cbd1efbdd1bfd3 Log: Revert " JENKINS-38850 - Add migration logic for actions loaded from the disk" This reverts commit 77f4ede1baf4d2bc8817c46c06159ef5068497e0.

            oleg_nenashev Oleg Nenashev
            dshiryaev_plesk Dmitrii Shiriaev
            Votes:
            4 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: