[Qa-jenkins-scm] [jenkins.debian.net] 02/03: reproducible: add a job to build+publish the reproducible builds howto
Holger Levsen
holger at moszumanska.debian.org
Thu Aug 6 16:15:35 UTC 2015
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 e9cd5b256716abe0580950111aa61f267874d499
Author: Mattia Rizzolo <mattia at mapreri.org>
Date: Wed Aug 5 18:09:42 2015 +0000
reproducible: add a job to build+publish the reproducible builds howto
---
bin/common-functions.sh | 2 ++
bin/reproducible_html_howto.sh | 24 ++++++++++++++++++++++++
job-cfg/reproducible.yaml | 11 +++++++++++
3 files changed, 37 insertions(+)
diff --git a/bin/common-functions.sh b/bin/common-functions.sh
index c8ffa62..2e24f47 100755
--- a/bin/common-functions.sh
+++ b/bin/common-functions.sh
@@ -3,6 +3,8 @@
# Copyright 2014-2015 Holger Levsen <holger at layer-acht.org>
# released under the GPLv=2
+HOSTNAME=jenkins
+
common_cleanup(){
echo "$(date) - $0 stopped running as $TTT, which will now be removed."
rm -f $TTT
diff --git a/bin/reproducible_html_howto.sh b/bin/reproducible_html_howto.sh
new file mode 100755
index 0000000..e850e1c
--- /dev/null
+++ b/bin/reproducible_html_howto.sh
@@ -0,0 +1,24 @@
+#!/bin/bash
+
+# Copyright © 2015 Mattia Rizzolo <mattia at mapreri.org>
+# released under the GPLv=2
+
+DEBUG=false
+. /srv/jenkins/bin/common-functions.sh
+common_init "$@"
+
+. /srv/jenkins/bin/reproducible_common.sh
+
+set -e
+
+VERSION=$(git log -1 --pretty='%h')
+
+make html
+
+mkdir -pv "$BASE/howto/"
+
+mv -v html/* "$BASE/howto"
+
+irc_message "$REPRODUCIBLE_URL/howto updated to $VERSION"
+
+
diff --git a/job-cfg/reproducible.yaml b/job-cfg/reproducible.yaml
index 15d190c..13123a4 100644
--- a/job-cfg/reproducible.yaml
+++ b/job-cfg/reproducible.yaml
@@ -325,6 +325,10 @@
name: '{name}_html_notes'
- job-template:
+ defaults: reproducible_git
+ name: '{name}_html_howto'
+
+- job-template:
defaults: reproducible
name: '{name}_html_all_packages'
@@ -640,6 +644,13 @@
my_shell: '/srv/jenkins/bin/reproducible_html_notes.sh && /srv/jenkins/bin/reproducible_notes.py'
my_recipients: 'qa-jenkins-scm at lists.alioth.debian.org'
my_node: ''
+ - '{name}_html_howto':
+ my_description: 'Generate the HTML of the reproducible builds howto, triggered by changes to the <a href="https://anonscm.debian.org/cgit/reproducible/reproducible-builds-howto.git" target="_blank">notes.git</a> repository.'
+ my_timed: '57 0 * * *'
+ my_gitrepo: 'git://git.debian.org/git/reproducible/reproducible-builds-howto.git'
+ my_shell: '/srv/jenkins/bin/reproducible_html_howto.sh'
+ my_recipients: 'jenkins+debian-reproducible qa-jenkins-scm at lists.alioth.debian.org'
+ my_node: ''
- '{name}_html_all_packages':
my_description: 'Generate HTML results (for all packages) for reproducible builds. This job is rather redudant and just run to give a fuzzy warm feeling all pages are good.'
my_timed: '37 13 * * 1'
--
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