]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
nfs-ganesha: job that triggers builds of nfs-ganesha 631/head
authorAli Maredia <amaredia@redhat.com>
Fri, 10 Feb 2017 13:35:42 +0000 (08:35 -0500)
committerAli Maredia <amaredia@redhat.com>
Tue, 21 Feb 2017 22:28:40 +0000 (17:28 -0500)
Signed-off-by: Ali Maredia <amaredia@redhat.com>
ceph-dev/config/definitions/ceph-dev.yml
nfs-ganesha-trigger/build/notify [new file with mode: 0644]
nfs-ganesha-trigger/config/definitions/nfs-ganesha-trigger.yml [new file with mode: 0644]

index 385fc6b3dd2fe0df6f342e309a68ab55acd7e7b1..c01125189dbaab4baa4e9e34490f9f1346641863 100644 (file)
@@ -74,6 +74,15 @@ If this is checked, then the binaries will be built and pushed to chacra even if
             - name: ceph-dev-build
               current-parameters: true
               exposed-scm: false
+      - multijob:
+          name: 'nfs-ganesha build phase'
+          condition: SUCCESSFUL
+          projects:
+            - name: nfs-ganesha
+              current-parameters: false
+              predefined-parameters: |
+                CEPH_BRANCH=${BRANCH}
+              exposed-scm: false
 
     wrappers:
       - inject-passwords:
diff --git a/nfs-ganesha-trigger/build/notify b/nfs-ganesha-trigger/build/notify
new file mode 100644 (file)
index 0000000..66caf39
--- /dev/null
@@ -0,0 +1,9 @@
+#!/bin/bash -ex
+
+# update shaman with the triggered build status. At this point there aren't any
+# architectures or distro information, so we just report this with the current
+# build information
+BRANCH=`branch_slash_filter ${GIT_BRANCH}`
+SHA1=${GIT_COMMIT}
+
+create_build_status "queued" "nfs-ganesha"
diff --git a/nfs-ganesha-trigger/config/definitions/nfs-ganesha-trigger.yml b/nfs-ganesha-trigger/config/definitions/nfs-ganesha-trigger.yml
new file mode 100644 (file)
index 0000000..21e0cf4
--- /dev/null
@@ -0,0 +1,47 @@
+- job:
+    name: nfs-ganesha-trigger
+    node: master
+    project-type: freestyle
+    defaults: global
+    quiet-period: 5
+    block-downstream: false
+    block-upstream: false
+    properties:
+      - github:
+          url: https://github.com/nfs-ganesha/nfs-ganesha
+    discard-old-builds: true
+    logrotate:
+      daysToKeep: 1
+      numToKeep: 10
+      artifactDaysToKeep: -1
+      artifactNumToKeep: -1
+
+    triggers:
+      - github
+
+    scm:
+      - git:
+          url: https://github.com/nfs-ganesha/nfs-ganesha
+          browser: auto
+          # The default is to build and publish every branch.
+          # Uncomment this for testing:
+          branches:
+            - 'origin/next'
+          skip-tag: true
+          timeout: 20
+          wipe-workspace: true
+
+    builders:
+      - shell:
+          !include-raw:
+            - ../../../scripts/build_utils.sh
+            - ../../build/notify
+      - trigger-builds:
+        - project: 'nfs-ganesha'
+          predefined-parameters: |
+            CEPH_BRANCH=master
+
+    wrappers:
+      - inject-passwords:
+          global: true
+          mask-password-params: true