From 410d20bd3db3436244da2468b2388102f7778aba Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Mon, 8 Feb 2016 16:47:25 +0100 Subject: 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 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 @@ -169,6 +169,46 @@ recipients: '{my_recipients}' 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 @@ -229,6 +269,10 @@ defaults: reproducible_other_projects 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}': -- cgit v1.2.3-70-g09d2