Hi, 

I'm having trouble supplying my github credentials to a release build for a 
Maven project using the Jenkins credentials plugin.

When I use the form to supply the SCM credentials for a specific release, 
it works fine.  But it ends up putting my github password in the console 
log!  So I can't use that as a permanent solution, as I want to save the 
builds for my releases.

But when I use the github credentials plugin, I get the following error 
message in my build log...

[ERROR] Provider message:[ERROR] The git-push command failed.[ERROR] Command 
output:[ERROR] fatal: could not read Username for 'https://github.com': No such 
device or address[ERROR] -> [Help 1]


I am supplying my credentials with the username as my github account name and 
password, but Jenkins does not seem able to correctly supply this to the git 
commands it is using.


I am defining my SCM info in the Maven POM file like this...


<scm>

  <connection>scm:git:git://github.com/username/project.git</connection>

  
<developerConnection>scm:git:https://github.com/username/project.git</developerConnection>

  <url>http://github.com/username/project</url>

  <tag>HEAD</tag>

</scm>


I tried with both https as shown here and an SSH URL but both had the same 
issue.

Any idea on why it works okay when I supply the SCM password using the 
release form but not when I try to use a saved credential?

Thanks.

--Jeremy

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/2c49dadc-87eb-440e-96a2-c23d07f540bd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to