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

Lightweight checkout breaks variable expansion for GIT branch

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Component/s: branch-api-plugin
    • Labels:
      None
    • Environment:
      Windows 10
      Jenkins 2.277.1
      jenkinsfile
    • Similar Issues:

      Description

      (As always, I have no idea what component to select. Why do you ask an lay person like me to pick a component? Only a Jenkins developer knows what components there are and how to assign to one.)

      The issue I'm having is the same (or very similar) to JENKINS-42971 and JENKINS-28447. Both are marked resolved. But happens for me and I'm using latest version of Jenkins.

      As described in 42971 I have param named GIT_BRANCH and for the git repo setup I have the branch set to ${GIT_BRANCH}. Without lightweight checkout, this works as I want; the branch specified by the parameter value is checked out. But, with lightweight checkout selected, it tries to checkout branch "${GIT_BRANCH}" which is not what I want nor does it exist.

       

        Attachments

          Activity

          There are no comments yet on this issue.

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            sbroshar steve
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: