Details
-
Bug
-
Resolution: Fixed
-
Low
-
5.5.1
-
1
-
Severity 3 - Minor
-
Description
Problem
When triggering a build with "Run Customized..." and entering an id from commit that is only available within tags but not in branches the execution fails.
Expected behavior
When triggering a build with "Run Customized..." on a specific commit ID the build should checkout the given ID and should not try to find a related branch.
Or in other words: Using git branch -a --contains <ID> should not be used but git checkout <ID>.
Error Log
com.atlassian.bamboo.repository.RepositoryException: com.atlassian.bamboo.plugins.git.GitCommandException: command 'C:\Program Files (x86)\Git\cmd\git.exe' branch -a --contains 530bde8b9e9eb9af52b0757ed93444ec81a283f8 failed with code 129. Working directory was [D:\atlassian\BAMBOO\atlassian-bamboo-5.5.1\HOME\xml-data\build-dir\_git-repositories-cache\9de9b53b57e0af5d30a2f87df6a3dff3774d5734]., stderr: [error: no such commit 530bde8b9e9eb9af52b0757ed93444ec81a283f8, usage: git branch [options] [-r | -a] [--merged | --no-merged], or: git branch [options] [-l] [-f] <branchname> [<start-point>], or: git branch [options] [-r] (-d | -D) <branchname>..., or: git branch [options] (-m | -M) [<oldbranch>] <newbranch>, , Generic options, -v, --verbose show hash and subject, give twice for upstream branch, -q, --quiet suppress informational messages, -t, --track set up tracking mode (see git-pull(1)), --set-upstream change upstream info, -u, --set-upstream-to <upstream>, change the upstream info, --unset-upstream Unset the upstream info, --color[=<when>] use colored output, -r, --remotes act on remote-tracking branches, --contains <commit> print only branches that contain the commit, --abbrev[=<n>] use <n> digits to display SHA-1s, , Specific git-branch actions:, -a, --all list both remote-tracking and local branches, -d, --delete delete fully merged branch, -D delete branch (even if not merged), -m, --move move/rename a branch and its reflog, -M move/rename a branch, even if target exists, --list list branch names, -l, --create-reflog create the branch's reflog, --edit-description edit the description for the branch, -f, --force force creation (when already exists), --no-merged <commit> print only not merged branches, --merged <commit> print only merged branches, --column[=<style>] list branches in columns, ] at com.atlassian.bamboo.v2.trigger.DefaultChangeDetectionManager.collectChangesSinceLastBuildInternal(DefaultChangeDetectionManager.java:373) at com.atlassian.bamboo.v2.trigger.DefaultChangeDetectionManager.collectChangesSinceRevisions(DefaultChangeDetectionManager.java:261) at com.atlassian.bamboo.v2.trigger.DefaultChangeDetectionManager.collectChangesSinceRevisions(DefaultChangeDetectionManager.java:160) at com.atlassian.bamboo.v2.trigger.DefaultChangeDetectionManager.collectAllChangesSinceLastBuild(DefaultChangeDetectionManager.java:126) at com.atlassian.bamboo.v2.trigger.ManualBuildDetectionAction.performDelayedChangeDetection(ManualBuildDetectionAction.java:173) at com.atlassian.bamboo.chains.ChainExecutionManagerImpl$2.getChainState(ChainExecutionManagerImpl.java:209) at com.atlassian.bamboo.chains.ChainExecutionManagerImpl.tryStartChainState(ChainExecutionManagerImpl.java:262) at com.atlassian.bamboo.chains.ChainExecutionManagerImpl.delayedStart(ChainExecutionManagerImpl.java:198) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) 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 $Proxy96.delayedStart(Unknown Source) at com.atlassian.bamboo.plan.PlanExecutionManagerImpl$1$1$1$1.run(PlanExecutionManagerImpl.java:401) at com.atlassian.bamboo.util.CacheAwareness.whileReadingThroughCaches(CacheAwareness.java:85) at com.atlassian.bamboo.util.CacheAwareness.whileReadingThroughCaches(CacheAwareness.java:102) at com.atlassian.bamboo.plan.PlanExecutionManagerImpl$1$1$1.call(PlanExecutionManagerImpl.java:396) at com.atlassian.bamboo.plan.PlanExecutionManagerImpl$1$1$1.call(PlanExecutionManagerImpl.java:390) at com.atlassian.util.concurrent.ManagedLocks$ManagedLockImpl.withLock(ManagedLocks.java:312) at com.atlassian.bamboo.plan.PlanExecutionLockServiceImpl.lock(PlanExecutionLockServiceImpl.java:81) at com.atlassian.bamboo.plan.PlanExecutionManagerImpl.doWithProcessLock(PlanExecutionManagerImpl.java:741) at com.atlassian.bamboo.plan.PlanExecutionManagerImpl.access$200(PlanExecutionManagerImpl.java:125) at com.atlassian.bamboo.plan.PlanExecutionManagerImpl$1$1.run(PlanExecutionManagerImpl.java:384) at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:49) at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:31) at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:20) at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:52) at java.lang.Thread.run(Thread.java:722) Caused by: com.atlassian.bamboo.plugins.git.GitCommandException: command 'C:\Program Files (x86)\Git\cmd\git.exe' branch -a --contains 530bde8b9e9eb9af52b0757ed93444ec81a283f8 failed with code 129. Working directory was [D:\atlassian\BAMBOO\atlassian-bamboo-5.5.1\HOME\xml-data\build-dir\_git-repositories-cache\9de9b53b57e0af5d30a2f87df6a3dff3774d5734]., stderr: [error: no such commit 530bde8b9e9eb9af52b0757ed93444ec81a283f8, usage: git branch [options] [-r | -a] [--merged | --no-merged], or: git branch [options] [-l] [-f] <branchname> [<start-point>], or: git branch [options] [-r] (-d | -D) <branchname>..., or: git branch [options] (-m | -M) [<oldbranch>] <newbranch>, , Generic options, -v, --verbose show hash and subject, give twice for upstream branch, -q, --quiet suppress informational messages, -t, --track set up tracking mode (see git-pull(1)), --set-upstream change upstream info, -u, --set-upstream-to <upstream>, change the upstream info, --unset-upstream Unset the upstream info, --color[=<when>] use colored output, -r, --remotes act on remote-tracking branches, --contains <commit> print only branches that contain the commit, --abbrev[=<n>] use <n> digits to display SHA-1s, , Specific git-branch actions:, -a, --all list both remote-tracking and local branches, -d, --delete delete fully merged branch, -D delete branch (even if not merged), -m, --move move/rename a branch and its reflog, -M move/rename a branch, even if target exists, --list list branch names, -l, --create-reflog create the branch's reflog, --edit-description edit the description for the branch, -f, --force force creation (when already exists), --no-merged <commit> print only not merged branches, --merged <commit> print only merged branches, --column[=<style>] list branches in columns, ] at com.atlassian.bamboo.plugins.git.GitCommandProcessor.runCommand(GitCommandProcessor.java:551) at com.atlassian.bamboo.plugins.git.GitCommandProcessor.getBranchForSha(GitCommandProcessor.java:427) at com.atlassian.bamboo.plugins.git.NativeGitOperationHelper.getBranchForSha(NativeGitOperationHelper.java:512) at com.atlassian.bamboo.plugins.git.GitRepository.collectChangesSinceLastBuild(GitRepository.java:241) at com.atlassian.bamboo.plugins.git.GitRepository.collectChangesForRevision(GitRepository.java:204) at com.atlassian.bamboo.v2.trigger.DefaultChangeDetectionManager.collectChangesSinceLastBuildInternal(DefaultChangeDetectionManager.java:323) ... 33 more Caused by: com.atlassian.utils.process.ProcessException: Non-zero exit code: 129 at com.atlassian.utils.process.PluggableProcessHandler.complete(PluggableProcessHandler.java:69) at com.atlassian.utils.process.ExternalProcessImpl.wrapUpProcess(ExternalProcessImpl.java:659) at com.atlassian.utils.process.ExternalProcessImpl.finish(ExternalProcessImpl.java:161) at com.atlassian.utils.process.ExternalProcessImpl.execute(ExternalProcessImpl.java:114) at com.atlassian.bamboo.plugins.git.GitCommandProcessor.runCommand(GitCommandProcessor.java:543) ... 38 more