You mean because plugin left me in the detach head status i need first to do checkout and after that all git commands?
Correct, so you need to checkout the branch first before making any changes in the work space.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I will try that tomorrow and inform you after
Thanks in advance
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Welcome to the Atlassian Community.
You can use the standard git push command to push changes done by your Jenkins job back to the repository in Bitbucket.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
After plugin had finished ferching repo in part of windows batch i created txt file. Git add pass git commit pass bit when i want to push simpy with git push i got error ( to use git push origin HEAD:name of the branch.).
I've changed job and put this command and jenkoms job never finish executing this comand. I have to abort job.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What happens if you change the push command to git push origin HEAD or git push origin <name of the current branch>?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Job tried to execute command but never finish( infinitive loop ) so i had to abort job to exit.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Also, are you checking out the branch in question as part of your script? If not then you first have to checkout the branch before making any changes, Jenkins will by default checkout a commit.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You mean because plugin left me in detach head i need to checkout first?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.