Jenkins returned status code 128 with github

This error: stderr: Permission denied (publickey). fatal: The remote end hung up unexpectedly indicates that Jenkins is trying to connect to github with the wrong ssh key. You should: Determine the user that jenkins runs as, eg. ‘build’ or ‘jenkins’ Login on the jenkins host that is trying to do the clone – that is, … Read more

Updates were rejected because the tip of your current branch is behind hint: its remote counterpart. Integrate the remote changes (e.g [duplicate]

You need to merge the remote branch into your current branch by running git pull. If your local branch is already up-to-date, you may also need to run git pull –rebase. A quick google search also turned up this same question asked by another SO user: Cannot push to GitHub – keeps saying need merge. … Read more