summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/reproducible_build_service.sh19
-rw-r--r--hosts/jenkins/etc/systemd/system/reproducible_build@service12
2 files changed, 31 insertions, 0 deletions
diff --git a/bin/reproducible_build_service.sh b/bin/reproducible_build_service.sh
new file mode 100755
index 00000000..96046998
--- /dev/null
+++ b/bin/reproducible_build_service.sh
@@ -0,0 +1,19 @@
+#!/bin/sh
+
+# Copyright © 2017 Holger Levsen (holger@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@service b/hosts/jenkins/etc/systemd/system/reproducible_build@service
new file mode 100644
index 00000000..dc465f75
--- /dev/null
+++ b/hosts/jenkins/etc/systemd/system/reproducible_build@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