[Qa-jenkins-scm] [jenkins.debian.net] 01/01: reproducible Debian: add first stub to move those 166 build jobs from jenkins to systemd as scheduler

Holger Levsen holger at layer-acht.org
Fri Apr 14 17:53:35 UTC 2017


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to branch master
in repository jenkins.debian.net.

commit 1541900e2987edf38b8453337e13019c1c4845ae
Author: Holger Levsen <holger at layer-acht.org>
Date:   Fri Apr 14 19:53:21 2017 +0200

    reproducible Debian: add first stub to move those 166 build jobs from jenkins to systemd as scheduler
    
    Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
 bin/reproducible_build_service.sh                     | 19 +++++++++++++++++++
 .../etc/systemd/system/reproducible_build at service     | 12 ++++++++++++
 2 files changed, 31 insertions(+)

diff --git a/bin/reproducible_build_service.sh b/bin/reproducible_build_service.sh
new file mode 100755
index 0000000..9604699
--- /dev/null
+++ b/bin/reproducible_build_service.sh
@@ -0,0 +1,19 @@
+#!/bin/sh
+
+# Copyright © 2017 Holger Levsen (holger at layer-acht.org)
+
+#
+echo $0
+echo $1
+export
+
+echo sleeping 5min now
+sleep 5m
+
+#script translates "arm64 builder12" to "arm64 builder12 sled3 sled 4"
+# <      h01ger> | but then its really simple: have a script, jenkins_build_cron_runner.sh or such, and start this with 4 params, eg, arm64, builder_12, codethink_sled11, codethink_sled14. the cron_runner script simple needs to set some variables like jenkins would do, redirect output 
+#   to a directory which is accessable to the webserver and run reproducible_build.sh. voila.
+# <      h01ger> | we could still make the logs accessable to browsers
+# <      h01ger> | and we need maintenance to cleanup the log files eventually
+# <      h01ger> | and translate that yaml to crontab entries
+
diff --git a/hosts/jenkins/etc/systemd/system/reproducible_build at service b/hosts/jenkins/etc/systemd/system/reproducible_build at service
new file mode 100644
index 0000000..dc465f7
--- /dev/null
+++ b/hosts/jenkins/etc/systemd/system/reproducible_build at service
@@ -0,0 +1,12 @@
+[Unit]
+Description=Build service for reproducible-builds jobs
+
+[Service]
+# Restart whenever the script exits, without rate limiting:
+Restart=always
+StartLimitInterval=0
+
+ExecStart=/srv/jenkins/bin/reproducible_build_service.sh %I
+
+[Install]
+WantedBy=multi-user.target

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git



More information about the Qa-jenkins-scm mailing list