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

Trailing space in Git branch name causes build failures

      While setting up a new job, I C&P my Git branch name into the "Branch Specifier" under SCM. I didn't realize it, but there was a trailing space in the branch name. This caused the build to fail with:

      Started by user ryan.shoemaker
      Building in workspace /opt/jenkins/jobs/MyJob/workspace
      Checkout:workspace / /opt/jenkins/jobs/MyJob/workspace - hudson.remoting.LocalChannel@6c616408
      Using strategy: Default
      Wiping out workspace first.
      Cloning the remote Git repository
      Cloning repository origin
      Fetching upstream changes from ssh://ryan.shoemaker@mygitserver.com/git/MyModule
      ERROR: Couldn't find any revision to build. Verify the repository and branch configuration for this job.

      When I removed the trailing space from the branch name, everything built fine.

          [JENKINS-15235] Trailing space in Git branch name causes build failures

          ryan shoemaker created issue -
          sogabe made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 145957 ] New: JNJira + In-Review [ 191712 ]
          Mark Waite made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]

            ndeloof Nicolas De Loof
            ryanshoemaker ryan shoemaker
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: