On Thu, Jun 14, 2012 at 6:41 AM, Christoph <[email protected]> wrote:
> Hello,
>
> I have a problem with jenkins stable on win7, running as system
> service, installed as described by the documentation.
> I use CodeBlocks as IDE and it can be trigered by command line, so i
> made a .bat file that builds my projekt using CodeBlocks command line
> execution.
> The .bat works exactly as intended when started by hand.
>
> The problem:
>  Jenkins hangs forever on the execution of the .bat file as soon as
> there is a gui call.
>
> If i write other things before the Codeblocks line, it works to. like
> "echo hello" or something.
> Jenkins does that successfully.
> But writing "explorer" into the .bat does not. Executing the same .bat
> manually however, i get an explorer window from win7.
>
> How can I execute GUI frames from within jenkins?
> I have to use the CodeBlocks ide, for compiling a huge projekt with
> several builds using several compilers.
>
> Thanks
> Chris

Are you running Jenkins as a service? If so, you need to make sure
that the service has the ability to interact with the desktop, see
[1]. Now, that being said, what options are you passing to CodeBlocks?

slide

1 - 
http://lostechies.com/keithdahlby/2011/08/13/allowing-a-windows-service-to-interact-with-desktop-without-localsystem/

-- 
Website: http://earl-of-code.com

Reply via email to