I\'m using jenkins pipeline (declarative synthax) and I want to push a commit to my remote repository.
Is there any way to accomplish this using the git plugin? Here
You can't use username:password for connecting to git repo in script.
You should use ssh key. Please see this answer for more information