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

Load Options load directory doesn't substitute a parameter

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • teamconcert-plugin
    • None
    • Running on RHEL 7. Jenkins 2.121.2. Team Concert Plugin 1.2.0.5

      The issue is with the Load Directory entry in the Load Options section of the SCM tab for the parameterized job I have defined.  The job has a parameter named rtc-workspace.  I want to specify ${rtc-workspace} as the load directory and have the actual directory be the substituted value for the parameter.

      The plugin is not performing this substitution.

          [JENKINS-52942] Load Options load directory doesn't substitute a parameter

          Related to this, possibly a separate issue, the Poll SCM support does not substitute the build parameter for the workspace/stream name either.

          This issue is a big problem for me because my team develops in multiple streams.  I don't want to create/maintain different Jenkins jobs for each such stream.  I want one job that does the thing I need it to do using the stream/workspace I specify in the build parameter.

          John Czukkermann added a comment - Related to this, possibly a separate issue, the Poll SCM support does not substitute the build parameter for the workspace/stream name either. This issue is a big problem for me because my team develops in multiple streams.  I don't want to create/maintain different Jenkins jobs for each such stream.  I want one job that does the thing I need it to do using the stream/workspace I specify in the build parameter.

          Joe Muro added a comment -

          It seems that RTC plugin has no support for parameterized builds. I tried substituting a parameter for the workspace and load directory with no success.

          Joe Muro added a comment - It seems that RTC plugin has no support for parameterized builds. I tried substituting a parameter for the workspace and load directory with no success.

          loadDirectory field is not parameterizable in freestyle builds.

          However, stream,snapshot, build definition and repository workspace fields are parameterizable and it works with Polling too (provided you have provided a default value for these parameters). See https://wiki.jenkins.io/display/JENKINS/Team+Concert+Plugin#TeamConcertPlugin-1.2.0.1Aug16,2016

           

          Lakshmi Narasimhan Vaikuntam added a comment - loadDirectory field is not parameterizable in freestyle builds. However, stream,snapshot, build definition and repository workspace fields are parameterizable and it works with Polling too (provided you have provided a default value for these parameters). See https://wiki.jenkins.io/display/JENKINS/Team+Concert+Plugin#TeamConcertPlugin-1.2.0.1Aug16,2016  

          Also occurs with TC Plugin 2.4.1 in Jenkins 2.375.4.  Freestyle job.

          John "Woody" Woodruff added a comment - Also occurs with TC Plugin 2.4.1 in Jenkins 2.375.4.  Freestyle job.

            lvaikunt Lakshmi Narasimhan Vaikuntam
            jlczuk John Czukkermann
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: