News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

Jenkins execute command line never completes

Started by Orione, March 24, 2017, 02:28:31 AM

Previous topic - Next topic

Orione

I am trying to run code::blocks in command line mode.
Jenkins is running on a Windows 10 x64 system.
Execution is activated by Jenkins via batch file on a Windows 10 x64 system.

Following is the command line call:

"C:\Program Files (x86)\CodeBlocks\\"codeblocks.exe /na /nd /ns --batch-build-notify --rebuild --target="Release" ".\\"MyProject.cbp

Execution of this command keeps running and never completes.

Batch file works fine if executed with double click.

Any hint on how to make it to work?

Thanks everyone.

stahta01

Other than to remove this option; since I think it uses a GUI to display info and this might be cause Jenkins to lockup.

--batch-build-notify

I have no suggestion of what is needed to get Code::Blocks to run under the "Continuous integration" program called Jenkins.

You can also try some of the other options from http://wiki.codeblocks.org/index.php/Code::Blocks_command_line_arguments#Using_command_line_arguments

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

killerbot

I have done this before (on linux that is), and I used for that a special build made by jens, which kind of made CB GUI-less because indeed otherwise it keeps being stuck in the GUI interactive mode.

Orione

@stahta01: thanks!
I also tried without option "--batch-build-notify", no success. Nothing changes.

@killerbot: thanks!
I read some other posts on making Jenkins-Code::Blocks to work together by using "export DISPLAY=:2000.0" (reported in http://forums.next.codeblocks.org/index.php?topic=14928.0)
Unfortunately I am not aware of any way to make the same on a Windows system.

Do you think the special build by jens is still available?
Or do you know the effort it took to create it from development branch?