From owner-freebsd-pkg@FreeBSD.ORG Thu Oct 2 08:22:58 2014 Return-Path: Delivered-To: freebsd-pkg@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 8C4983C2; Thu, 2 Oct 2014 08:22:58 +0000 (UTC) Received: from mail-la0-x22a.google.com (mail-la0-x22a.google.com [IPv6:2a00:1450:4010:c03::22a]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B8234BB2; Thu, 2 Oct 2014 08:22:57 +0000 (UTC) Received: by mail-la0-f42.google.com with SMTP id mk6so1926581lab.1 for ; Thu, 02 Oct 2014 01:22:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:message-id:subject:from:to:cc:content-type; bh=oEWjuxV1YXWU0Er6fXqHlyPLnAYR2IYVAuUnSL/z0GU=; b=ZHW+gpFFj8dr5HH55B1BaAkTCw5W/6NGZhMSh/LITwqwiIGEzatseZYg8cByA2pAsr kuPnkENpBvG7dw4IOS/pwn/hlip3pYGrwljzxGCx1SUxGxjsgySLiCKlJp6rbOShspyk iP6rtHFBm+AxFc1Koc47+XIB4RtOpBp3dsemB+f4JHvbCbS1eC4sRh0ymVuVvyDyL/x2 pVgm6TqYEdmvDyu9PIBz6dy1ria2+IkaIjwIhObPlKdsElZOVBBRO0BiG/1N3pyNafMY 4YuIjExAWdlDEN3+HnZN8wl93iUqB/XgGc7te5V7Que52hbJq4loZ86QrdWLmIg7V7bD UTfw== MIME-Version: 1.0 X-Received: by 10.112.134.101 with SMTP id pj5mr57378408lbb.47.1412238175798; Thu, 02 Oct 2014 01:22:55 -0700 (PDT) Sender: crodr001@gmail.com Received: by 10.112.131.66 with HTTP; Thu, 2 Oct 2014 01:22:55 -0700 (PDT) Date: Thu, 2 Oct 2014 01:22:55 -0700 X-Google-Sender-Auth: PfEbI8VV8wvxFTA96QBzciEt8X4 Message-ID: Subject: Integrating pkg test results into Jenkins From: Craig Rodrigues To: Steve Wills Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: "freebsd-testing@freebsd.org" , freebsd-pkg@freebsd.org X-BeenThere: freebsd-pkg@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Binary package management and package tools discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Oct 2014 08:22:58 -0000 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/ -- Craig