3

I'm running a CCNet service on my build server to build a Git repository-based solution. The Git repository is password protected. Is there a way to set the username and password for the source control task?

<sourcecontrol type="git"> </sourcecontrol> 

1 Answer 1

6

method 1

if you don't care about security, embed password in URL string

http://user:[email protected]/abc/def.git 

method 2

use a git credential helper to store username and password (more secure)

msysgit 1.8.1 or later: set config to enable the built-in git-credential-wincred [credential] helper = wincred

or install git-credential-winstore for older msysgit

Sign up to request clarification or add additional context in comments.

2 Comments

For security reason, not all servers support method 1. googlecode is an example not to support method 1.
method 2 didn't help for TFS. Cruise Control user is a user that is allowed to access and using method 1 works. But method 2 would be prefered

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.