From: Ali Maredia Date: Fri, 10 Feb 2017 13:35:42 +0000 (-0500) Subject: nfs-ganesha: job that triggers builds of nfs-ganesha X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F631%2Fhead;p=ceph-build.git nfs-ganesha: job that triggers builds of nfs-ganesha Signed-off-by: Ali Maredia --- diff --git a/ceph-dev/config/definitions/ceph-dev.yml b/ceph-dev/config/definitions/ceph-dev.yml index 385fc6b3..c0112518 100644 --- a/ceph-dev/config/definitions/ceph-dev.yml +++ b/ceph-dev/config/definitions/ceph-dev.yml @@ -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 index 00000000..66caf397 --- /dev/null +++ b/nfs-ganesha-trigger/build/notify @@ -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 index 00000000..21e0cf4d --- /dev/null +++ b/nfs-ganesha-trigger/config/definitions/nfs-ganesha-trigger.yml @@ -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