Author Topic: Jenkins execute command line never completes  (Read 402 times)

Offline Orione

  • Single posting newcomer
  • *
  • Posts: 6
Jenkins execute command line never completes
« on: March 24, 2017, 02:28:31 am »
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.
« Last Edit: March 24, 2017, 02:35:25 am by Orione »

Offline stahta01

  • Lives here!
  • ****
  • Posts: 5870
    • My Best Post
Re: Jenkins execute command line never completes
« Reply #1 on: March 24, 2017, 03:31:22 am »
Other than to remove this option; since I think it uses a GUI to display info and this might be cause Jenkins to lockup.
Code: [Select]
--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++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Testing, compiling CB Trunk against wxWidgets 3.0.2.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5011
Re: Jenkins execute command line never completes
« Reply #2 on: March 24, 2017, 07:11:51 am »
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.

Offline Orione

  • Single posting newcomer
  • *
  • Posts: 6
Re: Jenkins execute command line never completes
« Reply #3 on: March 24, 2017, 08:00:03 am »
@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.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?