[Qa-jenkins-scm] [jenkins.debian.net] 01/01: reproducible fdroid: clone the fdroidserver.git as part of the jenkins job, so the job gets triggered when the git repo gets updated

Holger Levsen holger at moszumanska.debian.org
Mon Feb 8 15:47:41 UTC 2016


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 410d20bd3db3436244da2468b2388102f7778aba
Author: Holger Levsen <holger at layer-acht.org>
Date:   Mon Feb 8 16:47:25 2016 +0100

    reproducible fdroid: clone the fdroidserver.git as part of the jenkins job, so the job gets triggered when the git repo gets updated
---
 bin/reproducible_setup_fdroid_build_environment.sh |  2 -
 job-cfg/reproducible.yaml                          | 52 +++++++++++++++++++++-
 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 27128ba..09d9474 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 b47af4e..e0a022d 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}':

-- 
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