After trying this command, i still had an error which says error: RPC failed; result=22, HTTP code =404
fatal: The remote end hung up unexpectedly fatal: The remote end hung up unexpectedly Everything up-to-date However, I made changes in a file from my pipeline script and I am now surprised that it says everything is up to date On Sunday, 27 January 2019 22:14:03 UTC+1, Faad Sayaou wrote: > > 0 > > I have a stage at the end of my pipeline job which has to push changes > back to a particular Gitlab branch. After trying out several solutions > proposed on stackoverflow, I am still not able to push to the branch > > sh("git add .") > sh("git commit -a -m ' New changes'") > sh('git push https://${GIT_USERNAME}:${GIT_PASSWORD}@<REPO> ') > > I expected it to be pushed to the branch which it checked out from but I > get the following result on the console > > - git commit -a -m ' New changes' [detached HEAD bc78567] New changes > - Everything up-to-date > > any reason for this issue? > -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/7cd80d9e-ba4c-4326-ac54-a874e45c30ce%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.