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

Environment variables not resolved in Pipeline SCM -> Advanced sub-modules behaviours -> Path of the reference repo

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • git-plugin
    • None
    • Jenkins 2.286, Git plugin 4.7.1

      A similar issue/improvement JENKINS-43894 has been reported and fixed for refeference repository path during clone, so it's expected that the reference repository path of submodules also expands the node's environment.

      Adding an environment variable to the build node configuration, and then setting the reference repository path under "Advanced sub-modules behaviours" in the job configuration gives following output in the checkout log:

      [WARNING] Reference path does not exist: ${REFREPO_PATH}/my_refrepo.git

          [JENKINS-65315] Environment variables not resolved in Pipeline SCM -> Advanced sub-modules behaviours -> Path of the reference repo

          Sixten created issue -
          Sixten made changes -
          Description Original: A similar issue/improvement JENKINS-43894 has been reported and fixed for refeference repository path during clone, so it's expected that the reference repository path of submodules also expands the node's environment.

          Adding an environment variable to the build node configuration, and then setting the reference repository path under "Advanced sub-modules behaviours" in the job configuration gives following output in the checkout log:
          [WARNING] Reference path does not exist: ${REFREPO_PATH}/my_refrepo.git
           
          New: A similar issue/improvement JENKINS-43894 has been reported and fixed for refeference repository path during clone, so it's expected that the reference repository path of submodules also expands the node's environment.

          Adding an environment variable to the build node configuration, and then setting the reference repository path under "Advanced sub-modules behaviours" in the job configuration gives following output in the checkout log:
          {noformat}
          [WARNING] Reference path does not exist: ${REFREPO_PATH}/my_refrepo.git{noformat}
          Sixten made changes -
          Link New: This issue relates to JENKINS-43894 [ JENKINS-43894 ]
          Mark Waite made changes -
          Assignee Original: Mark Waite [ markewaite ]
          Christoph Vogtländer made changes -
          Assignee New: Christoph Vogtländer [ gordin ]

            gordin Christoph Vogtländer
            sixten Sixten
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: