stderr: remote: Invalid username or password.

+1 vote

Hi Everyone,

I am trying to push my code from jenkins repo to GitHub, but it shows me the bellow error.

ERROR: Failed to push merge to origin repository
hudson.plugins.git.GitException: Command "git push HEAD:master" returned status code 128:
stderr: remote: Invalid username or password.
fatal: Authentication failed for ''

	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$500(
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$8.execute(
	at hudson.plugins.git.GitPublisher.perform(
	at hudson.tasks.BuildStepMonitor$1.perform(
	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(
	at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(
	at hudson.model.Build$BuildExecution.post2(
	at hudson.model.AbstractBuild$
	at hudson.model.Run.execute(
	at hudson.model.ResourceController.execute(
Build step 'Git Publisher' marked build as failure
Finished: FAILURE
May 7 in Jenkins by akhtar
• 15,260 points

1 answer to this question.

0 votes


If your code is available in jenkins workspace and you want to upload this in GitHub, for that you have to provide your GitHub credentials to your jenkins job as shown in the given screenshot.

Hope this will help you.

answered May 7 by MD
• 34,440 points

Related Questions In Jenkins

0 votes
1 answer
0 votes
1 answer

Error while communicating with remote Oracle DB through Jenkins-CI

I was also facing the same problem. ...READ MORE

answered Apr 25, 2018 in Jenkins by shubham
• 6,910 points
0 votes
1 answer

Error while talking to remote Oracle DB using Jenkins-CI

I installed Oracle XE to talk to ...READ MORE

answered May 1, 2018 in Jenkins by shubham
• 6,910 points
0 votes
1 answer

Ansible or Jenkins pipelines for bigger jobs

Well, you are indeed well aware of ...READ MORE

answered Jun 16, 2018 in Jenkins by shubham
• 6,910 points
+13 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 26, 2018 in DevOps & Agile by DragonLord999
• 8,420 points
0 votes
1 answer
0 votes
1 answer