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

Mercurial does not support file paths greater than 260 characters on Windows platforms

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Fix
    • Medium
    • None
    • 3.0
    • Repository (Mercurial)
    • None

    Description

      I get the following error:

      [INFO] [talledLocalContainer]  stdout: adding changesetsadding manifestsadding file changes
      [INFO] [talledLocalContainer] 2011-04-08 14:45:17,133 WARN [1-BAM::Default Agent::Agent:pool-7-thread-1] [BuildAgentControllerImpl] Error occurred whi
      le executing the build for MYAPP-MSTEST-JOB1-7
      [INFO] [talledLocalContainer] com.atlassian.bamboo.plugins.hg.HgCommandException: command [C:\Program Files\Mercurial\hg.exe, clone, --noupdate, --rev
      , 0fe021898e0790696549ede155e222f83d061fd7, --config, ui.ssh=ssh -o StrictHostKeyChecking=no -o BatchMode=yes, https://i386:***@bitbucket.org/i386/dot
      nettest, C:\Users\jdumay\bamboo-dotnet-plugin\target\bamboo\home\xml-data\build-dir\_hg-repositories-cache\f6a6b317dd4987e287375f4959752cede449586d] f
      ailed. Working directory was `C:\Users\jdumay\bamboo-dotnet-plugin\target\bamboo\home\xml-data\build-dir\_hg-repositories-cache\f6a6b317dd4987e287375f
      4959752cede449586d'. stderr: transaction abort!
      [INFO] [talledLocalContainer] rollback completed
      [INFO] [talledLocalContainer] abort: C:\Users\jdumay\bamboo-dotnet-plugin\target\bamboo\home\xml-data\build-dir\_hg-repositories-cache\f6a6b317dd4987e
      287375f4959752cede449586d\.hg/store\data/_m_b_unit_test_project/_mb_unit._samples/obj/_debug/_design_time_resolve_assembly_references_input.cache.i: T
      he system cannot find the path specified
      [INFO] [talledLocalContainer]  stdout: adding changesetsadding manifestsadding file changes
      [INFO] [talledLocalContainer]   at com.atlassian.bamboo.plugins.hg.HgCommandProcessor.runCommand(HgCommandProcessor.java:376)
      [INFO] [talledLocalContainer]   at com.atlassian.bamboo.plugins.hg.HgCommandProcessor.runCloneCommand(HgCommandProcessor.java:129)
      [INFO] [talledLocalContainer]   at com.atlassian.bamboo.plugins.hg.HgRepositoryAccessImpl.pullToLocalDirectory(HgRepositoryAccessImpl.java:213)
      [INFO] [talledLocalContainer]   at com.atlassian.bamboo.plugins.hg.HgRepositoryAccessImpl.retrieveSourceCode(HgRepositoryAccessImpl.java:118)
      [INFO] [talledLocalContainer]   at com.atlassian.bamboo.plugins.hg.HgRepository.retrieveSourceCode(HgRepository.java:242)
      [INFO] [talledLocalContainer]   at com.atlassian.bamboo.v2.build.task.CheckoutUpdateForBuild.checkoutCode(CheckoutUpdateForBuild.java:119)
      [INFO] [talledLocalContainer]   at com.atlassian.bamboo.v2.build.task.CheckoutUpdateForBuild.doCall(CheckoutUpdateForBuild.java:91)
      [INFO] [talledLocalContainer]   at com.atlassian.bamboo.v2.build.task.CheckoutUpdateForBuild.call(CheckoutUpdateForBuild.java:41)
      [INFO] [talledLocalContainer]   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [INFO] [talledLocalContainer]   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      [INFO] [talledLocalContainer]   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      [INFO] [talledLocalContainer]   at java.lang.reflect.Method.invoke(Method.java:597)
      [INFO] [talledLocalContainer]   at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:304)
      [INFO] [talledLocalContainer]   at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
      [INFO] [talledLocalContainer]   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
      [INFO] [talledLocalContainer]   at org.springframework.orm.hibernate.HibernateInterceptor.invoke(HibernateInterceptor.java:117)
      [INFO] [talledLocalContainer]   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
      [INFO] [talledLocalContainer]   at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
      [INFO] [talledLocalContainer]   at $Proxy401.call(Unknown Source)
      [INFO] [talledLocalContainer]   at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:192)
      [INFO] [talledLocalContainer]   at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:99)
      [INFO] [talledLocalContainer]   at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:106)
      [INFO] [talledLocalContainer]   at com.atlassian.bamboo.build.pipeline.concurrent.NamedThreadFactory$2.run(NamedThreadFactory.java:50)
      [INFO] [talledLocalContainer]   at java.lang.Thread.run(Thread.java:662)
      [INFO] [talledLocalContainer] Caused by: com.atlassian.utils.process.ProcessException: Non-zero exit code: -1
      [INFO] [talledLocalContainer]   at com.atlassian.utils.process.PluggableProcessHandler.complete(PluggableProcessHandler.java:83)
      [INFO] [talledLocalContainer]   at com.atlassian.utils.process.ExternalProcess.finish(ExternalProcess.java:317)
      [INFO] [talledLocalContainer]   at com.atlassian.utils.process.ExternalProcess.execute(ExternalProcess.java:360)
      [INFO] [talledLocalContainer]   at com.atlassian.bamboo.plugins.hg.HgCommandProcessor.runCommand(HgCommandProcessor.java:371)
      [INFO] [talledLocalContainer]   ... 23 more
      [INFO] [talledLocalContainer]
      [INFO] [talledLocalContainer] 2011-04-08 14:45:17,141 INFO [1-BAM::Default Agent::Agent:pool-7-thread-1] [LocalBuildResultProcessor] Processing build
      result MYAPP-MSTEST-JOB1-7...
      [INFO] [talledLocalContainer] 2011-04-08 14:45:17,141 WARN [1-BAM::Default Agent::Agent:pool-7-thread-1] [CurrentlyBuildingImpl] Timer being stopped,
      but timer isn't started
      

      There are two work arounds for this:
      One is to set in your .hgrc

      [format]
      usestore = False
      

      But this changes the mercurial repository format from the default one to make it not compatible with other operating systems.

      The other is to use the Win32LongFileNamesExtension which does not work with binary releases of Mercurial for Windows.

      Attachments

        Activity

          People

            Unassigned Unassigned
            jdumay James Dumay
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: