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

git plugin sparse checkout path field does not expand variables

    • 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.

          [JENKINS-23477] git plugin sparse checkout path field does not expand variables

          Charlie Stott created issue -
          Mark Waite made changes -
          Component/s Original: git-client [ 17423 ]
          Thomas Wabner made changes -
          Priority Original: Minor [ 4 ] New: Major [ 3 ]
          Aaron D. Marasco made changes -
          Link New: This issue is related to JENKINS-27508 [ JENKINS-27508 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 156106 ] New: JNJira + In-Review [ 179218 ]
          Monkey Little made changes -
          Attachment New: Capture.JPG [ 38708 ]
          Mark Waite made changes -
          Link New: This issue is related to JENKINS-49758 [ JENKINS-49758 ]
          Nicolas De Loof made changes -
          Assignee Original: Nicolas De Loof [ ndeloof ]
          Mark Waite made changes -
          Labels New: newbie-friendly
          Mark Waite made changes -
          Summary Original: git-client-plugin sparse checkout path field does not expand variables New: git plugin sparse checkout path field does not expand variables
          Yash Amrut Jain made changes -
          Assignee New: Yash Amrut Jain [ yashj21 ]

            yashj21 Yash Amrut Jain
            charlie_ecc Charlie Stott
            Votes:
            18 Vote for this issue
            Watchers:
            18 Start watching this issue

              Created:
              Updated:
              Resolved: