git plugin sparse checkout path field does not expand variables

This issue is archived. You can view it, but you can't modify it. Learn more

    • git client plugin 4.0.0

      I have carefully named my project paths and folders so I can use JOB_NAME substitutions when cloning templates to create new jobs. All I have to do is copy a similar test (selenium/jmeter/junit/etc) and set the name of the job.

      I just started using sparse checkout feature of git-client, to reduce the workspace bloat.

      I want to use variable substitution to checkout the path 'test/${JOB_NAME}'.

      The ${JOB_NAME} is not expanding, I get an error from the git-client, and the checkout fails. When I hardcode the jobname in the sparse checkout path field, it all works beautifully.

            Assignee:
            Yash Amrut Jain
            Reporter:
            Charlie Stott
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: