java.io.IOException

Failed checkout branch: Command "/usr/bin/git checkout develop" returned status code 1: stdout: stderr: error: Your local changes to the following files would be overwritten by checkout: gradle.properties Please, commit your changes or stash them before you can switch branches. Aborting

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web5

  • via Unknown by Ryan Maki,
  • via Unknown by Ryan Maki,
  • Stack trace

    • java.io.IOException: Failed checkout branch: Command "/usr/bin/git checkout develop" returned status code 1: stdout: stderr: error: Your local changes to the following files would be overwritten by checkout: gradle.properties Please, commit your changes or stash them before you can switch branches. Aborting 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.buildCompleted(GitCoordinator.java:142) at org.jfrog.hudson.gradle.ArtifactoryGradleConfigurator$ReleaseRunListener.onCompleted(ArtifactoryGradleConfigurator.java:660) at org.jfrog.hudson.gradle.ArtifactoryGradleConfigurator$ReleaseRunListener.onCompleted(ArtifactoryGradleConfigurator.java:630) at hudson.model.listeners.RunListener.fireCompleted(RunListener.java:199) at hudson.model.Run.execute(Run.java:1625) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:237)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    We couldn't find other users who have seen this exception.