jenkins and kyua junit test output question

17 views
Skip to first unread message

Steve Wills

unread,
Oct 22, 2014, 11:31:15 AM10/22/14
to kyua-d...@googlegroups.com
Hi,

Was running into an issue with Jenkins and Kyua and wondered if anyone might
have any insight. The issue is in the pkg build test. This build failed:


due to test issues, but they don't show up in the junit output, I think. On the
other hand if you look at the html generated for this, it shows up there:


Any ideas what we need to change? I can send the job config or other details if needed.

Thanks,
Steve

Julio Merino

unread,
Oct 23, 2014, 5:55:10 AM10/23/14
to kyua-d...@googlegroups.com
Looks like you are not calling "kyua report-junit" anywhere, are you? And when you do that, you have to tell Jenkins where the file lives.

--
Julio Merino | BCD / PD SRE | jm...@google.com | +1 (347) 694-0576

Steve Wills

unread,
Oct 28, 2014, 9:15:59 AM10/28/14
to kyua-d...@googlegroups.com
I am. My build script in jenkins:

autoreconf -i && ./configure && make clean && make check HTML=${HOME}/.kyua/html/${BUILD_NUMBER}

set +e
kyua test
kyua_status=$?
set -e

kyua report-junit --output=$WORKSPACE/test-report.xml
exit $kyua_status

Jenkins is configured to read test-report.xml. Perhaps it's not reading it if the build fails?

Steve

Craig Rodrigues

unread,
Dec 6, 2014, 5:55:47 PM12/6/14
to kyua-d...@googlegroups.com
On Tue, Oct 28, 2014 at 6:15 AM, Steve Wills <swi...@freebsd.org> wrote:

I am. My build script in jenkins:

  autoreconf -i && ./configure && make clean && make check HTML=${HOME}/.kyua/html/${BUILD_NUMBER}

  set +e
  kyua test
  kyua_status=$?
  set -e

  kyua report-junit --output=$WORKSPACE/test-report.xml
  exit $kyua_status

Jenkins is configured to read test-report.xml. Perhaps it's not reading it if the build fails?

Look at the Jenkins online help by clicking the help/question mark icon
next to "Execute shell" in your Jenkins build job.  It is also here:

https://github.com/jenkinsci/jenkins/blob/84c76253862a2f36f813a7aa45b77d99c1616be4/core/src/main/resources/hudson/tasks/Shell/help.html

Shell jobs are invoked with "/bin/sh -ex" so will exit on the first failure in your
script.  Thus if your build fails, it will not execute the kyua commands.

--
Craig
 
Reply all
Reply to author
Forward
0 new messages