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/00dbb024-1cb8-47f5-bdb5-255c3e2f0907%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.