From: Andrew Schoen Date: Wed, 3 Feb 2016 22:35:25 +0000 (-0600) Subject: Adds a new job to update the ceph-ansible galaxy repos on merge X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=208753007207c36050d36a809724f3217ecf9b4f;p=ceph-build.git Adds a new job to update the ceph-ansible galaxy repos on merge When new code is merged to master of ceph-ansible a command is run to update the individual role repos with the changes for Ansible Galaxy. See the first request of https://github.com/ceph/ceph-ansible/issues/507 Signed-off-by: Andrew Schoen --- diff --git a/ceph-ansible-galaxy/build/build b/ceph-ansible-galaxy/build/build new file mode 100644 index 00000000..c0b31808 --- /dev/null +++ b/ceph-ansible-galaxy/build/build @@ -0,0 +1,10 @@ +#!/bin/bash + +# the following method exists in scripts/build_utils.sh +pkgs=( "ansible" ) +install_python_packages "pkgs[@]" + +cd "$WORKSPACE"/ceph-ansible +# propagates the change in the necessary Ansible Galaxy repos. +# i.e. https://github.com/ceph/ansible-ceph-common +$VENV/ansible-playbook -i dummy-ansible-hosts contrib/splitup.yml --tags update diff --git a/ceph-ansible-galaxy/config/definitions/ceph-ansible-galaxy.yml b/ceph-ansible-galaxy/config/definitions/ceph-ansible-galaxy.yml new file mode 100644 index 00000000..a0be13d6 --- /dev/null +++ b/ceph-ansible-galaxy/config/definitions/ceph-ansible-galaxy.yml @@ -0,0 +1,36 @@ +- job: + name: ceph-ansible-galaxy + node: small && trusty + project-type: freestyle + defaults: global + display-name: 'ceph-ansible: Update galaxy roles' + quiet-period: 5 + block-downstream: false + block-upstream: false + retry-count: 3 + properties: + - github: + url: https://github.com/ceph/ceph-ansible + logrotate: + daysToKeep: -1 + numToKeep: -1 + artifactDaysToKeep: -1 + artifactNumToKeep: -1 + + triggers: + - github + + scm: + - git: + url: https://github.com/ceph/ceph-ansible.git + branches: + - master + browser: auto + basedir: "ceph-ansible" + timeout: 20 + + builders: + - shell: + !include-raw: + - ../../../scripts/build_utils.sh + - ../../build/build