]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
samba-trigger: Trigger build on commits
authorBoris Ranto <branto@redhat.com>
Thu, 18 May 2017 08:54:51 +0000 (10:54 +0200)
committerBoris Ranto <branto@redhat.com>
Thu, 18 May 2017 10:41:09 +0000 (12:41 +0200)
This will trigger a samba build on push to any of master* ceph* or wip-*
branches.

Signed-off-by: Boris Ranto <branto@redhat.com>
samba-trigger/config/definitions/samba-trigger.yml [new file with mode: 0644]

diff --git a/samba-trigger/config/definitions/samba-trigger.yml b/samba-trigger/config/definitions/samba-trigger.yml
new file mode 100644 (file)
index 0000000..12bd7ac
--- /dev/null
@@ -0,0 +1,38 @@
+- job:
+    name: samba-trigger
+    node: master
+    project-type: freestyle
+    defaults: global
+    quiet-period: 5
+    block-downstream: false
+    block-upstream: false
+    properties:
+      - github:
+          url: https://github.com/ceph/samba
+    discard-old-builds: true
+    logrotate:
+      daysToKeep: 1
+      numToKeep: 10
+      artifactDaysToKeep: -1
+      artifactNumToKeep: -1
+
+    triggers:
+      - github
+
+    scm:
+      - git:
+          url: https://github.com/ceph/samba.git
+          branches:
+            - 'origin/ceph*'
+            - 'origin/master*'
+            - 'origin/wip-*'
+          skip-tag: true
+          timeout: 20
+          wipe-workspace: true
+
+    builders:
+      - trigger-builds:
+        - project: 'samba'
+          predefined-parameters: |
+            BRANCH=${GIT_BRANCH}
+            FORCE=True