I set up Jenkins to detect a Github web hook (which it is detecting successfully, and executing the build step) when I push to a remote branch on my personal GitHub, however, it returns this error after the build is completed:
Pushing HEAD to branch DevBranch at repo origin
> git --version # timeout=10
using GIT_ASKPASS to set credentials
> git push https://github.com/user/project HEAD:DevBranch
ERROR: Failed to push branch DevBranch to origin
hudson.plugins.git.GitException: Command "git push https://github.com/user/project HEAD:DevBranch" returned status code 128:
stdout:
stderr: remote: Invalid username or password.
Beyond this, i cannot confirm why this is occurring.
other notes: when i do a push, it does ask for a passphrase for my key during a push or pull.
How can I set up Jenkins to properly push in the Git publisher step?
Thanks in advance.