How to check the Console Output for a specific string and raise an error on the Build? [message #1719857] |
Tue, 12 January 2016 10:55  |
Eclipse User |
|
|
|
Hi all
This is my first post.
I have Hudson configured for building a project. And the console output, after building is, as follows:
Compiling ./main.py ...
Sorry: IndentationError: ('expected an indented block', ('./main.py', 8, 6, 'thread.start_new_thread( foo.FooThread, () )\n'))
Compiling ./udpReceiver.py ...
<<<<< build finished!
POST BUILD TASK : SUCCESS
END OF POST BUILD TASK : 0
Deleting project workspace...
done
Finished: SUCCESS
As you can see, I have an Indentation Error....and Hudson says that the build job finished with success.
What I want is something like this:
Check if the string "IndentationError" is presented on the console output ... if so, than the build should be:
Finished: FAILED!!!!!!!!
How can I accomplish this?
Thanks
|
|
|
|
Powered by
FUDForum. Page generated in 0.13125 seconds