Date: Wed, 1 May 2019 08:14:48 -0700 From: Enji Cooper <yaneurabeya@gmail.com> To: Susan Stanziano <susan.stanziano@xinuos.com> Cc: freebsd-testing <freebsd-testing@freebsd.org> Subject: Re: Running Kyua within Jenkins script Message-ID: <77328423-B1C8-469E-8081-EC567F1F2B9E@gmail.com> In-Reply-To: <1370244969.36126.1556722502941.JavaMail.zimbra@xinuos.com> References: <1370244969.36126.1556722502941.JavaMail.zimbra@xinuos.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> On May 1, 2019, at 07:55, Susan Stanziano <susan.stanziano@xinuos.com> wro= te: >=20 >=20 >=20 > Hi all,=20 >=20 >=20 >=20 >=20 > A question on running Kyua within a shell script on Jenkins.=20 >=20 >=20 >=20 >=20 > I=E2=80=99ve been automating test suites using Jenkins and added the=20 >=20 >=20 >=20 >=20 > =E2=80=9Ckyua test=E2=80=9D=20 >=20 >=20 >=20 >=20 > command to a shell script (default is /bin/sh) in Jenkins followed by=20 >=20 >=20 >=20 >=20 > the =E2=80=9Ckyua report=E2=80=9D command.=20 >=20 >=20 >=20 >=20 > For some reason, any commands after =E2=80=9Ckyua test=E2=80=9D do not get= executed.=20 >=20 >=20 >=20 >=20 > Separately, either command (test or report) runs correctly within my scrip= t on Jenkins.=20 >=20 >=20 >=20 >=20 > Is there something in =E2=80=9Ckyua test=E2=80=9D that after a run it kill= s further processes or is there something within Jenkins=20 >=20 > that would prevent subsequent commands from being executed after =E2=80=9C= kyua test=E2=80=9D completes?=20 >=20 >=20 >=20 >=20 > Or am I missing something simple here?=20 >=20 >=20 >=20 >=20 > Thanks for any suggestions,=20 Hi Susan, In addition to what Alan said about set -e maybe being an issue (add =E2= =80=9Cecho $-=E2=80=9C to your script to see what flags sh is being executed= with, e.g., =E2=80=9C-e=E2=80=9D), you should use =E2=80=9Ckyua report-html= =E2=80=9D to export the test data to Jenkins instead of having to parse the r= eport output. Some of the scripts which drive exporting the data to the FreeBSD Jenkin= s instance can be found here: https://github.com/freebsd/freebsd-ci/tree/mas= ter/scripts/test . It might not suit your needs out of the box, but you migh= t find some inspiration for writing your Jenkins code. Cheers, -Enji=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?77328423-B1C8-469E-8081-EC567F1F2B9E>