Requests for Help: add FreeBSD procstat support to akuma library for Jenkins
rodrigc at FreeBSD.org
Tue Jun 30 02:41:16 UTC 2015
On Mon, Jun 29, 2015 at 5:46 PM, Michael Zhilin <mizhka at gmail.com> wrote:
> Here is possible fix (at least works for me @FBSD10-stable):
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:
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
git checkout pr/9
(5) Build it
After this step, I verified that the akuma plugin with your change appears
(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
diff --git a/core/pom.xml b/core/pom.xml
index 252b0ee..d81c589 100644
@@ -513,7 +513,7 @@ THE SOFTWARE.
(8) Build Jenkins:
mvn clean install -pl war -am -DskipTests
(not all the Jenkins tests seem to work on FreeBSD yet)
(9) Run Jenkins:
java -jar jenkins.war
This will start Jenkins, which can be accessed via a web browser on port
(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!
More information about the freebsd-testing