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

PipelineScript from SCM is not accepting Parameters as input

XMLWordPrintable

      Hi,

      For a Pipeline job, I have a parameter named BRANCH. I am using ${BRANCH} under Branches to build of Pipeline Script from SCM .While executing the job, I am passing my branch name in BRANCH. But Jenkins is not able to use it. I am getting below error.

       > /usr/bin/git config --local --remove-section credential # timeout=10
       > /usr/bin/git rev-parse origin/${BRANCH}^{commit} # timeout=10
       > /usr/bin/git rev-parse ${BRANCH}^{commit} # timeout=10
      ERROR: Couldn't find any revision to build. Verify the repository and branch configuration for this job.
      Finished: FAILURE
      

            huybrechts huybrechts
            anudeeplalam Anudeep Lalam
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: