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

ENV VAR / Job Parameter not being used in Git Checkout

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Critical Critical
    • git-plugin
    • None

      I have a job with a String Parameter - BRANCH_NAME

      I am running' Pipeline Script from SCM'

      I have specified the parameter BRANCH_NAME in the 'Branches to Build' field as an environment variable (i,e ${BRANCH_NAME})

      It does not clone that branch - I get an error:
      hudson.plugins.git.GitException: Command "git fetch --tags --force --progress --prune – origin +refs/heads/${BRANCH_NAME}:refs/remotes/origin/${BRANCH_NAME}"

       

          [JENKINS-63457] ENV VAR / Job Parameter not being used in Git Checkout

          Daniel Laird created issue -
          Daniel Laird made changes -
          Attachment New: image-2020-08-20-17-52-32-118.png [ 52401 ]
          Daniel Laird made changes -
          Attachment New: image-2020-08-20-17-54-35-214.png [ 52402 ]
          Mark Waite made changes -
          Link New: This issue is related to JENKINS-49758 [ JENKINS-49758 ]
          Mark Waite made changes -
          Resolution New: Duplicate [ 3 ]
          Status Original: Open [ 1 ] New: Fixed but Unreleased [ 10203 ]
          Mark Waite made changes -
          Status Original: Fixed but Unreleased [ 10203 ] New: Closed [ 6 ]

            markewaite Mark Waite
            djl197 Daniel Laird
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: