java.io.IOException: Failed checkout branch: Command "/usr/bin/git checkout -b release-0.2.2" returned status code 128: stdout: stderr: fatal: A branch named 'release-0.2.2' already exists.

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via JFrog JIRA by Ryan Maki, 1 year ago
Failed checkout branch: Command "/usr/bin/git checkout -b release-0.2.2" returned status code 128: stdout: stderr: fatal: A branch named 'release-0.2.2' already exists.
via JFrog JIRA by Ryan Maki, 1 year ago
Failed checkout branch: Command "/usr/bin/git checkout -b release-0.2.2" returned status code 128: stdout: stderr: fatal: A branch named 'release-0.2.2' already exists.
via Jenkins JIRA by Christopher Timm, 1 year ago
Failed checkout branch: Command "git checkout develop" returned status code 1: stdout: stderr: error: pathspec 'develop' did not match any file(s) known to git.
via Jenkins JIRA by Christopher Timm, 1 year ago
Failed checkout branch: Command "git checkout develop" returned status code 1: stdout: stderr: error: pathspec 'develop' did not match any file(s) known to git.
via Stack Overflow by user2684301
, 2 years ago
Failed checkout branch: Command "git checkout master" returned status code 1: stdout: stderr: error: pathspec 'master' did not match any file(s) known to git.
java.io.IOException: Failed checkout branch: Command "/usr/bin/git checkout -b release-0.2.2" returned status code 128: stdout: stderr: fatal: A branch named 'release-0.2.2' already exists.
at org.jfrog.hudson.release.scm.git.GitManager$CheckoutBranchCallable.invoke(GitManager.java:234)
at org.jfrog.hudson.release.scm.git.GitManager$CheckoutBranchCallable.invoke(GitManager.java:199)
at hudson.FilePath.act(FilePath.java:865)
at hudson.FilePath.act(FilePath.java:838)
at org.jfrog.hudson.release.scm.git.GitManager.checkoutBranch(GitManager.java:60)
at org.jfrog.hudson.release.scm.git.GitCoordinator.beforeReleaseVersionChange(GitCoordinator.java:80)
at org.jfrog.hudson.release.gradle.GradleReleaseWrapper.setUp(GradleReleaseWrapper.java:139)
at org.jfrog.hudson.gradle.ArtifactoryGradleConfigurator.setUp(ArtifactoryGradleConfigurator.java:358)
at hudson.model.Build$BuildExecution.doRun(Build.java:154)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:580)
at hudson.model.Run.execute(Run.java:1575)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:237)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.