From 8a52d5e610a25c4d64359f87986815da605e7b8d Mon Sep 17 00:00:00 2001 From: Yuriy Taraday Date: Tue, 1 Nov 2016 16:44:43 +0300 Subject: [PATCH] Add cross-repo job for fuel-ccp* projects Jobs is expected to run for all fuel-ccp* base and component repos and run script from fuel-ccp repo that currently is a simple script that runs validation by cloning all masters, but it is expeted to be extended with use of zuul-cloner for proper integration with Zuul. Depends-On: Iaa9e6934d17c841c8c34e7f3b9c5e3197bac86c6 Change-Id: Ifb67b701c31d47ba3815c45d3e8fb87ac82cffde --- jenkins/jobs/fuel-ccp.yaml | 23 +++++++++++++++++++++++ zuul/layout.yaml | 11 +++++++++++ 2 files changed, 34 insertions(+) create mode 100644 jenkins/jobs/fuel-ccp.yaml diff --git a/jenkins/jobs/fuel-ccp.yaml b/jenkins/jobs/fuel-ccp.yaml new file mode 100644 index 0000000000..c7f186092b --- /dev/null +++ b/jenkins/jobs/fuel-ccp.yaml @@ -0,0 +1,23 @@ +- builder: + name: clone-fuel-ccp + builders: + - shell: | + #!/bin/bash -xe + cd "$WORKSPACE" + cat > clonemap.yaml << EOF + clonemap: + - name: openstack/fuel-ccp + dest: fuel-ccp + EOF + /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \ + openstack/fuel-ccp + +- job: + name: gate-fuel-ccp-validate + builders: + - revoke-sudo + - clone-fuel-ccp + - shell: | + #!/bin/bash -xe + cd "$WORKSPACE/fuel-ccp/tools/gate" + ./run.sh diff --git a/zuul/layout.yaml b/zuul/layout.yaml index 65b1e8b218..d4b13f38b0 100755 --- a/zuul/layout.yaml +++ b/zuul/layout.yaml @@ -346,10 +346,15 @@ project-templates: check: - 'gate-{name}-linters-ubuntu-trusty' - 'gate-{name}-linters-ubuntu-xenial' + - gate-fuel-ccp-validate gate: - 'gate-{name}-linters-ubuntu-trusty' - 'gate-{name}-linters-ubuntu-xenial' + - name: fuel-ccp-cross-repo-gate + check: + - gate-fuel-ccp-validate + - name: python-jobs check: - 'gate-{name}-docs-ubuntu-trusty' @@ -3429,6 +3434,10 @@ jobs: branch: ^(?!stable/(?:[456]\.[01]|[78]\.0|mitaka)).*$ voting: false + - name: ^gate-fuel-ccp-validate$ + voting: false + queue-name: fuel-ccp + # Mutexes - name: reprepro-import-debian-openstack-jessie mutex: mirror.deb-openstack @@ -8916,6 +8925,7 @@ projects: - name: python34-jobs - name: python35-jobs - name: docs-on-rtfd + - name: fuel-ccp-cross-repo-gate - name: openstack/fuel-ccp-ceph template: @@ -8943,6 +8953,7 @@ projects: - name: python-jobs - name: python34-jobs - name: python35-jobs + - name: fuel-ccp-cross-repo-gate - name: openstack/fuel-ccp-etcd template: