java.io.IOException: java.io.IOException: An error 'Checkout conflict with files: generic/README.md ... tests/test.sh

JFrog JIRA | David Welsh | 1 year ago
  1. 0

    When attempting to run the Release & Promotion step of a successful build that has a Artifactory Maven 3 task the build will fail if Symbolic Links are part of the git repository. The error will look like this: {noformat} Exception occurred while executing custom pre-build action 'org.jfrog.bamboo.release.action.ArtifactoryPreBuildAction@354a1t21'. Building will abort... java.io.IOException: java.io.IOException: An error 'Checkout conflict with files: generic/README.md ... tests/test.sh at org.eclipse.jgit.dircache.DirCacheCheckout.doCheckout(DirCacheCheckout.java:405) at org.eclipse.jgit.dircache.DirCacheCheckout.checkout(DirCacheCheckout.java:385) at org.eclipse.jgit.api.CheckoutCommand.call(CheckoutCommand.java:173) ... 14 more {noformat} With the error occuring during checkout branch phase: {noformat} simple 20-Aug-2015 15:08:41 [RELEASE] Release Build Active simple 20-Aug-2015 15:08:41 [RELEASE] Checking out branch: release/sprint5 {noformat} I looked into it and extracted the plugin jar ({{bamboo-artifactory-plugin-1.7.6.jar}}) and viewed its pom.xml file ({{META-INF\maven\org.jfrog.bamboo\bamboo-artifactory-plugin\pom.xml}}) which showed me the following dependency information for JGit: {code:xml} <dependency> <groupId>org.eclipse.jgit</groupId> <artifactId>org.eclipse.jgit</artifactId> <version>2.0.0.201206130900-r</version> <exclusions> <exclusion> <groupId>com.jcraft</groupId> <artifactId>jsch</artifactId> </exclusion> </exclusions> </dependency> {code} Which from viewing [JGit Bug 354367|https://bugs.eclipse.org/bugs/show_bug.cgi?id=354367] this appears to be resolved as of version 3.7 which means the JGit dependency in the plugin requires updating in order for Symbolic Links to work within Git Repositories during the Release & Promition step.

    JFrog JIRA | 1 year ago | David Welsh
    java.io.IOException: java.io.IOException: An error 'Checkout conflict with files: generic/README.md ... tests/test.sh
  2. 0
    Check for bad records in the input data (like '(null)')
  3. 0
    Download the winutils.exe for your Hadoop version: https://github.com/steveloughran/winutils . Save it to HADOOP_HOME/bin
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    Bad input data (not properly separated)
  6. 0
    If you are using maven you'd like to exclude your binaries from filtering process.

    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. java.io.IOException

      java.io.IOException: An error 'Checkout conflict with files: generic/README.md ... tests/test.sh

      at org.eclipse.jgit.dircache.DirCacheCheckout.doCheckout()
    2. JGit - Core
      CheckoutCommand.call
      1. org.eclipse.jgit.dircache.DirCacheCheckout.doCheckout(DirCacheCheckout.java:405)
      2. org.eclipse.jgit.dircache.DirCacheCheckout.checkout(DirCacheCheckout.java:385)
      3. org.eclipse.jgit.api.CheckoutCommand.call(CheckoutCommand.java:173)
      3 frames