Unable to select credentials when using git as Source Code Management

114 views
Skip to first unread message

Jenkins novice user

unread,
Jun 21, 2014, 11:41:35 AM6/21/14
to jenkins...@googlegroups.com

I am trying to use git as Source Code Management in jenkins. Since I am using git provided by google, I am using "Google Service Account from private key" credential to setup git.

I added that credentials at the top level into global credentials. However when I create new item to setup my project, and select git as my "Source Code Management" I do not see my credentials in the dropdown.



There is an option to add new credential on the same page, but when I add it, I still can not see it in the dropdown. What am I missing?

Stephen Connolly

unread,
Jun 21, 2014, 4:54:51 PM6/21/14
to jenkins...@googlegroups.com
The Git plugin expects either SSH credentials or Username+Password credentials. You have added a different type of credential, so it will not show up


--
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 jenkinsci-use...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ashish Khedekar

unread,
Jun 21, 2014, 5:54:00 PM6/21/14
to jenkins...@googlegroups.com
Thanks for the reply, 

but I am using git provided by google app engine. is there any other plugin or "Source code Management" option I need to use for that?

Ashish




--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/vOmnkDtEfaw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-use...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Ashish Khedekar.

Stephen Connolly

unread,
Jun 21, 2014, 7:02:56 PM6/21/14
to jenkins...@googlegroups.com

Have you even tried my suggestion?
Sent from my phone

Ashish Khedekar

unread,
Jun 21, 2014, 7:10:35 PM6/21/14
to jenkins...@googlegroups.com
Hi Stephen,

Yes I have tried both the options before. Sorry I should have mentioned this earlier.

1. When I tried to use "username with password" credential  (I am using my google account details) it still gives me 401 error 

Failed to connect to repository : Failed to connect to https://source.developers.google.com/p/strange-bay-617/r/default using credentials  (status = 401)

2. I am not using ssh public key to connect to google source code because it uses gcloud auth for authentication. 

Stephen Connolly

unread,
Jun 22, 2014, 2:39:34 AM6/22/14
to jenkins...@googlegroups.com
Afaik the git plugin does not support that auth scheme.
Reply all
Reply to author
Forward
0 new messages