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

Lightweight checkout breaks variable expansion for GIT branch

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Minor
    • Resolution: Unresolved
    • branch-api-plugin
    • None
    • Windows 10
      Jenkins 2.277.1
      jenkinsfile

    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

            Unassigned Unassigned
            sbroshar steve
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: