summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2016-02-08 16:47:25 +0100
committerHolger Levsen <holger@layer-acht.org>2016-02-08 16:47:25 +0100
commit410d20bd3db3436244da2468b2388102f7778aba (patch)
tree0f4bb1b1fb3f44e54b940da01ecb597f468dc503
parentff64f188a3c2c3c75aef3386357aab949f6fe84f (diff)
downloadjenkins.debian.net-410d20bd3db3436244da2468b2388102f7778aba.tar.xz
reproducible fdroid: clone the fdroidserver.git as part of the jenkins job, so the job gets triggered when the git repo gets updated
-rwxr-xr-xbin/reproducible_setup_fdroid_build_environment.sh2
-rw-r--r--job-cfg/reproducible.yaml52
2 files changed, 51 insertions, 3 deletions
diff --git a/bin/reproducible_setup_fdroid_build_environment.sh b/bin/reproducible_setup_fdroid_build_environment.sh
index 27128ba6..09d94747 100755
--- a/bin/reproducible_setup_fdroid_build_environment.sh
+++ b/bin/reproducible_setup_fdroid_build_environment.sh
@@ -43,9 +43,7 @@ sha256sum -c jessie32.box.sha256
export VAGRANT_HOME=$WORKSPACE/vagrant.d
rm -rf $VAGRANT_HOME
-# FIXME: the git cloning should be part of the jenkins job…
cd $WORKSPACE
-git clone https://gitlab.com/fdroid/fdroidserver.git
cd fdroidserver
echo "boot_timeout = 1200" > makebuildserver.config.py
./makebuildserver
diff --git a/job-cfg/reproducible.yaml b/job-cfg/reproducible.yaml
index b47af4ef..e0a022d6 100644
--- a/job-cfg/reproducible.yaml
+++ b/job-cfg/reproducible.yaml
@@ -170,6 +170,46 @@
node: '{my_node}'
- defaults:
+ name: reproducible_other_projects_git
+ project-type: freestyle
+ description: *desc
+ properties:
+ - sidebar: *sb1
+ - sidebar: *sb2
+ - sidebar: *sb3
+ - throttle:
+ max-total: 9
+ max-per-node: 9
+ enabled: true
+ option: category
+ categories:
+ - reproducible # no special category yet
+ triggers:
+ - timed: '{my_timed}'
+ - pollscm: '*/6 * * * *'
+ logrotate:
+ daysToKeep: 90
+ numToKeep: 30
+ artifactDaysToKeep: -1
+ artifactNumToKeep: -1
+ builders:
+ - shell: '{my_shell}'
+ publishers:
+ - logparser:
+ parse-rules: '/srv/jenkins/logparse/reproducible-extra.rules'
+ unstable-on-warning: 'true'
+ fail-on-error: 'true'
+ - email:
+ recipients: '{my_recipients}'
+ scm:
+ - git:
+ url: '{my_gitrepo}'
+ branches:
+ - master
+ node: '{my_node}'
+
+
+- defaults:
name: reproducible_other_projects_trigger
project-type: freestyle
description: *desc
@@ -230,6 +270,10 @@
name: '{name}_{otherproject}'
- job-template:
+ defaults: reproducible_other_projects_git
+ name: '{name}_{otherproject_git}'
+
+- job-template:
defaults: reproducible_other_projects_trigger
name: '{name}_{otherproject_triggering}'
@@ -556,12 +600,18 @@
my_timed: '42 23 1 1 *'
my_shell: '/srv/jenkins/bin/jenkins_master_wrapper.sh'
my_hname: 'profitbricks3'
+ my_shell: '/srv/jenkins/bin/reproducible_{otherproject}.sh'
+ my_hname: ''
+
+ - '{name}_{otherproject_git}':
+ otherproject_git:
- 'setup_fdroid_build_environment_profitbricks3':
my_description: 'Setup a build environment for F-Droid.'
my_timed: '42 23 1 1 *'
my_shell: '/srv/jenkins/bin/jenkins_master_wrapper.sh'
my_hname: 'profitbricks3'
- my_shell: '/srv/jenkins/bin/reproducible_{otherproject}.sh'
+ my_gitrepo: 'https://gitlab.com/fdroid/fdroidserver.git'
+ my_shell: '/srv/jenkins/bin/reproducible_{otherproject_git}.sh'
my_hname: ''
- '{name}_builder_{otherproject}_{my_num}':