-
New Feature
-
Resolution: Fixed
-
Major
-
Windows 2003, Windows 7
Currently it does not appear that the GIT plugin supports private repositories on GIT repositories in the cloud.
I should be able to get code from an https location like so:
https://<user>@bitbucket.org/<user>/project.git
where:
<user> is the username used to login to bitbucket
I should also be able to specify the bitbucket username and password to Jenkins so that it can login to bitbucket on my behalf. This feature does not appear to exist currently.
Jenkins is attempting to execute the following (masked) command
git clone --progress -o master https://<user>@bitbucket.org/<user>/project.git C:\JenkinsService\workspace\test
If I execute the same command from the commandline it works:
C:\Program Files (x86)\Git\bin>git clone --progress -o master https://apgray@bit
bucket.org/apgray/estoreadmin.git C:\JenkinsService\workspace\test
Cloning into 'C:\JenkinsService\workspace\test'...
Password for 'bitbucket.org':
remote: Counting objects: 3, done.
remote: Total 3 (delta 0), reused 0 (delta 0)
Unpacking objects: 100% (3/3), done.
C:\Program Files (x86)\Git\bin>
Notice that it has asked for the bitbucket.org password of the <user> account.
Jenkins (it would appear) needs to be told about this password (Configure System page or job config page) and inject it into the clone process.