From: Alfredo Deza Date: Wed, 15 Oct 2014 14:02:39 +0000 (-0400) Subject: create the jjb project with magic configurations X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=d84c819476ad4853db98d7d66065d4c848847097;p=ceph-build.git create the jjb project with magic configurations Signed-off-by: Alfredo Deza --- diff --git a/jjb/config/config b/jjb/config/config new file mode 100644 index 00000000..da9bdc62 --- /dev/null +++ b/jjb/config/config @@ -0,0 +1,15 @@ +#!/usr/bin/env bash + +# +# This script uses Jenkins Job Builder to generate the configuration for its own +# job so that it automatically configures all other jobs that have their YAML +# definitions. +# + +# Create the definitions testing them first +jenkins-jobs test definitions -o output + +# Update Jenkins with the output +# Note that this needs proper permissions with the right credentials to the +# correct Jenkins instance +jenkins-jobs update definitions diff --git a/jjb/config/definitions/jjb.yml b/jjb/config/definitions/jjb.yml new file mode 100644 index 00000000..019989eb --- /dev/null +++ b/jjb/config/definitions/jjb.yml @@ -0,0 +1,26 @@ +- job: + name: jenkins-job-builder + project-type: freestyle + defaults: global + disabled: false + display-name: 'Jenkins Job Builder' + concurrent: true + quiet-period: 5 + block-downstream: false + block-upstream: false + retry-count: 3 + + triggers: + - pollscm: "*/15 * * * *" + + scm: + - git: + url: https://github.com/ceph/ceph-build.git + branches: + - master + browser: githubweb + browser-url: http://github.com/ceph/ceph-build.git + timeout: 20 + + builders: + - shell: "pwd && bash ceph-build/jjb/config/config" diff --git a/jjb/config/output/jenkins-job-builder b/jjb/config/output/jenkins-job-builder new file mode 100644 index 00000000..94c93bac --- /dev/null +++ b/jjb/config/output/jenkins-job-builder @@ -0,0 +1,70 @@ + + + + <!-- Managed by Jenkins Job Builder --> + false + false + Jenkins Job Builder + false + false + true + 5 + true + 3 + + + 2 + + + origin + +refs/heads/*:refs/remotes/origin/* + https://github.com/ceph/ceph-build.git + + + + + master + + + + + false + false + false + false + false + true + false + false + Default + + + + + + false + + false + false + + + 20 + + + + http://github.com/ceph/ceph-build.git + + + + + */15 * * * * + + + + + pwd && bash ceph-build/jjb/config/config + + + + +