Export git jobs using https

1,655 views
Skip to first unread message

Jeremy Smith

unread,
May 5, 2016, 3:38:58 PM5/5/16
to rundeck-discuss
Hello, I am trying to connect to our private gitlab repository using https because ssh is currently disabled, but I am not having any luck.  Does the rundeck-git plugin work with https?

Here are some details:

Rundeck Version: 2.6.4
On the Git Export page, I have the following:

 - Committer Name = rundeck (I created this account in gitlab).
 - I left SSH Key Storage Path blank
 - I set the Password Storage Path to a password object that contains the gitlab password for the rundeck user.  I also tried using the token instead of the password, but neither worked.
 - Format = yaml
 - Git URL = https://my.gitlab.host/gitlab/jsmith/Rundeck-Jobs.git  (this project exists in Gitlab and I can clone it successfully using the username and password I have provided to rundeck)

When I press the Setup button, I get this error in response:

Failed fetch from the repository: https://my.gitlab.host/gitlab/jsmith/Rundeck-Jobs.git: Authentication is required but no CredentialsProvider has been registered


Looking at the jgit documentation, it seems that the CredentialsProvider is not used for ssh connections, but is required for https connections, which could be the root of the problem.


Thanks,
Jeremy

Greg Schueler

unread,
May 5, 2016, 4:06:35 PM5/5/16
to rundeck...@googlegroups.com
Hi Jeremy,

try setting your git url to https://username@my.gitlab.host/gitlab/jsmith/Rundeck-Jobs.git, then specify the password via the password storage path.  You may need the token instead of the password in the stored password.

HTTP(S) authentication requires username+password, so the username is specified in the URL.

Commiter Name is the git committer name, not the username for the connection.

--
You received this message because you are subscribed to the Google Groups "rundeck-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rundeck-discu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rundeck-discuss/8761e7f4-72ec-4284-ac61-f3f00bc25995%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages