Date: Sat, 4 Oct 2014 02:53:22 +0000 From: Steve Wills <swills@freebsd.org> To: Craig Rodrigues <rodrigc@freebsd.org> Cc: "freebsd-testing@freebsd.org" <freebsd-testing@freebsd.org>, freebsd-pkg@freebsd.org Subject: Re: Integrating pkg test results into Jenkins Message-ID: <20141004025319.GF10488@mouf.net> In-Reply-To: <CAG=rPVeydri19EgdTaAP1t%2BVFKRG4UN8jpkN8Trx9LG_sCmxug@mail.gmail.com> References: <CAG=rPVeydri19EgdTaAP1t%2BVFKRG4UN8jpkN8Trx9LG_sCmxug@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Oct 02, 2014 at 01:22:55AM -0700, Craig Rodrigues wrote: > Hi, > > I notice that at http://jenkins.mouf.net/job/pkg/ you are using kyua to > test pkg. > > Instead of producing an HTML page of the test results, you may wish > to integrate the output of the tests directly into Jenkins. > > You can do this by: > > (1) In your Jenkins job's Build section, add this to the end: > > set +e > # You don't want the job to abort here if kyua returns > # non-zero status due to any test failurs > kyua test > kyua_status=$? > set -e > > kyua report-junit --output=$WORKSPACE/test-report.xml > exit $kyua_status > > (2) In your Jenkins job's Post-Build Actions, add: > > "Publish JUnit test result report" > > "Test Report XMLs" -> test-report.xml > > > The end result is quite nice, and looks like this: > > https://jenkins.freebsd.org/jenkins/job/FreeBSD_HEAD-tests2/8/testReport/ Thanks for the suggestion, results are here: http://jenkins.mouf.net/job/pkg/lastCompletedBuild/testReport/ Steve
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20141004025319.GF10488>