]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
create the jjb project with magic configurations
authorAlfredo Deza <alfredo@deza.pe>
Wed, 15 Oct 2014 14:02:39 +0000 (10:02 -0400)
committerAlfredo Deza <alfredo@deza.pe>
Wed, 15 Oct 2014 14:02:39 +0000 (10:02 -0400)
Signed-off-by: Alfredo Deza <alfredo@deza.pe>
jjb/config/config [new file with mode: 0644]
jjb/config/definitions/jjb.yml [new file with mode: 0644]
jjb/config/output/jenkins-job-builder [new file with mode: 0644]

diff --git a/jjb/config/config b/jjb/config/config
new file mode 100644 (file)
index 0000000..da9bdc6
--- /dev/null
@@ -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 (file)
index 0000000..019989e
--- /dev/null
@@ -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 (file)
index 0000000..94c93ba
--- /dev/null
@@ -0,0 +1,70 @@
+<?xml version="1.0" encoding="utf-8"?>
+<project>
+  <actions/>
+  <description>&lt;!-- Managed by Jenkins Job Builder --&gt;</description>
+  <keepDependencies>false</keepDependencies>
+  <disabled>false</disabled>
+  <displayName>Jenkins Job Builder</displayName>
+  <blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
+  <blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
+  <concurrentBuild>true</concurrentBuild>
+  <quietPeriod>5</quietPeriod>
+  <canRoam>true</canRoam>
+  <scmCheckoutRetryCount>3</scmCheckoutRetryCount>
+  <properties/>
+  <scm class="hudson.plugins.git.GitSCM">
+    <configVersion>2</configVersion>
+    <userRemoteConfigs>
+      <hudson.plugins.git.UserRemoteConfig>
+        <name>origin</name>
+        <refspec>+refs/heads/*:refs/remotes/origin/*</refspec>
+        <url>https://github.com/ceph/ceph-build.git</url>
+      </hudson.plugins.git.UserRemoteConfig>
+    </userRemoteConfigs>
+    <branches>
+      <hudson.plugins.git.BranchSpec>
+        <name>master</name>
+      </hudson.plugins.git.BranchSpec>
+    </branches>
+    <excludedUsers/>
+    <buildChooser class="hudson.plugins.git.util.DefaultBuildChooser"/>
+    <disableSubmodules>false</disableSubmodules>
+    <recursiveSubmodules>false</recursiveSubmodules>
+    <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations>
+    <authorOrCommitter>false</authorOrCommitter>
+    <clean>false</clean>
+    <wipeOutWorkspace>true</wipeOutWorkspace>
+    <pruneBranches>false</pruneBranches>
+    <remotePoll>false</remotePoll>
+    <gitTool>Default</gitTool>
+    <submoduleCfg class="list"/>
+    <relativeTargetDir/>
+    <reference/>
+    <gitConfigName/>
+    <gitConfigEmail/>
+    <skipTag>false</skipTag>
+    <scmName/>
+    <useShallowClone>false</useShallowClone>
+    <ignoreNotifyCommit>false</ignoreNotifyCommit>
+    <extensions>
+      <hudson.plugins.git.extensions.impl.CheckoutOption>
+        <timeout>20</timeout>
+      </hudson.plugins.git.extensions.impl.CheckoutOption>
+    </extensions>
+    <browser class="hudson.plugins.git.browser.GithubWeb">
+      <url>http://github.com/ceph/ceph-build.git</url>
+    </browser>
+  </scm>
+  <triggers class="vector">
+    <hudson.triggers.SCMTrigger>
+      <spec>*/15 * * * *</spec>
+    </hudson.triggers.SCMTrigger>
+  </triggers>
+  <builders>
+    <hudson.tasks.Shell>
+      <command>pwd &amp;&amp; bash ceph-build/jjb/config/config</command>
+    </hudson.tasks.Shell>
+  </builders>
+  <publishers/>
+  <buildWrappers/>
+</project>