
Split d-g jobs into two classes. Those that run against proposed changes and periodic jobs that run against the current state of a branch. Do this to make expectations around new jobs clear and to make the addition of post release jobs simple. After this change merges all d-g jobs should come with both forms of job template. Change-Id: I52beb1fa1df2ed06fa992792246f767ca9d4957d
77 lines
2.3 KiB
YAML
77 lines
2.3 KiB
YAML
- job-template:
|
|
name: '{pipeline}-swift-devstack-vm-functional-{branch-designator}'
|
|
node: '{node}'
|
|
|
|
wrappers:
|
|
- timeout:
|
|
timeout: 120
|
|
fail: true
|
|
- timestamps
|
|
|
|
builders:
|
|
- devstack-checkout
|
|
- shell: |
|
|
#!/bin/bash -xe
|
|
export PYTHONUNBUFFERED=true
|
|
export DEVSTACK_GATE_TEMPEST=0
|
|
export DEVSTACK_GATE_EXERCISES=0
|
|
if [ "$BRANCH_OVERRIDE" != "default" ] ; then
|
|
export ZUUL_BRANCH=$BRANCH_OVERRIDE
|
|
fi
|
|
cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
|
|
|
|
function post_test_hook {{
|
|
cd /opt/stack/new/swift
|
|
# Launch V2 auth tests and v1 tests after.
|
|
bash .functests --verbosity=3 && \
|
|
SWIFT_TEST_CONFIG_FILE=/opt/stack/new/swift/test/sample.conf \
|
|
bash .functests --verbosity=3
|
|
}}
|
|
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
|
|
- link-logs
|
|
|
|
publishers:
|
|
- devstack-logs
|
|
- console-log
|
|
|
|
|
|
- job-template:
|
|
name: 'periodic-swift-devstack-vm-functional-{branch-designator}'
|
|
node: '{node}'
|
|
|
|
wrappers:
|
|
- timeout:
|
|
timeout: 120
|
|
fail: true
|
|
- timestamps
|
|
|
|
builders:
|
|
- devstack-checkout
|
|
- shell: |
|
|
#!/bin/bash -xe
|
|
export PYTHONUNBUFFERED=true
|
|
export DEVSTACK_GATE_TEMPEST=0
|
|
export DEVSTACK_GATE_EXERCISES=0
|
|
export ZUUL_BRANCH={branch-override}
|
|
unset ZUUL_PROJECT
|
|
|
|
function post_test_hook {{
|
|
cd /opt/stack/new/swift
|
|
# Launch V2 auth tests and v1 tests after.
|
|
bash .functests --verbosity=3 && \
|
|
SWIFT_TEST_CONFIG_FILE=/opt/stack/new/swift/test/sample.conf \
|
|
bash .functests --verbosity=3
|
|
}}
|
|
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
|
|
- link-logs
|
|
|
|
publishers:
|
|
- devstack-logs-periodic
|
|
- console-log-periodic
|
|
- email:
|
|
recipients: openstack-qa@lists.openstack.org
|