From owner-freebsd-testing@FreeBSD.ORG Thu Jun 18 15:48:45 2015 Return-Path: Delivered-To: freebsd-testing@hub.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 463318FB for ; Thu, 18 Jun 2015 15:48:45 +0000 (UTC) (envelope-from allanjude@freebsd.org) Received: from mx1.scaleengine.net (mx1.scaleengine.net [209.51.186.6]) by mx1.freebsd.org (Postfix) with ESMTP id 06D5A689 for ; Thu, 18 Jun 2015 15:48:44 +0000 (UTC) (envelope-from allanjude@freebsd.org) Received: from [192.168.1.2] (unknown [192.168.1.2]) (Authenticated sender: allanjude.freebsd@scaleengine.com) by mx1.scaleengine.net (Postfix) with ESMTPSA id 464EF9831 for ; Thu, 18 Jun 2015 15:48:38 +0000 (UTC) Message-ID: <5582E864.1010100@freebsd.org> Date: Thu, 18 Jun 2015 11:48:52 -0400 From: Allan Jude User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: freebsd-testing@freebsd.org Subject: Re: Requests for Help: add FreeBSD procstat support to akuma library for Jenkins References: In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Ckrhfg0r7BKcUuJWg8lJQBG2DPMqU8rfP" X-BeenThere: freebsd-testing@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Testing on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Jun 2015 15:48:45 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --Ckrhfg0r7BKcUuJWg8lJQBG2DPMqU8rfP Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 2015-06-18 11:05, Craig Rodrigues wrote: > Hi, >=20 > When setting up Jenkins, if you install new plugins, there > is a checkbox: >=20 > Restart Jenkins when installation is complete and no jobs are running >=20 > This checkbox allows you to restart Jenkins automatically when new > plugins are installed. This feature works on OS X, Linux, and Solaris,= > but not FreeBSD. >=20 > I tracked down the problem on FreeBSD. It turns out in this file > in the Jenkins core Jenkins: > https://github.com/kohsuke/hudson/blob/master/core/src/main/java/hudson= /lifecycle/UnixLifecycle.java >=20 > the akuma library ( https://github.com/kohsuke/akuma/ ) is used > to figure out what command-line arguments > were passed to the Java VM that is running Jenkins. > This allows Jenkins to restart the VM with the same command-line > arguments. >=20 > The akuma library has platform specific code for > OS X, Linux, and Solaris, but not FreeBSD. >=20 > I am a bit overstretched with multiple things at this point. > I was wondering if someone with Java coding experience can help > with the following. >=20 > (1) Take the akuma library from https://github.com/kohsuke/akuma/ >=20 > (2) Implement FreeBSD support in akuma, by having it execute > "procstat -c" to figure out the command-line arguments for a proc= ess. >=20 > (3) Make sure that all tests in akuma pass >=20 > (4) Send a GitHub pull request to incorporate the change upstream. >=20 >=20 > If we can get this functionality into akuma, then > we can eventually get this functionality into Jenkins itself. >=20 > This will make Jenkins behave more like on Linux, > and much nicer to upgrade plugins. >=20 > -- > Craig > _______________________________________________ > freebsd-testing@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-testing > To unsubscribe, send any mail to "freebsd-testing-unsubscribe@freebsd.o= rg" >=20 To help with this, I have an outstanding patch that adds libxo support to procstat, so it is easier to do stuff like this: https://reviews.freebsd.org/D2446 --=20 Allan Jude --Ckrhfg0r7BKcUuJWg8lJQBG2DPMqU8rfP Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (MingW32) iQIcBAEBAgAGBQJVguhrAAoJEBmVNT4SmAt+3JIQAO7dmAOmIbRurHnioZMGSuqk bZmTNE/+6zwg62RoDH1UUlTAwEaMZ5Yil8qTr9YYLk4Jec7CuqJaW9dYA8fOIPQT 2w8mSFdlbi2cfTdgm9P5DnkycwsokHVJjuY+MT6Wwuhkkj/hoBXM4uTTln1MYZto v8DPSdPn5YgBZQ3o07fQG4a0ZhlMxB09t1iizQ0L6mphYJUme7xJ/slrsZS7EEVV Nb1aEU3TJNPCqk4JuAyet4dg7Qz6g8BcijUYlKb4/Hu6qDxquFr0biXzfkLJ0F/q TZiYKNoJPCsXNcBdHdwoMf3Mk/bhDaNo0aWoweTEpgHGCV1ANrSfXbsyncHFIM0f z0qy3Vg/cmiDQpmlP7tIWVLTu1IoKZSMaQmy+LiWDuD2jxEgA3SjtDJON8TDOZEn PdnKZnbWhdZltQ4JajlNMhpdZcb2xtei11zmgIv4OTtCw0G0bOaCxzwIFc704M+t e18f/sSwFsJsmvKR97Njrwf1IdE3kouVGUcIRg8InMobs1UU9B3YUquXtnxF2+Q1 15HvFtvCgxVbDjXv4NRGCB0Yq7IPCS2b3IYmjYEPHCMYY7IT0TF3X/cJBLceL5+j WMpyw5yZM1yrTGQ4unJpwnrvDKbC8wTmRaA0R7i7ya281JSgV1/tStyFiBzeBpEf QRxHTnb8CZLgv2OmyvA3 =f9WH -----END PGP SIGNATURE----- --Ckrhfg0r7BKcUuJWg8lJQBG2DPMqU8rfP--