Jenkins job hangs while pushing commits to Git repo -
i'm using jenkins 2.74.
i'm trying push commits git repo after doing changes.
this pipeline code:
stage('push git') { steps{ bat returnstdout: true, script: '"c:\\program files\\git\\bin\\git.exe" add -a' bat returnstdout: true, script: '"c:\\program files\\git\\bin\\git.exe" commit -m "upadte yaml"' bat returnstdout: true, script: '"c:\\program files\\git\\bin\\git.exe" push -u origin master' } }
but, reason, job cannot completed , it's stuck this:
i tried on machine, using windows cmd, , works.
not on jenkins.
what doing wrong?
Comments
Post a Comment