Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-9513

Could not release project due to GIT clone error when working in sub-directory

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Tracked Elsewhere
    • Icon: Low Low
    • None
    • 3.2
    • None
    • LINUX, GIT, Maven 3.X, maven-release-plugin:2.2.1:perform

      We have multi modules project structure like :

      ParentPom
      |-- pom.xml (Modules : SampleProjectEAR,SampleProjectWeb,SampleProjectCommons)
      SampleProjectEAR
      |-- pom.xml (Parent : ParentPom pom.xml)
      SampleProjectWeb
      |-- pom.xml (Parent : ParentPom pom.xml)
      SampleProjectCommons
      |-- pom.xml (Parent : ParentPom pom.xml)
      

      In maven, we have a release plan with a release task (a Maven 3.x Configuration task) with fields :
      goal = release:clean release:prepare release:perform -B -U
      Override Project File = ParentPom/pom.xml

      When running this plan, we've got the following error :

      [INFO] ------------------------------------------------------------------------
      [INFO] Building SampleProject 2.3.15-SNAPSHOT
      [INFO] ------------------------------------------------------------------------
      [INFO] 
      [INFO] --- maven-release-plugin:2.2.1:perform (default-cli) @ SampleProject ---
      [INFO] Checking out the project to perform the release ...
      [INFO] Performing a LOCAL checkout from scm:git:file:///app/DINB/bamboo-agent-home/xml-data/build-dir/WTUT-RELEASE-JOB1/ParentPom
      [INFO] Executing: /bin/sh -c cd /app/DINB/bamboo-agent-home/xml-data/build-dir/WTUT-RELEASE-JOB1/ParentPom/target && git clone file:///app/DINB/bamboo-agent-home/xml-data/build-dir/WTUT-RELEASE-JOB1/ParentPom /app/DINB/bamboo-agent-home/xml-data/build-dir/WTUT-RELEASE-JOB1/ParentPom/target/checkout
      [INFO] Working directory: /app/DINB/bamboo-agent-home/xml-data/build-dir/WTUT-RELEASE-JOB1/ParentPom/target
      [ERROR] The git-clone command failed.
      [INFO] ------------------------------------------------------------------------
      [INFO] Reactor Summary:
      [INFO] 
      [INFO] SampleProject .................................... FAILURE [1.291s]
      [INFO] SampleProjectCommons ............................. SKIPPED
      [INFO] SampleProjectWeb ................................. SKIPPED
      [INFO] SampleProjectEAR ................................. SKIPPED
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 1.833s
      [INFO] Finished at: Fri Aug 12 11:55:47 UTC 2011
      [INFO] Final Memory: 5M/146M
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.2.1:perform (default-cli) on project SampleProject: Unable to checkout from SCM
      [ERROR] Provider message:
      [ERROR] The git-clone command failed.
      [ERROR] Command output:
      [ERROR] fatal: '/app/DINB/bamboo-agent-home/xml-data/build-dir/WTUT-RELEASE-JOB1/ParentPom' does not appear to be a git repository
      [ERROR] fatal: The remote end hung up unexpectedly
      [ERROR] -> [Help 1]
      [ERROR] 
      

      In fact, it's true ! /app/DINB/bamboo-agent-home/xml-data/build-dir/WTUT-RELEASE-JOB1/ParentPom is not a git repository but /app/DINB/bamboo-agent-home/xml-data/build-dir/WTUT-RELEASE-JOB1 is !

      We have to find the way to tell BAMBOO to use root directory as root GIT repository...

      Julien

              Unassigned Unassigned
              01e23c6f71f1 Julien
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: