[Lunar-commits] <moonbase-other> jenkins: continuous integration server

Stefan Wold ratler at lunar-linux.org
Mon Oct 27 22:22:54 CET 2014


commit a9f784bc50b14545ceab8a8d0fcd77ee5219ccbb
Author: Stefan Wold <ratler at lunar-linux.org>
Date: Mon, 27 Oct 2014 22:22:24 +0100
URL: https://github.com/lunar-linux/moonbase-other/commit/a9f784bc50b14545ceab8a8d0fcd77ee5219ccbb

jenkins: continuous integration server
---
  devel/jenkins/BUILD                     | +4/-0     
  devel/jenkins/DEPENDS                   | +1/-0     
  devel/jenkins/DETAILS                   | +16/-0    
  devel/jenkins/PRE_BUILD                 | +1/-0     
  devel/jenkins/config.d/jenkins          | +11/-0    
  devel/jenkins/systemd.d/jenkins.service | +22/-0    
  devel/jenkins/tmpfiles.d/jenkins.conf   | +2/-0     
  7 files changed, 57 insertions(+)

--- /dev/null
+++ b/devel/jenkins/BUILD
@@ -0,0 +1,4 @@
+add_priv_user jenkins:jenkins -d /var/lib/jenkins &&
+prepare_install &&
+install -Dm644 $SOURCE_CACHE/$SOURCE /usr/share/java/jenkins/jenkins.war &&
+install -dm750 -o jenkins -g jenkins /var/lib/jenkins
--- /dev/null
+++ b/devel/jenkins/DEPENDS
@@ -0,0 +1 @@
+depends %JAVA_SDK
--- /dev/null
+++ b/devel/jenkins/DETAILS
@@ -0,0 +1,16 @@
+          MODULE=jenkins
+         VERSION=1.586
+          SOURCE=${MODULE}-${VERSION}.war
+ SOURCE_URL_FULL=http://mirrors.jenkins-ci.org/war/$VERSION/jenkins.war
+      SOURCE_VFY=sha256:d7959b5ac134aa6e49e577e824856c53966df400903ac5b0f31d6bf0a47eb8ba
+        WEB_SITE="http://jenkins-ci.org/"
+         ENTERED=20141027
+         UPDATED=20141027
+           SHORT="Extendable continuous integration server"
+
+ARCHIVE=off
+LDD_CHECK=off
+        
+cat <<EOF
+A java based extendable continuous integration server.
+EOF
--- /dev/null
+++ b/devel/jenkins/PRE_BUILD
@@ -0,0 +1 @@
+true
--- /dev/null
+++ b/devel/jenkins/config.d/jenkins
@@ -0,0 +1,11 @@
+JAVA=/usr/bin/java
+JAVA_ARGS="-Djava.awt.headless=true"
+#JAVA_ARGS=-Xmx256m
+JAVA_OPTS=
+JENKINS_USER=jenkins
+JENKINS_HOME=/var/lib/jenkins
+JENKINS_WAR=/usr/share/java/jenkins/jenkins.war
+JENKINS_WEBROOT=--webroot=/var/cache/jenkins/war
+JENKINS_PORT=--httpPort=8080
+JENKINS_AJPPORT=--ajp13Port=-1
+JENKINS_COMMAND_LINE="$JAVA $JAVA_ARGS $JAVA_OPTS -jar $JENKINS_WAR $JENKINS_WEBROOT $JENKINS_PORT $JENKINS_AJPPORT"
--- /dev/null
+++ b/devel/jenkins/systemd.d/jenkins.service
@@ -0,0 +1,22 @@
+[Unit]
+Description=Jenkins CI server
+After=network.target
+
+[Service]
+User=jenkins
+Type=simple
+EnvironmentFile=/etc/config.d/jenkins
+StandardOutput=syslog
+StandardError=syslog
+SyslogIdentifier=jenkins
+ExecStart=/bin/sh -c 'eval $JENKINS_COMMAND_LINE'
+OOMScoreAdjust=-1000
+LimitCPU=infinity
+LimitFSIZE=infinity
+LimitDATA=infinity
+LimitCORE=0
+LimitAS=infinity
+LimitLOCKS=infinity
+
+[Install]
+WantedBy=multi-user.target
--- /dev/null
+++ b/devel/jenkins/tmpfiles.d/jenkins.conf
@@ -0,0 +1,2 @@
+D /var/cache/jenkins 0755 jenkins jenkins -
+R /var/cache/jenkins




More information about the Lunar-commits mailing list