Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Jun 2015 22:41:14 -0400
From:      Craig Rodrigues <rodrigc@FreeBSD.org>
To:        Michael Zhilin <mizhka@gmail.com>
Cc:        "freebsd-testing@freebsd.org" <freebsd-testing@freebsd.org>,  "freebsd-java@freebsd.org" <freebsd-java@freebsd.org>
Subject:   Re: Requests for Help: add FreeBSD procstat support to akuma library for Jenkins
Message-ID:  <CAG=rPVcrd6CCBHLOZwDS=m4LdAybWKGpq38_vCrtzLYoJVOqzA@mail.gmail.com>
In-Reply-To: <1435614385.5387.0@smtp.gmail.com>
References:  <CAG=rPVc=L9pOuXD5KSLtbPA=X=wOhBbFbHgQy%2BZVjCLU6Z6wVQ@mail.gmail.com> <8CA148D7-81AF-41F8-AA41-9D7700B27242@neville-neil.com> <558C62B6.6030004@FreeBSD.org> <CAG=rPVfYAnd2Adv0k_n5w=uPi6EqFmzJXhjbyAfLgy5cUE3TPg@mail.gmail.com> <559173E7.30603@FreeBSD.org> <1435614385.5387.0@smtp.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Jun 29, 2015 at 5:46 PM, Michael Zhilin <mizhka@gmail.com> 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.
     <dependency>
       <groupId>org.kohsuke</groupId>
       <artifactId>akuma</artifactId>
-      <version>1.9</version>
+      <version>1.10-SNAPSHOT</version>
     </dependency>
     <dependency>
       <groupId>org.kohsuke</groupId>

(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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAG=rPVcrd6CCBHLOZwDS=m4LdAybWKGpq38_vCrtzLYoJVOqzA>