murano-deployment/murano-ci/jenkins/jobs/murano_jobs.yaml

182 lines
4.5 KiB
YAML
Executable File

- job-template:
name: 'gate-{name}-{distro}{job-suffix}'
project-type: freestyle
defaults: global
description: '{name} {distro} gate job'
disabled: false
concurrent: true
node: trusty-devstack-cz5608 || trusty-devstack-cz5680
parameters:
- bool:
name: KEEP_VM_ALIVE
- string:
name: MURANO_DEPLOYMENT_REF
properties:
- zeromq-event
builders:
- shell: |
#!/bin/bash
git clone https://git.openstack.org/openstack/murano-deployment .
if [[ -n "$MURANO_DEPLOYMENT_REF" ]]; then
git fetch https://review.openstack.org/openstack/murano-deployment $MURANO_DEPLOYMENT_REF && git checkout FETCH_HEAD
fi
export DISTR_NAME='{distro}'
if [[ $ZUUL_REF =~ "juno" || $ZUUL_REF =~ "kilo" ]]; then
echo 'Using old CI strategy'
else
export EXECUTE_TESTS_BY_TAG='{tests}'
fi
bash ./murano-ci/scripts/start_gate.sh
publishers:
- collect-report
- collect-gate-artifacts
- archive-artifacts
- job-template:
name: 'heartbeat-{name}-{distro}'
project-type: freestyle
defaults: global
description: '{name} {distro} heartbeat job'
disabled: false
concurrent: true
node: trusty-devstack-cz5608 || trusty-devstack-cz5680
triggers:
- timed: "H */3 * * *"
parameters:
- bool:
name: KEEP_VM_ALIVE
- string:
name: MURANO_DEPLOYMENT_REF
properties:
- zeromq-event
builders:
- shell: |
#!/bin/bash
git clone https://git.openstack.org/openstack/murano-deployment .
if [[ -n "$MURANO_DEPLOYMENT_REF" ]]; then
git fetch https://review.openstack.org/openstack/murano-deployment $MURANO_DEPLOYMENT_REF && git checkout FETCH_HEAD
fi
export OVERRIDE_URL=https://git.openstack.org
export OVERRIDE_BRANCH=master
export OVERRIDE_PROJECT='{repository}'
export DISTR_NAME='{distro}'
export EXECUTE_TESTS_BY_TAG='{tests}'
export SAVE_IMAGE='no' # 'yes' # Temporary workaround until Murano CI upgrade
bash ./murano-ci/scripts/start_gate.sh
publishers:
- collect-report
- collect-heartbeat-artifacts
- archive-artifacts
- job-template:
name: 'coverage-{name}-{distro}'
project-type: freestyle
defaults: global
description: '{name} {distro} coverage job'
disabled: false
concurrent: true
node: trusty-devstack-cz5608 || trusty-devstack-cz5680
triggers:
- timed: "H */3 * * *"
parameters:
- bool:
name: KEEP_VM_ALIVE
- string:
name: MURANO_DEPLOYMENT_REF
properties:
- zeromq-event
builders:
- shell: |
#!/bin/bash
git clone https://git.openstack.org/openstack/murano-deployment .
if [[ -n "$MURANO_DEPLOYMENT_REF" ]]; then
git fetch https://review.openstack.org/openstack/murano-deployment $MURANO_DEPLOYMENT_REF && git checkout FETCH_HEAD
fi
export OVERRIDE_URL=https://git.openstack.org
export OVERRIDE_BRANCH=master
export OVERRIDE_PROJECT='{repository}'
export DISTR_NAME='{distro}'
export EXECUTE_TESTS_BY_TAG='{tests}'
export WITH_COVERAGE='true'
bash ./murano-ci/scripts/start_gate.sh
publishers:
- collect-report
- collect-coverage-artifacts
- archive-artifacts
- project:
name: murano
distro: ubuntu
job-suffix:
- ''
- '-nv'
repository: openstack/murano
tests: 'gate'
jobs:
- 'hook-{name}-rtfd'
- 'gate-{name}-{distro}{job-suffix}'
- 'heartbeat-{name}-{distro}'
- 'coverage-{name}-{distro}'
- project:
name: murano-dashboard
distro: ubuntu
job-suffix:
- ''
- '-nv'
repository: openstack/murano-dashboard
tests: ''
jobs:
- 'gate-{name}-{distro}{job-suffix}'
- 'heartbeat-{name}-{distro}'
- project:
name: murano-agent
distro:
- ubuntu
- debian
job-suffix:
- ''
- '-nv'
repository: openstack/murano-agent
tests: 'gate'
jobs:
- 'gate-{name}-{distro}{job-suffix}'
- 'heartbeat-{name}-{distro}'
- project:
name: murano-client
distro: ubuntu
job-suffix:
- ''
- '-nv'
repository: openstack/python-muranoclient
tests: ''
jobs:
- 'gate-{name}-{distro}{job-suffix}'