Hi,
Getting SSH/EXT protocol to work with draco is tricky. Here are the steps I did to get it to work ...
1) Install PuTTY http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html. PuTTY is used to make the ssh connection.
2) Create a batch file. I called mine "cvs-ssh.bat". The batch file is needed because draco does not know how to provide the password for the ssh protocol, it only knows pserver. The batch file should look like this ...
"@C:\Progra~1\PuTTy\Plink.exe -pw password %1 %2 %3 %4 %5 %6 %7 %8 %9"
If having the password exposed in the batch file is a problem, you can use a bat2exe program and make an exe out of it.
3) Use the system control panel to add a system environment variable of "CVS_RSH" and set the value to "C:\cvs-ssh.bat". Pull up a command line and type "set". Make sure you see something like "CVS_RSH=C:\cvs-ssh.bat" in the list.
4) in the Draco.builds.config (for version 1.6) file, make sure the is no <password> tag under cvs. When there is no password tag, no password is sent. This is important because cvs over SSH has a different syntax.
This should work for you. The disadvantage of this is that all cvs over ssh connection will now use the same password. But this is the work around for now. If I get time, I may change the way draco works so it support ssh.
~ Paul
----- Original Message ----- From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, September 22, 2004 1:34 PM
Subject: [Draconet-users] Draco and CVSNT
Hello,
I am working to get Draco.Net set up with CVSNT and I seem to be running into a few problems. When I attempt to run a build, it fails due to envionment issues. CVSROOT and CVS_RSH environment vars are not found regardless of who is running this service (domain account or local sys account). I can solve this by adding cvsnt.exe to the Draco bin folder; however, the build trips up when issuing rlog commands.
Here is a sample of the cvs update command being issued by Draco.Net service:
"cvs.exe" -d:ext:[EMAIL PROTECTED]:/repositories/cvs -q rlog -N -b -d>2004-09-22T12:39:37-0400 project
When this is run from Draco, I get the following:
Failed to process build 'dotNET'. The following exception occurred: System.ApplicationException: Process "cvs.exe" error. Exited with status: Failed. Command Details: "cvs.exe" -d:ext:[EMAIL PROTECTED]:/repositories/cvs -q rlog -N -b -d>2004-09-22T12:39:37-0400 dotNET Exit Code: 1. Stdout: Stderr: cvs rlog: warning: unrecognized response `'ssh' is not recognized as an internal or external command, ' from cvs server cvs rlog: warning: unrecognized response `operable program or batch file. ' from cvs server cvs [rlog aborted]: end of file from server (consult above messages if any) at Draco.Core.Util.ProcessRunner.Run(StartInfo startInfo, String output) in c:\draco-1.6.1-src\draco\draco.core\util\processrunner.cs:line 172 at Draco.Core.Util.ProcessRunner.Run(StartInfo startInfo) in c:\draco-1.6.1-src\draco\draco.core\util\processrunner.cs:line 117 at Draco.Core.Scc.CvsRepository.GetModifications(DateTime sinceDate) in C:\draco-1.6.1-src\draco\draco.core\scc\CvsRepository.cs:line 119 at Draco.Core.Runtime.BuildRunner.GetModifications(DateTime earliestModificationTime) in C:\draco-1.6.1-src\draco\draco.core\runtime\BuildRunner.cs:line 378 at Draco.Core.Runtime.BuildRunner.CheckForChanges(BuildType buildType, Boolean& changesSinceLastBuild) in C:\draco-1.6.1-src\draco\draco.core\runtime\BuildRunner.cs:line 288 at Draco.Core.Runtime.BuildRunner.Start(BuildType buildType) in C:\draco-1.6.1-src\draco\draco.core\runtime\BuildRunner.cs:line 206
When I run this command from the command line, I get "The parameter is incorrect". I am assuming this is from the rlog command option. Since the following command, without the ">", seems to work OK:
"cvs.exe" -d:ext:[EMAIL PROTECTED]:/repositories/cvs -q rlog -N -b -d2004-09-22T12:39:37-0400 project
I am using:
cvs.exe = 2.0.51.0 draco.net service = 1.6.1.0 beta vs.net = 1.1 framework windows 2000
Also, I am using SSH as my protocol. I havent seen much info on this approach. My attempt to get this working is to set CVSROOT and CVS_RSH as env variables and provide a link to plink.exe with the appropriate switches.... Seems to work ok from the command line.
Any help is appreciated!
Thanks,
Al
------------------------------------------------------- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php _______________________________________________ Draconet-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/draconet-users
------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ Draconet-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/draconet-users