Details
-
Bug
-
Resolution: Unresolved
-
Low
-
None
-
6.6.1
-
None
-
3
-
Severity 3 - Minor
-
1
-
Description
Steps to Reproduce
- pick a name that is not a revision number, neither a tag name nor a branch name
- run a customised build and use this name in the revision field
- run the build
Expected Results
The UI will check if that revision can be checked out and will tell the user that revision is not available
Actual Results
The build is not run and the UI shows the below misleading error:
The ERROR will show up in the *<Bamboo_Home>/logs/atlassian-bamboo.log file:
2018-08-22 17:50:04,009 INFO [http-nio-8085-exec-5] [com.atlassian.bamboo.filter.AccessLogFilter] admin GET http://localhost:8085/bamboo/rest/troubleshooting/1.0/check/admin?_=1534971003837 411884kb 2018-08-22 17:50:04,027 ERROR [6-DelayedChangeDetectionThread:pool-12-thread-10] [com.atlassian.bamboo.chains.ChainExecutionManagerImpl] Plan 'OT-BOL' could not be started. Exception: com.atlassian.bamboo.plugins.git.GitCommandException: command [/usr/bin/git branch -a --contains name] failed with code 129. Working directory was [/Users/dsantos/atlassian/bamboo/6.6.1/home/xml-data/build-dir/_git-repositories-cache/655a2358c76d6e2fd84ee7291374e2b14affb852]., stderr: error: malformed object name name usage: git branch [<options>] [-r | -a] [--merged | --no-merged]
Workaround
On git repositories you can use any of these values in the revision field:
- Revision number
- Branch name
- Tag name
Make sure the value exists in one of the three categories above before running the build.