Re: Problem polling GIT projects

Dana Tolbert <[email protected]>
Newsgroups gmane.comp.java.cruise-control.user
Message-ID <[email protected]>
Thanks for your responses.  There was definitely an authentication problem.  CruiseControl was running under the Clearcase privileged user which does not have a domain account.  Following Julian's suggestion I tried to perform operations with the Clearcase priv ID in the directory that was being polled, and they failed until I tried with my personal domain acct (which was used to create the clone initially;  thanks for your advise Julian.  
So I got past being hung, but encountered *other* problems running CruiseControl properly as under my domain account.  

--------------------------------------------------
To try to get past the new errors I tried Dan's suggestion of adding -debug  to the CruiseControl command that runs Cruise.  I commented all other projects out of the cruise config file except one toy project for GIT.
The CruiseControl config file now looks like:

<plugin name="clearcaseviewstrapper"  	classname="net.sourceforge.cruisecontrol.bootstrappers.ClearCaseViewstrapper"/>

<plugin name="git" 	classname="net.sourceforge.cruisecontrol.sourcecontrols.Git"/>

<plugin name="gitbootstrapper"  	classname="net.sourceforge.cruisecontrol.bootstrappers.GitBootstrapper"/>
... 
...[[[[ some completely unrelated junk]]]]
...
  <project name="testing" buildafterfailed="false">
	<schedule interval="5">
		<ant
			antscript		= "C:/BuildTools/Ant/apache-ant-1.6.5/bin/ant.bat" 
			antWorkingDir	= "C:/BuildTools/Ant//bin"
			buildfile		= "C:/dtolbert_dev/testing/bin/build.xml"
			target		= "CRUISE_compile_int"/>
	</schedule>

    <listeners>
      <currentbuildstatuslistener file="logs/${project.name}/buildstatus.txt"/>
    </listeners>

    <modificationset quietperiod="60">
      <git localWorkingCopy="C:/dtolbert_dev/${project.name}" />
    </modificationset>

    <bootstrappers>
      <gitbootstrapper localWorkingCopy="C:/dtolbert_dev/${project.name}/" />
    </bootstrappers>

    <log dir="logs/${project.name}">
      <merge dir="C:/dtolbert_dev/${project.name}/log"/>
    </log>

	<publishers>
	[ removed by me to shorten email]
    </publishers>

  </project>  

-------------------------------------

Now it returns different errors:

...
...  
Caused by: java.io.IOException: Cannot run program "git" (in directory "C:\dtolbert_dev\testing"): CreateProcess error=2, The system cannot find the file specified
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:459)
----------------------------------
I've been through the entries in the config file with a fine tooth comb and everything maps correctly to existing files/dirs.  I cannot determine what file it is looking for, and I am not sure why it can't run git in the C:\dtolbert_dev\testing directory; when I can manually run git there from the cmdline.  

Julian/Dan -  Many thanks for your helpful suggestions.  If you have any other ideas please pass them on to me..

Dana

---------------------------------------------------------------------------------------------------------------------
 
-----Original Message-----
From: Dan Rollo [mailto:[email protected]] 
Sent: Friday, April 01, 2011 3:43 PM
To: [email protected]
Subject: Re: [Cruisecontrol-user] Problem polling GIT projects

Along the same lines as Julian's suggestion: you might try running with 
the -debug argument 
(http://cruisecontrol.sourceforge.net/gettingstartedbindist.html#Command_Line_Options), 
and watch the console output to see exactly which command CC is issuing.

If that doesn't shed light, then try issuing those commands manually and 
see what happens.



Dan


From: Julian Simpson <[email protected]>
Subject: Re: [Cruisecontrol-user] Problem polling GIT projects
To: [email protected]
Message-ID:
	<[email protected]>
Content-Type: text/plain; charset="windows-1252"

On 1 April 2011 04:22, Dana Tolbert <[email protected]> wrote:

 > >
 > > ?
 > >
 > > [cc]Mar-31 19:35:23 Main          - CruiseControl Version 2.8.2 
Compiled on
 > > June 16 2010 2010
 > >
 > > [cc]Mar-31 19:35:23 LConfigManager- reading settings from config file
 > > [\\<RmtServer>\release\conf\CRUISE_config
 > >
 > > _sicmbldtst01.xml]
 > >
 > > [cc]Mar-31 19:35:24 trolController- projectName = [Pluto]
 > >
 > > [cc]Mar-31 19:35:24 LConfigManager- using settings from config file
 > > [\\<RmtServer>\release\conf\CRUISE_config_s
 > >
 > > icmbldtst01.xml]
 > >
 > > [cc]Mar-31 19:35:24 ProjectConfig - No previously serialized 
project found
 > > [C:\BuildTools\CruiseControl\build\
 > >
 > > Pluto.ser], forcing a build.
 > >
 > > [cc]Mar-31 19:35:24 Project       - Project Pluto starting
 > >
 > > [cc]Mar-31 19:35:24 Project       - Project Pluto:  idle
 > >
 > > [cc]Mar-31 19:35:24 Project       - Project Pluto started
 > >
 > > [cc]Mar-31 19:35:24 Project       - Project Pluto:  in build queue
 > >
 > > [cc]Mar-31 19:35:24 BuildQueue    - BuildQueue started
 > >
 > > [cc]Mar-31 19:35:24 BuildQueue    - now adding to the thread queue: 
Pluto
 > >
 > > [cc]Mar-31 19:35:24 Project       - Project Pluto:  bootstrapping
 > >
 > >
 > >
 > > It stops right here and goes no further.
 > >
 > >
 > >
My guess is that the git process is waiting for authentication, or
something.  Two thoughts:

1) You could use process explorer to prove that the Java process for
CruiseControl has a git subprocess; and
2) What happens when you do a 'git pull' in that directory, as the user that
runs CruiseControl?

J.
-- 

------------------------------------------------------------------------------
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and 
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
_______________________________________________
Cruisecontrol-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user
________________________________________________________________________
The preceding e-mail message (including any attachments) contains
information that may be confidential, be protected by the
attorney-client or other applicable privileges, or constitute non-public
information. It is intended to be read only by the individual or entity
to whom it is addressed or by their designee. If you are not an intended
recipient of this message, please notify the sender by replying to this
message and then delete it from your system. You are on notice that
further use, dissemination, distribution, or reproduction of this
message is strictly prohibited and may be unlawful.


------------------------------------------------------------------------------
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and 
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.