• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • None
    • parameterized-trigger-plugin version 2.11
      Jenkins ver. 1.436

      Steps to reproduce

      • Create a job and add a new "Trigger/call builds on other projects" step
      • For the "Projects to build" parameter, give a project name that is parameterized
      • Run the job once with one set of parameters --> correct project is executed
      • Run the job again with another set of parameters --> same project as before is executed, instead of the new one

      For example

      • I have jobs with names of the form ${SELECTED_PROJECT}-war-${CODE_VERSION}, e.g. datatool-war-trunk, chat-war-qa, etc
      • I create another job with SELECTED_PROJECT and CODE_VERSION as parameters
      • Within this job, I add a parameterized trigger step with ${SELECTED_PROJECT}-war-${CODE_VERSION} as the project name
      • I run the build once with SELECTED_PROJECT=datatool,CODE_VERSION=trunk
        • datatool-war-trunk is executed as expected
      • I run the build again with SELECTED_PROJECT=chat,CODE_VERSION=qa
        • datatool-war-trunk is triggered--NOT chat-war-qa as expected

      Possible fix

      I'm able to fix this by removing the "caching" for projectList within BuildTriggerConfig.java: see here

          [JENKINS-11556] Project list is not updated between builds

          Jessica Austin created issue -
          Jessica Austin made changes -
          Assignee Original: Fred G [ fredg ] New: Jessica Austin [ livermouse ]
          Description Original: *Steps to reproduce:*

          Set up one blocking trigger builder config in one trigger buildstep that triggers three projects ("project1, project2, project3").

          *Expected console log output should be:*

          {code}
          Started by user SYSTEM
          Waiting for the completion of project1
          project1 #1 completed. Result was SUCCESS
          Waiting for the completion of project2
          project2 #1 completed. Result was SUCCESS
          Waiting for the completion of project3
          project3 #1 completed. Result was SUCCESS
          Finished: SUCCESS
          {code}

          *Actual output:*

          {code}
          Started by user SYSTEM
          Waiting for the completion of project1
          project1 #1 completed. Result was SUCCESS
          Waiting for the completion of project1
          project2 #1 completed. Result was SUCCESS
          Waiting for the completion of project1
          project3 #1 completed. Result was SUCCESS
          Finished: SUCCESS
          {code}

          It might be better to show all the projects that are not yet completed, instead of just the next one.

          *Example:*

          {code}
          Started by user SYSTEM
          Waiting for the completion of project1, project2, project3
          project1 #1 completed. Result was SUCCESS
          Waiting for the completion of project2, project3
          project2 #1 completed. Result was SUCCESS
          Waiting for the completion of project3
          project3 #1 completed. Result was SUCCESS
          Finished: SUCCESS
          {code}
          Environment Original: parameterized-trigger-plugin version 2.10 New: parameterized-trigger-plugin version 2.11
          Priority Original: Minor [ 4 ] New: Major [ 3 ]
          Jessica Austin made changes -
          Attachment New: Screen shot 2011-10-29 at 3.10.43 PM.png [ 20983 ]
          Description New: h3. Steps to reproduce
          * Create a job and add a new "Trigger/call builds on other projects" step
          * For the "Projects to build" parameter, give a project name that is parameterized
          * Run the job once with one set of parameters --> correct project is executed
          * Run the job again with another set of parameters --> same project as before is executed, instead of the new one

          h3. For example
          * I have jobs with names of the form {{$\{SELECTED_PROJECT\}\-war\-$\{CODE_VERSION\}}}, e.g. datatool-war-trunk, chat-war-qa, etc
          * I create another job with {{SELECTED_PROJECT}} and {{CODE_VERSION}} as parameters
          * Within this job, I add a parameterized trigger step with {{$\{SELECTED_PROJECT\}\-war\-$\{CODE_VERSION\}}} as the project name
          * I run the build once with {{SELECTED_PROJECT=datatool,CODE_VERSION=trunk}}
          ** datatool-war-trunk is executed as expected
          * I run the build again with {{SELECTED_PROJECT=chat,CODE_VERSION=qa}}
          ** datatool-war-trunk is triggered--NOT chat-war-qa as expected

          h3. Possible fix
          I'm able to fix this by removing the "caching" for projectList within BuildTriggerConfig.java: see [here|https://github.com/jenkinsci/parameterized-trigger-plugin/blob/master/src/main/java/hudson/plugins/parameterizedtrigger/BuildTriggerConfig.java#L90]
          Environment Original: parameterized-trigger-plugin version 2.11 New: parameterized-trigger-plugin version 2.11
          Jenkins ver. 1.436
          Jessica Austin made changes -
          Assignee Original: Jessica Austin [ livermouse ]
          cjo9900 made changes -
          Assignee New: cjo9900 [ cjo9900 ]
          cjo9900 made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 141783 ] New: JNJira + In-Review [ 189818 ]

            cjo9900 cjo9900
            livermouse Jessica Austin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: