project-config/jenkins/jobs/keystone.yaml

254 lines
7.6 KiB
YAML

- job-template:
name: '{pipeline}-keystone-dsvm-functional-{node}{suffix}'
node: '{node}'
wrappers:
- build-timeout:
timeout: 70
- timestamps
builders:
- link-logs
- net-info
- devstack-checkout
- local_conf:
conf: |
[[local|localrc]]
TEMPEST_PLUGINS='/opt/stack/new/keystone-tempest-plugin'
- shell: |
#!/bin/bash -xe
export PYTHONUNBUFFERED=true
export PROJECTS="openstack/keystone-tempest-plugin $PROJECTS"
export DEVSTACK_GATE_TEMPEST=1
export BRANCH_OVERRIDE={branch-override}
if [ "$BRANCH_OVERRIDE" != "default" ] ; then
export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE
fi
export DEVSTACK_GATE_TEMPEST_REGEX='keystone_tempest_plugin'
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
- job-template:
name: '{pipeline}-keystone-dsvm-functional-v3-only-{node}{suffix}'
node: '{node}'
wrappers:
- build-timeout:
timeout: 70
- timestamps
builders:
- link-logs
- net-info
- devstack-checkout
- local_conf:
conf: |
[[local|localrc]]
TEMPEST_PLUGINS='/opt/stack/new/keystone-tempest-plugin'
ENABLE_IDENTITY_V2=False
enable_plugin keystone git://git.openstack.org/openstack/keystone
- shell: |
#!/bin/bash -xe
export PYTHONUNBUFFERED=true
export PROJECTS="openstack/keystone-tempest-plugin $PROJECTS"
export DEVSTACK_GATE_TEMPEST=1
export BRANCH_OVERRIDE={branch-override}
if [ "$BRANCH_OVERRIDE" != "default" ] ; then
export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE
fi
export DEVSTACK_GATE_TEMPEST_REGEX='keystone_tempest_plugin'
export ENABLED_SERVICES=keystone-saml2-federation
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
- job-template:
name: '{pipeline}-keystone-dsvm-py35-functional-v3-only-{node}{suffix}'
node: '{node}'
wrappers:
- build-timeout:
timeout: 70
- timestamps
builders:
- link-logs
- net-info
- devstack-checkout
- local_conf:
conf: |
[[local|localrc]]
TEMPEST_PLUGINS='/opt/stack/new/keystone-tempest-plugin'
# swift is not ready for python3 yet
disable_service s-account
disable_service s-container
disable_service s-object
disable_service s-proxy
ENABLE_IDENTITY_V2=False
enable_plugin keystone git://git.openstack.org/openstack/keystone
- shell: |
#!/bin/bash -xe
export DEVSTACK_GATE_USE_PYTHON3=True
export PYTHONUNBUFFERED=true
export PROJECTS="openstack/keystone-tempest-plugin $PROJECTS"
export DEVSTACK_GATE_TEMPEST=1
export BRANCH_OVERRIDE={branch-override}
if [ "$BRANCH_OVERRIDE" != "default" ] ; then
export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE
fi
export DEVSTACK_GATE_TEMPEST_REGEX='keystone_tempest_plugin'
export ENABLED_SERVICES=keystone-saml2-federation
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
- job-template:
name: '{pipeline}-keystoneclient-dsvm-functional-{node}{suffix}'
node: '{node}'
wrappers:
- build-timeout:
timeout: 70
- timestamps
builders:
- link-logs
- net-info
- devstack-checkout
- shell: |
#!/bin/bash -xe
export PYTHONUNBUFFERED=true
export BRANCH_OVERRIDE={branch-override}
export DEVSTACK_PROJECT_FROM_GIT=python-keystoneclient
if [ "$BRANCH_OVERRIDE" != "default" ] ; then
export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE
fi
function post_test_hook {{
# Configure and run functional tests
$BASE/new/python-keystoneclient/keystoneclient/tests/functional/hooks/post_test_hook.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:
- test-results
- devstack-logs
- console-log
- builder:
name: openstack-ansible-os_keystone-checkout
builders:
- shell: |
#!/bin/bash -xe
CLONEMAP=`mktemp`
REQS_DIR=`mktemp -d`
function cleanup {
rm -f $CLONEMAP
rm -rf $REQS_DIR
}
trap cleanup EXIT
cat > $CLONEMAP << EOF
clonemap:
- name: openstack/openstack-ansible-os_keystone
dest: .
- name: openstack/requirements
dest: $REQS_DIR
EOF
/usr/zuul-env/bin/zuul-cloner -m $CLONEMAP \
--cache-dir /opt/git git://git.openstack.org \
openstack/openstack-ansible-os_keystone \
openstack/requirements
cp $REQS_DIR/upper-constraints.txt ./
- job-template:
name: '{pipeline}-keystone-osa-rolling-upgrade-{node-release}{suffix}'
node: '{node}'
wrappers:
- build-timeout:
timeout: 70
- timestamps
builders:
- link-logs
- net-info
- openstack-ansible-os_keystone-checkout
- shell: |
# We dont need to use zuul-cloner to checkout keystone itself, as OpenStack-Ansible
# will default to using zuul-cloner to checkout Keystone.
# Allow Jenkins user to ssh into localhost
ssh-keygen -f ~/.ssh/id_rsa -N ""
cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
ssh-keyscan localhost >> ~/.ssh/known_hosts
ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts
- shell: |
/usr/local/jenkins/slave_scripts/run-tox.sh upgrade
publishers:
# Even though this isn't a devstack job, capturing the logs can still be
# useful.
- devstack-logs
- test-results
- console-log
- job-template:
name: '{pipeline}-keystone-dsvm-functional-ldap-domain-specific-driver-{node}{suffix}'
node: '{node}'
wrappers:
- build-timeout:
timeout: 70
- timestamps
builders:
- link-logs
- net-info
- devstack-checkout
- local_conf:
conf: |
[[local|localrc]]
TEMPEST_PLUGINS='/opt/stack/new/keystone-tempest-plugin'
# Enables ldap service and sets its password
enable_service ldap
KEYSTONE_CLEAR_LDAP=yes
LDAP_PASSWORD='nomoresecret'
- shell: |
#!/bin/bash -xe
export PYTHONUNBUFFERED=true
export PROJECTS="openstack/keystone-tempest-plugin $PROJECTS"
export DEVSTACK_GATE_TEMPEST=1
export DEVSTACK_PROJECT_FROM_GIT=python-keystoneclient
export BRANCH_OVERRIDE={branch-override}
if [ "$BRANCH_OVERRIDE" != "default" ] ; then
export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE
fi
export DEVSTACK_GATE_TEMPEST_REGEX='keystone_tempest_plugin'
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