java.io.IOException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • 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.
    via by David Welsh,
    • 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)
    No Bugmate found.