ENV VAR / Job Parameter not being used in Git Checkout

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

XMLWordPrintable

      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}"

       

            Assignee:
            Mark Waite
            Reporter:
            Daniel Laird
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: