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

Expand variables in Freestyle job 'local subdirectory' field

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • git-plugin
    • None
    • Jenkins 1.609.3
      GIT plugin 2.4.0
      GIT client plugin 1.19.0

      I wanted to see where, when and how I could make use of GIT_BRANCH in a job that tracks multiple branches. Branch specifier is set to 'origin/topic/*', which matches two branches - 'parallel_1' and 'parallel_2'. In the additional behaviors section, I specified '${GIT_BRANCH}' as local subdirectory for repo.

      I start the job manually and it triggers two builds - one for each matching branch. However, my workspace contains two directories called '${GIT_BRANCH}' (from build #1 for parallel_1 branch) and 'parallel_1' (from build #2 for parallel_2 branch).

      I would expect GIT_BRANCH to be used consistently - either correctly all the time or never.

          [JENKINS-30339] Expand variables in Freestyle job 'local subdirectory' field

          There are no comments yet on this issue.

            Unassigned Unassigned
            tba T.B. Anton
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: