summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2012-11-10 16:29:09 +0100
committerHolger Levsen <holger@layer-acht.org>2012-11-10 16:29:09 +0100
commit04a66fa241f1836290e06517ecdf17bd32521d2d (patch)
tree4192c23c1fe29caaf586bd348617436f1cba7497
parent90119c5920c7d6061a2cd9d41e3d26f6469b1037 (diff)
downloadjenkins.debian.net-04a66fa241f1836290e06517ecdf17bd32521d2d.tar.xz
add support for only building parts of the installation-guide
-rwxr-xr-xbin/d-i_manual.sh59
-rw-r--r--job-cfg/d-i.yaml28
2 files changed, 67 insertions, 20 deletions
diff --git a/bin/d-i_manual.sh b/bin/d-i_manual.sh
index 4ae455f8..eae84dc8 100755
--- a/bin/d-i_manual.sh
+++ b/bin/d-i_manual.sh
@@ -8,23 +8,54 @@ set -e
export LC_ALL=C
export MIRROR=http://ftp.de.debian.org/debian
export http_proxy="http://localhost:3128"
+export
-#
-# clean
-#
-rm -fv *.deb *.dsc *_*.build *_*.changes *_*.tar.gz
+init_workspace() {
+ #
+ # clean
+ #
+ rm -fv *.deb *.dsc *_*.build *_*.changes *_*.tar.gz
+
+ #
+ # svn checkout and update is done by jenkins job
+ #
+ svn status
+}
+
+pdebuild_package() {
+ #
+ # prepare build
+ #
+ if [ -f /var/base.tgz ] ; then
+ sudo pbuilder --create
+ else
+ sudo pbuilder --update
+ fi
+
+ #
+ # build
+ #
+ cd manual
+ pdebuild
+}
+build_language() {
+ FORMAT=$2
+ mkdir $FORMAT
+ cd manual/build
+ ARCHS=$(ls arch-options)
+ for ARCH in $ARCHS ; do
+ make languages=$1 architectures=$ARCH destination=../../$FORMAT/ formats=$FORMAT
+ done
+}
+
+init_workspace
#
-# prepare build
+# if $1 is not given, build the whole manual,
+# else just the language $1 as html
#
-if [ -f /var/base.tgz ] ; then
- sudo pbuilder --create
+if [ "$1" = "" ] ; then
+ pdebuild_package
else
- sudo pbuilder --update
+ build_language $1 html
fi
-
-#
-# build
-#
-cd manual
-pdebuild
diff --git a/job-cfg/d-i.yaml b/job-cfg/d-i.yaml
index a2fd8626..f3c03f85 100644
--- a/job-cfg/d-i.yaml
+++ b/job-cfg/d-i.yaml
@@ -23,7 +23,7 @@
- job-template:
defaults: d-i
name: '{name}_manual'
- description: 'Shall build d-i manual one day, does not do that yet.{do_not_edit}'
+ description: 'Builds the installation-guide packages.{do_not_edit}'
scm:
- svn:
url: svn://svn.debian.org/svn/d-i/trunk
@@ -39,11 +39,26 @@
- shell: '/srv/jenkins/bin/d-i_manual.sh'
triggers:
- pollscm: "*/30 * * * *"
- publishers:
- - logparser:
- rulespath: '/srv/jenkins/logparse/debian.rules'
- unstable_on_warning: 'true'
- fail_on_error: 'true'
+
+- job-template:
+ defaults: d-i
+ name: '{name}_manual_de'
+ description: 'Builds the german html version of the installation-guide for all architectures.{do_not_edit}'
+ scm:
+ - svn:
+ url: svn://svn.debian.org/svn/d-i/trunk
+ basedir: .
+ workspaceupdater: update
+ includedRegions: '/trunk/manual/.*'
+ excludedRegions: ''
+ excludedUsers: ''
+ excludedRevprop: ''
+ excludedCommitMessages: ''
+ viewvc-url: http://anonscm.debian.org/viewvc/d-i/trunk
+ builders:
+ - shell: '/srv/jenkins/bin/d-i_manual.sh de'
+ triggers:
+ - pollscm: "*/30 * * * *"
- job-template:
defaults: d-i
@@ -69,6 +84,7 @@
do_not_edit: '<br><br>Configured by <a href="http://jenkins.debian.net/userContent/about.html">jenkins-job-builder</a>, do not edit this job through the web UI.'
jobs:
- '{name}_manual'
+ - '{name}_manual_de'
- '{name}_parse_build_logs'