hudson.plugins.git.GitException: Command "/usr/local/git/bin/git checkout -b ${DATA_DEPLOY_BRANCH} e60ebf368ec03b4e4dd449427d50115203049218" returned status code 128: stdout: stderr: fatal: A branch named 'mybranch' already exists.

Jenkins JIRA | b2jrock | 4 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    I am using the Envinject plugin to set some pre-scm variables. When I specify the local branch to merge to as a parameter, the first build is able to check out (then fails for other reasons). On the second build, the build will fail with the stack trace that follows. If I replace the variable with the name it resolves to, it works fine. --- 12:56:03 FATAL: Command "/usr/local/git/bin/git checkout -b ${DATA_DEPLOY_BRANCH} e60ebf368ec03b4e4dd449427d50115203049218" returned status code 128: 12:56:03 stdout: 12:56:03 stderr: fatal: A branch named 'mybranch' already exists. 12:56:03 12:56:03 hudson.plugins.git.GitException: Command "/usr/local/git/bin/git checkout -b ${DATA_DEPLOY_BRANCH} e60ebf368ec03b4e4dd449427d50115203049218" returned status code 128: 12:56:03 stdout: 12:56:03 stderr: fatal: A branch named 'mybranch' already exists. 12:56:03 12:56:03 at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:772) 12:56:03 at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand(CliGitAPIImpl.java:738) 12:56:03 at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand(CliGitAPIImpl.java:748) 12:56:03 at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.checkout(CliGitAPIImpl.java:845) 12:56:03 at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1283) 12:56:03 at hudson.plugins.git.GitSCM.access$1100(GitSCM.java:57) 12:56:03 at hudson.plugins.git.GitSCM$4.invoke(GitSCM.java:1232) 12:56:03 at hudson.plugins.git.GitSCM$4.invoke(GitSCM.java:1208) 12:56:03 at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2348) 12:56:03 at hudson.remoting.UserRequest.perform(UserRequest.java:118) 12:56:03 at hudson.remoting.UserRequest.perform(UserRequest.java:48) 12:56:03 at hudson.remoting.Request$2.run(Request.java:326) 12:56:03 at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) 12:56:03 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) 12:56:03 at java.util.concurrent.FutureTask.run(FutureTask.java:166) 12:56:03 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) 12:56:03 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) 12:56:03 at hudson.remoting.Engine$1$1.run(Engine.java:58) 12:56:03 at java.lang.Thread.run(Thread.java:722)

    Jenkins JIRA | 4 years ago | b2jrock
    hudson.plugins.git.GitException: Command "/usr/local/git/bin/git checkout -b ${DATA_DEPLOY_BRANCH} e60ebf368ec03b4e4dd449427d50115203049218" returned status code 128: stdout: stderr: fatal: A branch named 'mybranch' already exists.
  2. 0

    I am using the Envinject plugin to set some pre-scm variables. When I specify the local branch to merge to as a parameter, the first build is able to check out (then fails for other reasons). On the second build, the build will fail with the stack trace that follows. If I replace the variable with the name it resolves to, it works fine. --- 12:56:03 FATAL: Command "/usr/local/git/bin/git checkout -b ${DATA_DEPLOY_BRANCH} e60ebf368ec03b4e4dd449427d50115203049218" returned status code 128: 12:56:03 stdout: 12:56:03 stderr: fatal: A branch named 'mybranch' already exists. 12:56:03 12:56:03 hudson.plugins.git.GitException: Command "/usr/local/git/bin/git checkout -b ${DATA_DEPLOY_BRANCH} e60ebf368ec03b4e4dd449427d50115203049218" returned status code 128: 12:56:03 stdout: 12:56:03 stderr: fatal: A branch named 'mybranch' already exists. 12:56:03 12:56:03 at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:772) 12:56:03 at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand(CliGitAPIImpl.java:738) 12:56:03 at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand(CliGitAPIImpl.java:748) 12:56:03 at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.checkout(CliGitAPIImpl.java:845) 12:56:03 at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1283) 12:56:03 at hudson.plugins.git.GitSCM.access$1100(GitSCM.java:57) 12:56:03 at hudson.plugins.git.GitSCM$4.invoke(GitSCM.java:1232) 12:56:03 at hudson.plugins.git.GitSCM$4.invoke(GitSCM.java:1208) 12:56:03 at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2348) 12:56:03 at hudson.remoting.UserRequest.perform(UserRequest.java:118) 12:56:03 at hudson.remoting.UserRequest.perform(UserRequest.java:48) 12:56:03 at hudson.remoting.Request$2.run(Request.java:326) 12:56:03 at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) 12:56:03 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) 12:56:03 at java.util.concurrent.FutureTask.run(FutureTask.java:166) 12:56:03 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) 12:56:03 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) 12:56:03 at hudson.remoting.Engine$1$1.run(Engine.java:58) 12:56:03 at java.lang.Thread.run(Thread.java:722)

    Jenkins JIRA | 4 years ago | b2jrock
    hudson.plugins.git.GitException: Command "/usr/local/git/bin/git checkout -b ${DATA_DEPLOY_BRANCH} e60ebf368ec03b4e4dd449427d50115203049218" returned status code 128: stdout: stderr: fatal: A branch named 'mybranch' already exists.
  3. 0

    Jenkins - Git - Failing to checkout from Git Repository

    Stack Overflow | 3 years ago | Scooby
    hudson.plugins.git.GitException: Could not checkout null with start point 30c6a7a5e6fd30e8519fb3d604a1c195d48ea4fc
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Build error with Jenkins Git and grunt-contrib-imagemin

    Stack Overflow | 3 years ago | Randy Rollog
    hudson.plugins.git.GitException: Could not checkout null with start point dbd678e9bc48c627d0d3ec7439e29c6a2c2de7ab
  6. 0

    Exception during git checkout using jenkins: "No such file or directory"

    Stack Overflow | 3 years ago | Nagarajan
    hudson.plugins.git.GitException: Could not checkout null with start point 1abd809011d37508b783f4f74245178ed632295a

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. hudson.plugins.git.GitException

      Command "/usr/local/git/bin/git checkout -b ${DATA_DEPLOY_BRANCH} e60ebf368ec03b4e4dd449427d50115203049218" returned status code 128: stdout: stderr: fatal: A branch named 'mybranch' already exists.

      at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn()
    2. org.jenkinsci.plugins
      CliGitAPIImpl.checkout
      1. org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:772)
      2. org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand(CliGitAPIImpl.java:738)
      3. org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand(CliGitAPIImpl.java:748)
      4. org.jenkinsci.plugins.gitclient.CliGitAPIImpl.checkout(CliGitAPIImpl.java:845)
      4 frames
    3. Hudson GIT plugin
      GitSCM$4.invoke
      1. hudson.plugins.git.GitSCM.checkout(GitSCM.java:1283)
      2. hudson.plugins.git.GitSCM.access$1100(GitSCM.java:57)
      3. hudson.plugins.git.GitSCM$4.invoke(GitSCM.java:1232)
      4. hudson.plugins.git.GitSCM$4.invoke(GitSCM.java:1208)
      4 frames
    4. Hudson
      FilePath$FileCallableWrapper.call
      1. hudson.FilePath$FileCallableWrapper.call(FilePath.java:2348)
      1 frame
    5. Hudson :: Remoting Layer
      InterceptingExecutorService$1.call
      1. hudson.remoting.UserRequest.perform(UserRequest.java:118)
      2. hudson.remoting.UserRequest.perform(UserRequest.java:48)
      3. hudson.remoting.Request$2.run(Request.java:326)
      4. hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
      4 frames
    6. Java RT
      ThreadPoolExecutor$Worker.run
      1. java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
      2. java.util.concurrent.FutureTask.run(FutureTask.java:166)
      3. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      4. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      4 frames
    7. Hudson :: Remoting Layer
      Engine$1$1.run
      1. hudson.remoting.Engine$1$1.run(Engine.java:58)
      1 frame
    8. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:722)
      1 frame