From owner-freebsd-testing@freebsd.org Tue Jun 30 02:41:16 2015 Return-Path: Delivered-To: freebsd-testing@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7C8E29902D8; Tue, 30 Jun 2015 02:41:16 +0000 (UTC) (envelope-from crodr001@gmail.com) Received: from mail-yk0-x230.google.com (mail-yk0-x230.google.com [IPv6:2607:f8b0:4002:c07::230]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3A81F1683; Tue, 30 Jun 2015 02:41:16 +0000 (UTC) (envelope-from crodr001@gmail.com) Received: by ykfy125 with SMTP id y125so132391591ykf.1; Mon, 29 Jun 2015 19:41:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=RnTYslrvFojDWj4JKozUt7Co7ZXLOXqb45fmgXVxRMA=; b=Rrj67lERKLFAc7iEOusOn1oDaPS4AWsoet/WxpP575ic8UMj2sOZq6AMOdSAirc5CO lCgn40Yv6Ayf0pxjvek7u8p/OLxpRpK6qEyrO124PsEJ/dG+Ifz/GjqoX5Txs+LTKK8T lxIE0zhTWgrP/iShHcNgIVyUvkKvvAmPGgiWVE9wBvYuhv3rCGN1sygRO//SLqF7hY6I mcxkW3LpC56I8ORFXpIIiOPFi6jfACV9krlnFSWCr4r6HX4ELa+HXkiRcST2ydAXTrHJ iYUo547CrmfaGVPNcVJNITpC2P64IIGb8rvln9yRpPrVkywgpvQF4jGfhLWAq96A/POK LR5w== MIME-Version: 1.0 X-Received: by 10.170.196.85 with SMTP id n82mr22565300yke.127.1435632075033; Mon, 29 Jun 2015 19:41:15 -0700 (PDT) Sender: crodr001@gmail.com Received: by 10.37.39.130 with HTTP; Mon, 29 Jun 2015 19:41:14 -0700 (PDT) In-Reply-To: <1435614385.5387.0@smtp.gmail.com> References: <8CA148D7-81AF-41F8-AA41-9D7700B27242@neville-neil.com> <558C62B6.6030004@FreeBSD.org> <559173E7.30603@FreeBSD.org> <1435614385.5387.0@smtp.gmail.com> Date: Mon, 29 Jun 2015 22:41:14 -0400 X-Google-Sender-Auth: fBG6XmW-Ud0wfWjIqf-BtATsAPE Message-ID: Subject: Re: Requests for Help: add FreeBSD procstat support to akuma library for Jenkins From: Craig Rodrigues To: Michael Zhilin Cc: "freebsd-testing@freebsd.org" , "freebsd-java@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 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: Tue, 30 Jun 2015 02:41:16 -0000 On Mon, Jun 29, 2015 at 5:46 PM, Michael Zhilin wrote: > Hi, > > Here is possible fix (at least works for me @FBSD10-stable): > https://github.com/kohsuke/akuma/pull/9 > > I figured out how to build Jenkins and test your patch. Your patch works!! Here is what I did: (1) Remove all cached plugins from maven rm -r $HOME/.m2 (2) Download your akuma source: git clone https://github.com/kohsuke/akuma (3) Edit akuma/.git/config and modify the "origin" section so that pull requests can be checked out: [remote "origin"] url = https://github.com/kohsuke/akuma fetch = +refs/heads/*:refs/remote/origin/* fetch = +refs/pull/*/head:refs/remotes/origin/pr/* (4) Switch to the code to your pull request cd akuma git checkout pr/9 (5) Build it mvn install After this step, I verified that the akuma plugin with your change appears under $HOME/.m2 (6) Check out jenkins: git clone https://github.com/jenkinsci/jenkins (7) Modify the pom.xml file in jenkins to build with your modified akuma plugin: diff --git a/core/pom.xml b/core/pom.xml index 252b0ee..d81c589 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -513,7 +513,7 @@ THE SOFTWARE. org.kohsuke akuma - 1.9 + 1.10-SNAPSHOT org.kohsuke (8) Build Jenkins: cd jenkins mvn clean install -pl war -am -DskipTests (not all the Jenkins tests seem to work on FreeBSD yet) (9) Run Jenkins: cd war/target java -jar jenkins.war This will start Jenkins, which can be accessed via a web browser on port 8080 (10) Access Jenkins via http://myhost:8080 . Navigate to Manage Jenkins -> Manage Plugins Select some plugins to install. Click "Download now and install after restart" (11) On next screen, verify that there is a checkbox next to "Restart Jenkins when installation is complete and no jobs are running" Before the akuma fix, this checkbox did not appear. (12) Verified that with this box checked, after downloading plugins, Jenkins restarted properly and ran with the new plugins. Again, bravo and thank you for the patch! -- Craig