From b1a732017626d51622c4edd1aa493328c3e73dcf Mon Sep 17 00:00:00 2001 From: Yuiko Takada Date: Mon, 22 Jun 2015 14:31:50 +0900 Subject: [PATCH] Add Ironic Inspector simple integration test job This patch set add Ironic Inspector's integration test job. At first, I add just check job, as non-voting. If this works well, I will change from non-voting to voting, and also I will add gate job. Co-Authored-By: Dmitry Tantsur Change-Id: Iaf3fa42b2799c785963fe58397e2b80c394db46b --- jenkins/jobs/ironic.yaml | 43 ++++++++++++++++++++++++++++++++++++++ jenkins/jobs/projects.yaml | 7 ++++++- zuul/layout.yaml | 1 + 3 files changed, 50 insertions(+), 1 deletion(-) diff --git a/jenkins/jobs/ironic.yaml b/jenkins/jobs/ironic.yaml index 74e384d1d1..023c912ebb 100644 --- a/jenkins/jobs/ironic.yaml +++ b/jenkins/jobs/ironic.yaml @@ -74,3 +74,46 @@ publishers: - devstack-logs - console-log + +- job-template: + name: '{pipeline}-ironic-inspector-dsvm{branch-designator}' + node: '{node}' + + wrappers: + - build-timeout: + timeout: 125 + - timestamps + + builders: + - link-logs + - net-info + - devstack-checkout + - shell: | + #!/bin/bash -xe + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TIMEOUT=60 + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_IRONIC=1 + export DEVSTACK_GATE_NEUTRON=1 + export DEVSTACK_GATE_VIRT_DRIVER=ironic + export BRANCH_OVERRIDE={branch-override} + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + export PROJECTS="openstack/ironic-inspector $PROJECTS" + export DEVSTACK_LOCAL_CONFIG="enable_plugin ironic-inspector https://git.openstack.org/openstack/ironic-inspector" + + function post_test_hook {{ + source $BASE/new/devstack/openrc admin admin + cd /opt/stack/new/ironic-inspector + sudo -E -u stack ./functest/devstack-test.sh + }} + export -f post_test_hook + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + + publishers: + - devstack-logs + - console-log diff --git a/jenkins/jobs/projects.yaml b/jenkins/jobs/projects.yaml index 66c5022f8b..d67e07574b 100755 --- a/jenkins/jobs/projects.yaml +++ b/jenkins/jobs/projects.yaml @@ -393,9 +393,14 @@ jobs: - python-jobs - pypi-jobs + - translation-jobs - gate-{name}-tox-{envlist}: envlist: func - - translation-jobs + - '{pipeline}-ironic-inspector-dsvm{branch-designator}': + pipeline: check + node: 'devstack-precise || devstack-trusty' + branch-designator: '-nv' + branch-override: default - project: name: ironic-lib diff --git a/zuul/layout.yaml b/zuul/layout.yaml index 034bcd1c82..6451a608a5 100755 --- a/zuul/layout.yaml +++ b/zuul/layout.yaml @@ -1898,6 +1898,7 @@ projects: - gate-ironic-inspector-pep8 - gate-ironic-inspector-python27 - gate-ironic-inspector-tox-func + - check-ironic-inspector-dsvm-nv gate: - gate-ironic-inspector-pep8 - gate-ironic-inspector-python27