Hudson CI Exit Code

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Hudson CI Exit Code

Usman Hussain
Hi Guys,

I am having a bit of problem at the moment with the exit codes Hudson
is spitting out.

I am a tester and have 4 projects in Hudson. 2 projects are fine and
spit out exit codes of 0 when they pass (therefore turning the hudson
light to green). The other 2 projects which are direct copies of the
first two spit out exit code: 15 despite Hudson showing that there are
no failures.

I have checked everything so far. My own environment file which
initiates a browser and that is not the issue. My wrapper file which
runs the scripts and talks to hudson and that is not a probelm either.

I have searched the net and cannot find any useful information
regarding Hudson's exit codes.
It would be awesome if some has had the same problem and managed to
solve it.
I am really stumped on where to begin and how to tackle the issue.
and help or pointers would be really helpful.

here is the last part of the console output:
This test had no errors of failures.

Your bundle is updated! Use `bundle show [gemname]` to see where
a bundled gem is installed.
+ echo 'status code: ' 0
status code:  0
+ bundle exec runtests -e trunk-auto -t piquette -h hudson -l es -v
btm -- --format junit --out logs/
/Users/ci/hudson/workspace/btm-smoke-test/bundle/ruby/1.8/bundler/gems/
chimera-testing-445d77a7ab2a/lib/test-utils/version.rb:3: warning:
already initialized constant VERSION
Environment: xxx.xxx.trunk-auto.dev.gamesys.corp
Cucumber args: --format junit --out logs/
------------------ firefox port: 55040 -----------------
Successful deposit!
------------------ firefox port: 55040 -----------------
Successful deposit!
------------------ firefox port: 55040 -----------------
------------------ firefox port: 55040 -----------------
------------------ firefox port: 55040 -----------------
------------------ firefox port: 55040 -----------------
------------------ firefox port: 55040 -----------------
------------------ firefox port: 55040 -----------------
---------------- exit code: 15 ---------------------
Recording test results
Sending e-mails to: [hidden email]
Finished: FAILURE


Kind regards,
Usman Hussain
Reply | Threaded
Open this post in threaded view
|

Re: Hudson CI Exit Code

Mark Waite
I believe the exit codes which are causing the Jenkins job to report a failure are the exit codes from your script, not the exit code from Jenkins (or Hudson).  You might try running the script interactively on the problem machine to see if you can deduce why that script returns a different exit code on the problem machines than on the "good" machines.

You could also create a trivial job which runs a script that only returns a 0 exit code, then run that job from Hudson on all your machines to confirm that Jenkins on all machines is honoring the exit code of your script.

Mark Waite


From: Usman Hussain <[hidden email]>
To: Jenkins Users <[hidden email]>
Sent: Tue, March 8, 2011 2:47:56 AM
Subject: Hudson CI Exit Code

Hi Guys,

I am having a bit of problem at the moment with the exit codes Hudson
is spitting out.

I am a tester and have 4 projects in Hudson. 2 projects are fine and
spit out exit codes of 0 when they pass (therefore turning the hudson
light to green). The other 2 projects which are direct copies of the
first two spit out exit code: 15 despite Hudson showing that there are
no failures.

I have checked everything so far. My own environment file which
initiates a browser and that is not the issue. My wrapper file which
runs the scripts and talks to hudson and that is not a probelm either.

I have searched the net and cannot find any useful information
regarding Hudson's exit codes.
It would be awesome if some has had the same problem and managed to
solve it.
I am really stumped on where to begin and how to tackle the issue.
and help or pointers would be really helpful.

here is the last part of the console output:
This test had no errors of failures.

[32mYour bundle is updated! Use `bundle show [gemname]` to see where
a bundled gem is installed.[0m
+ echo 'status code: ' 0
status code:  0
+ bundle exec runtests -e trunk-auto -t piquette -h hudson -l es -v
btm -- --format junit --out logs/
/Users/ci/hudson/workspace/btm-smoke-test/bundle/ruby/1.8/bundler/gems/
chimera-testing-445d77a7ab2a/lib/test-utils/version.rb:3: warning:
already initialized constant VERSION
Environment: xxx.xxx.trunk-auto.dev.gamesys.corp
Cucumber args: --format junit --out logs/
------------------ firefox port: 55040 -----------------
Successful deposit!
------------------ firefox port: 55040 -----------------
Successful deposit!
------------------ firefox port: 55040 -----------------
------------------ firefox port: 55040 -----------------
------------------ firefox port: 55040 -----------------
------------------ firefox port: 55040 -----------------
------------------ firefox port: 55040 -----------------
------------------ firefox port: 55040 -----------------
---------------- exit code: 15 ---------------------
Recording test results
Sending e-mails to: [hidden email]
Finished: FAILURE


Kind regards,
Usman Hussain