User forums > General (but related to Code::Blocks)

CodeBlocks being called from hudson (on linux)

<< < (7/10) > >>

Jenna:

--- Quote from: killerbot on January 02, 2011, 10:42:14 am ---I can wait for your build till tomorrow, no problem.
Have some other stuff to carry out today.

--- End quote ---
You can now try this one: http://apt.jenslody.de/downloads/codeblocks_con_suse11.3_64.tar.bz2 .

Build on a fresh openSUSE 11.3 install, no special repos.

killerbot:
yes; this is again a step forward, here's the output, where we can see there are still a few little issues :

--- Code: ---+ /home/killerbot/BurnTemp/output/run_con.sh --personality=hudson --rebuild --target=Debug Arrays/Arrays.cbp
17:51:19: Error: Directory '//.codeblocks/' couldn't be created (error 13: Permission denied)
Scanning for plugins in /home/killerbot/BurnTemp/output/share/codeblocks/plugins

:
The file compiler.zip could not be found.
Please check your installation.
Compiler: loaded
Loaded 1 plugins
Scanning for plugins in /home/killerbot/BurnTemp/output/share/codeblocks/plugins
Loaded 1 plugins
Loading:
Compiler
Added compiler "GNU GCC Compiler"
Added compiler "Intel C/C++ Compiler"
Added compiler "SDCC Compiler"
Added compiler "Tiny C Compiler"
Added compiler "GDC D Compiler"
Added compiler "LLVM D Compiler"
Added compiler "Digital Mars D Compiler"
Added compiler "GNU ARM GCC Compiler"
Added compiler "GNU AVR GCC Compiler"
Added compiler "GNU GCC Compiler for PowerPC"
Added compiler "GNU GCC Compiler for TriCore"
Opening /var/lib/hudson/jobs/ArraysTest/workspace/Arrays/Arrays.cbp
Loading project file...
Parsing project file...
Loading target Debug
Loading target Release
Loading project files...
3 files loaded
Done loading project in 3ms
Project's base path: /var/lib/hudson/jobs/ArraysTest/workspace/Arrays/
Project's common toplevel path: /var/lib/hudson/jobs/ArraysTest/workspace/Arrays/
done
-------------- Clean: Debug in Arrays ---------------
-------------- Build: Debug in Arrays ---------------
Compiling: StructWithConstructor.cpp
Compiling: main.cpp

=== Arrays, Debug ===
In function 'int main()':
/var/lib/hudson/jobs/ArraysTest/workspace/Arrays/main.cpp: In function 'int main()':
error: expected ';' before 'return'
/var/lib/hudson/jobs/ArraysTest/workspace/Arrays/main.cpp:40:2: error: expected ';' before 'return'

--- End code ---

* failed creation of directory
* compiler.zip not found

NOTE : the compiler error have been put there on purpose, however in my current setup hudson thinks the build went ok. Could be hudson needs further tuning, or maybe CB doesn't return with an error in case of a compiler failure ?

Jenna:
It should not try to load compiler.zip, the correct file is con_compiler.zip..
It's hardcoded only to look for con_compiler as plugin and not to load (or try to load) other plugins (at the moment), so I wonder what happens.

The  fact that the .codeblocks folder can not be created is a access problem, but the pcae where it tries to create it is strange.

I will see what happens, if I try it as user without home directory on openSuse.

Jenna:
Next try: http://apt.jenslody.de/downloads/codeblocks_con_suse11.3_64-20110104-1.tar.bz2

fixed:
* compiler.zip error-message is gone(was my fault)
* exitcode shoud be corect now (wxWidgets/linux(?) issue), was a little more tricky to debug and fix
* "Nothing to be done"-message is no longer shown after any run
* Log messages that go int "Build messages" are no longer shown, just messages for "Build log"

killerbot:
I can confirm all improvements.
Nice output, which can be parsed by hudson subparsers, CB returns with failure code when compilation failed, so hudson knows the build failed. No other Cb warnings (file access, compiler.zip).

Looks good.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version