I try to make a simple git merge command in an inline script task.
This script task is executed just after a source code checkout task (on master).
This is my script task :
git merge develop
This is the error:
fatal: develop - not something we can merge
The 2 branches can be merged so I don't understand why I have this error
the local repository for your plan is created via
git init
git fetch
You probably need to fetch the branch to your repo first. Try executing your script task command manually in the plan build directory.
BTW. Is the branch integration feature not enough for your use case?
Maybe the branch integration feature can help me but I don't know how.
I have multiple jobs
Do you know any good tutorial or example on how to achieve that ?
I already read bamboo documentation and it's not clear enough for me
Thank you in advance
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please check if enabling Gatekeeper mode on that branch works for you then. It will merge with master only if the build is succesful.
Tagging will still not work unless you explicitely hook up your git checkout to repository
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
When you say build you mean the whole plan ?
develop branch will be merged to master only if the whole plan is successful ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ok, i managed to merge my branch with the gatekeeper mode but it seems the merge appens at the end of the plan. Is it true ?
Is it possible to launch the merge after a job or a stage ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This post explains it very well: http://blogs.atlassian.com/2012/04/bamboofeature-branch-continuous-integration-hg-git/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.