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

PipelineScript from SCM is not accepting Parameters as input

      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
      

          [JENKINS-37681] PipelineScript from SCM is not accepting Parameters as input

          Anudeep Lalam created issue -
          Andrew Bayer made changes -
          Link New: This issue duplicates JENKINS-42971 [ JENKINS-42971 ]
          Andrew Bayer made changes -
          Resolution New: Duplicate [ 3 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]

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

              Created:
              Updated:
              Resolved: