Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cruise Control.NET: how to set username and password for git repository task?

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>
like image 966
superkinhluan Avatar asked Nov 20 '25 12:11

superkinhluan


1 Answers

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

like image 166
linquize Avatar answered Nov 23 '25 15:11

linquize



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!