Uploaded image for project: 'Bamboo Artifactory Plug-in'
  1. Bamboo Artifactory Plug-in
  2. BAP-290

Plugin does not support git symbolic links during release & promotion

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 1.7.6
    • Fix Version/s: 1.9.0
    • Labels:
      None

      Description

      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:

      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
      

      With the error occuring during checkout branch phase:

      simple  20-Aug-2015 15:08:41    [RELEASE] Release Build Active
      simple  20-Aug-2015 15:08:41    [RELEASE] Checking out branch: release/sprint5
      

      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:

      <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>
      

      Which from viewing JGit Bug 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.

        Attachments

          Activity

            People

            • Assignee:
              eyalbe Eyal Ben Moshe (Inactive)
              Reporter:
              david.welsh David Welsh
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: