Description
Steps to reproduce:
- Created a Shared Repository in Bamboo, using password to authenticate with my BitBucket account and checkout the Mercurial repository from BitBucket.
- Created a new Plan in Bamboo, and configured it to use the Shared Repository.
- Triggered a manual build.
- The Build #1 completed successfully, as expected.
- Modified my BitBucket account password, but did not update the password in the Shared Repository configuration in Bamboo.
- Triggered a manual build.
- The Build #2 failed, as expected.
- Updated the password in the Shared Repository configuration in Bamboo to match with my BitBucket account.
- Triggered a manual build.
- The Build #3 failed as well, but it should have worked. This was the error in the UI:
(java.lang.RuntimeException : com.atlassian.bamboo.plugins.hg.HgCommandException: command 'C:\Program Files\TortoiseHg\hg.exe' id -i --debug --rev default --config 'ui.ssh=ssh -o StrictHostKeyChecking=no -o BatchMode=yes' https://fkraemer:********@bitbucket.org/fkraemer/mercurialtest failed. Working directory was `D:\Atlassian\atlassian-bamboo-4.3\bamboo_home\xml-data\build-dir\_hg-repositories-cache\057dc4a6e93b5e6f50d100febc75369723606b7e'. stderr: abort: authorization failed stdout: using https://bitbucket.org/fkraemer/mercurialtest http auth: user fkraemer, password ********** sending capabilities command bitbucket.org certificate successfully verified http auth: user fkraemer, password ********** bitbucket.org certificate successfully verified http auth: user fkraemer, password ********** bitbucket.org certificate successfully verified http auth: user fkraemer, password ********** bitbucket.org certificate successfully verified http auth: user fkraemer, password ********** bitbucket.org certificate successfully verified http auth: user fkraemer, password ********** bitbucket.org certificate successfully verified http auth: user fkraemer, password ********** bitbucket.org certificate successfully verified )
And this is the complete stacktrace in the logs:
2013-03-21 14:25:25,278 ERROR [2-DelayedChangeDetectionThread:pool-5-thread-2] [ChainExecutionManagerImpl] Errors getting changes for PROJ-BBHSR-3 java.lang.RuntimeException: com.atlassian.bamboo.plugins.hg.HgCommandException: command 'C:\Program Files\TortoiseHg\hg.exe' id -i --debug --rev default --config 'ui.ssh=ssh -o StrictHostKeyChecking=no -o BatchMode=yes' https://fkraemer:********@bitbucket.org/fkraemer/mercurialtest failed. Working directory was `D:\Atlassian\atlassian-bamboo-4.3\bamboo_home\xml-data\build-dir\_hg-repositories-cache\057dc4a6e93b5e6f50d100febc75369723606b7e'. stderr: abort: authorization failed stdout: using https://bitbucket.org/fkraemer/mercurialtest http auth: user fkraemer, password ********** sending capabilities command bitbucket.org certificate successfully verified http auth: user fkraemer, password ********** bitbucket.org certificate successfully verified http auth: user fkraemer, password ********** bitbucket.org certificate successfully verified http auth: user fkraemer, password ********** bitbucket.org certificate successfully verified http auth: user fkraemer, password ********** bitbucket.org certificate successfully verified http auth: user fkraemer, password ********** bitbucket.org certificate successfully verified http auth: user fkraemer, password ********** bitbucket.org certificate successfully verified at com.atlassian.bamboo.executor.RetryingTaskExecutor.rerun(RetryingTaskExecutor.java:132) at com.atlassian.bamboo.executor.RetryingTaskExecutor.runTask(RetryingTaskExecutor.java:88) at com.atlassian.bamboo.executor.RetryingTaskExecutor.retry(RetryingTaskExecutor.java:191) at com.atlassian.bamboo.executor.RetryingTaskExecutor.retry(RetryingTaskExecutor.java:176) at com.atlassian.bamboo.v2.trigger.DefaultChangeDetectionManager.collectionChangesWithRetry(DefaultChangeDetectionManager.java:457) at com.atlassian.bamboo.v2.trigger.DefaultChangeDetectionManager.collectChangesSinceLastBuildInternal(DefaultChangeDetectionManager.java:318) at com.atlassian.bamboo.v2.trigger.DefaultChangeDetectionManager.collectChangesSinceRevisions(DefaultChangeDetectionManager.java:251) at com.atlassian.bamboo.v2.trigger.DefaultChangeDetectionManager.collectChangesSinceRevisions(DefaultChangeDetectionManager.java:161) at com.atlassian.bamboo.v2.trigger.DefaultChangeDetectionManager.collectAllChangesSinceLastBuild(DefaultChangeDetectionManager.java:127) at com.atlassian.bamboo.v2.trigger.ManualBuildDetectionAction.performDelayedChangeDetection(ManualBuildDetectionAction.java:113) at com.atlassian.bamboo.chains.ChainExecutionManagerImpl$2.getChainState(ChainExecutionManagerImpl.java:199) at com.atlassian.bamboo.chains.ChainExecutionManagerImpl.tryStartChainState(ChainExecutionManagerImpl.java:252) at com.atlassian.bamboo.chains.ChainExecutionManagerImpl.delayedStart(ChainExecutionManagerImpl.java:189) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:304) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at $Proxy77.delayedStart(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:304) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:198) at $Proxy78.delayedStart(Unknown Source) at com.atlassian.bamboo.plan.PlanExecutionManagerImpl$1$1$1.call(PlanExecutionManagerImpl.java:300) at com.atlassian.bamboo.plan.PlanExecutionManagerImpl$1$1$1.call(PlanExecutionManagerImpl.java:296) at com.atlassian.util.concurrent.ManagedLocks$ManagedLockImpl.withLock(ManagedLocks.java:324) at com.atlassian.bamboo.plan.PlanExecutionLockServiceImpl.lock(PlanExecutionLockServiceImpl.java:77) at com.atlassian.bamboo.plan.PlanExecutionManagerImpl.doWithProcessLock(PlanExecutionManagerImpl.java:467) at com.atlassian.bamboo.plan.PlanExecutionManagerImpl.access$200(PlanExecutionManagerImpl.java:48) at com.atlassian.bamboo.plan.PlanExecutionManagerImpl$1$1.run(PlanExecutionManagerImpl.java:295) at com.atlassian.bamboo.build.pipeline.concurrent.NamedThreadFactory$2.run(NamedThreadFactory.java:52) at java.lang.Thread.run(Thread.java:662) Caused by: com.atlassian.bamboo.plugins.hg.HgCommandException: command 'C:\Program Files\TortoiseHg\hg.exe' id -i --debug --rev default --config 'ui.ssh=ssh -o StrictHostKeyChecking=no -o BatchMode=yes' https://fkraemer:********@bitbucket.org/fkraemer/mercurialtest failed. Working directory was `D:\Atlassian\atlassian-bamboo-4.3\bamboo_home\xml-data\build-dir\_hg-repositories-cache\057dc4a6e93b5e6f50d100febc75369723606b7e'. stderr: abort: authorization failed stdout: using https://bitbucket.org/fkraemer/mercurialtest http auth: user fkraemer, password ********** sending capabilities command bitbucket.org certificate successfully verified http auth: user fkraemer, password ********** bitbucket.org certificate successfully verified http auth: user fkraemer, password ********** bitbucket.org certificate successfully verified http auth: user fkraemer, password ********** bitbucket.org certificate successfully verified http auth: user fkraemer, password ********** bitbucket.org certificate successfully verified http auth: user fkraemer, password ********** bitbucket.org certificate successfully verified http auth: user fkraemer, password ********** bitbucket.org certificate successfully verified at com.atlassian.bamboo.plugins.hg.HgCommandProcessor.runCommand(HgCommandProcessor.java:514) at com.atlassian.bamboo.plugins.hg.HgCommandProcessor.runCommand(HgCommandProcessor.java:478) at com.atlassian.bamboo.plugins.hg.HgCommandProcessor.extractTipHash(HgCommandProcessor.java:539) at com.atlassian.bamboo.plugins.hg.HgCommandProcessor.getRemoteTipForBranch(HgCommandProcessor.java:391) at com.atlassian.bamboo.plugins.hg.HgRepositoryAccessImpl.getLatestRemoteRevisionHash(HgRepositoryAccessImpl.java:325) at com.atlassian.bamboo.plugins.hg.HgRepositoryAccessImpl.collectChangesSinceLastBuild(HgRepositoryAccessImpl.java:95) at com.atlassian.bamboo.plugins.hg.HgRepository.collectChangesSinceLastBuild(HgRepository.java:379) at com.atlassian.bamboo.v2.trigger.DefaultChangeDetectionManager$1.call(DefaultChangeDetectionManager.java:461) at com.atlassian.bamboo.v2.trigger.DefaultChangeDetectionManager$1.call(DefaultChangeDetectionManager.java:458) at com.atlassian.bamboo.executor.RetryingTaskExecutor.rerun(RetryingTaskExecutor.java:108) ... 39 more Caused by: com.atlassian.utils.process.ProcessException: Non-zero exit code: 255 at com.atlassian.utils.process.PluggableProcessHandler.complete(PluggableProcessHandler.java:83) at com.atlassian.utils.process.ExternalProcess.finish(ExternalProcess.java:376) at com.atlassian.utils.process.ExternalProcess.execute(ExternalProcess.java:419) at com.atlassian.bamboo.plugins.hg.HgCommandProcessor.runCommand(HgCommandProcessor.java:510) ... 48 more
The same test worked in Bamboo 4.4.3.