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

Not using the remote name of the Git repo

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Component/s: ghprb-plugin
    • Labels:
      None
    • Environment:
      org.jenkins-ci.main:jenkins-war:1.643
      org.jenkins-ci.plugins:ghprb:1.29.7
    • Similar Issues:

      Description

      As can be seen from the output below we check out the code from the remote named github, but when we get to the point of git rev-parse it suddenly starts using origin. origin is not mentioned in the config, so this is confusing.

      Setting the name parameter of the Git configuration of the project back to

      {origin}

      , instead of github, will "fix" the issue of not building.

      Building in workspace /var/lib/jenkins/jobs/NG REST/workspace
       > git rev-parse --is-inside-work-tree # timeout=10
      Fetching changes from the remote Git repository
       > git config remote.github.url https://github.com/MWNG/NG-Azure-REST-API # timeout=10
      Fetching upstream changes from https://github.com/MWNG/NG-Azure-REST-API
       > git --version # timeout=10
      using .gitcredentials to set credentials
       > git config --local credential.username mwng-framework-ci # timeout=10
       > git config --local credential.helper store --file=/tmp/git3005757125989321752.credentials # timeout=10
       > git -c core.askpass=true fetch --tags --progress https://github.com/MWNG/NG-Azure-REST-API +refs/heads/*:refs/remotes/github/* +refs/pull/*:refs/remotes/github/pr/*
       > git config --local --remove-section credential # timeout=10
       > git rev-parse origin/pr/77/merge^{commit} # timeout=10
       > git rev-parse refs/remotes/github/origin/pr/77/merge^{commit} # timeout=10
       > git rev-parse origin/pr/77/merge^{commit} # timeout=10
      ERROR: Couldn't find any revision to build. Verify the repository and branch configuration for this job.
      

        Attachments

          Activity

          There are no comments yet on this issue.

            People

            • Assignee:
              Unassigned
              Reporter:
              fatso83 Carl-Erik Kopseng
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: