Merge "Migrate jobs from zuulv2 to zuulv3"
This commit is contained in:
commit
e4412c8703
67
playbooks/legacy/announce-release/post.yaml
Normal file
67
playbooks/legacy/announce-release/post.yaml
Normal file
@ -0,0 +1,67 @@
|
|||||||
|
- hosts: all
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=**/*nose_results.html
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=**/*testr_results.html.gz
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=/.testrepository/tmp*
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=**/*testrepository.subunit.gz
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}/tox'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=/.tox/*/log/*
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
96
playbooks/legacy/announce-release/run.yaml
Normal file
96
playbooks/legacy/announce-release/run.yaml
Normal file
@ -0,0 +1,96 @@
|
|||||||
|
- hosts: all
|
||||||
|
name: Autoconverted job legacy-announce-release from old job {name}-announce-release
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
CLONEMAP=`mktemp`
|
||||||
|
function cleanup {
|
||||||
|
# In cases where zuul-cloner is aborted during a git
|
||||||
|
# clone operation, git will remove the git work tree in
|
||||||
|
# its cleanup. The work tree in these jobs is the
|
||||||
|
# workspace directory, which means that subsequent
|
||||||
|
# jenkins post-build actions can not run because the
|
||||||
|
# workspace has been removed.
|
||||||
|
# To reduce the likelihood of this having an impact,
|
||||||
|
# recreate the workspace directory if needed
|
||||||
|
mkdir -p $WORKSPACE
|
||||||
|
rm -f $CLONEMAP
|
||||||
|
}
|
||||||
|
trap cleanup EXIT
|
||||||
|
cat > $CLONEMAP << EOF
|
||||||
|
clonemap:
|
||||||
|
- name: $ZUUL_PROJECT
|
||||||
|
dest: .
|
||||||
|
EOF
|
||||||
|
/usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \
|
||||||
|
git://git.openstack.org $ZUUL_PROJECT
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -x
|
||||||
|
|
||||||
|
TOOLS_TMP=$HOME/release-tools
|
||||||
|
mkdir -p $TOOLS_TMP
|
||||||
|
|
||||||
|
# Report on the ZUUL settings.
|
||||||
|
env | grep '^ZUUL_'
|
||||||
|
|
||||||
|
# Check out the release-tools, ignoring any other ZUUL
|
||||||
|
# variables that might confuse the cloner and cause it to
|
||||||
|
# try to check out anything like the commit that was just
|
||||||
|
# tagged or to look for a branch (we always want the master
|
||||||
|
# version of the tools).
|
||||||
|
for v in $(env | grep '^ZUUL_' | cut -f1 -d=); do
|
||||||
|
unset $v
|
||||||
|
done
|
||||||
|
|
||||||
|
/usr/zuul-env/bin/zuul-cloner \
|
||||||
|
--cache-dir /opt/git \
|
||||||
|
--workspace $TOOLS_TMP \
|
||||||
|
git://git.openstack.org \
|
||||||
|
openstack-infra/release-tools
|
||||||
|
TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools
|
||||||
|
|
||||||
|
# Install the distro packages needed by the release
|
||||||
|
# tools. These will not necessarily be included in the set
|
||||||
|
# installed by the builder step above, so we have to do it
|
||||||
|
# explicitly by changing to the tools directory and then
|
||||||
|
# running the same script.
|
||||||
|
(cd $TOOLS_DIR &&
|
||||||
|
/usr/local/jenkins/slave_scripts/install-distro-packages.sh)
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -x
|
||||||
|
sudo rm -f /etc/sudoers.d/jenkins-sudo
|
||||||
|
# Prove that general sudo access is actually revoked
|
||||||
|
! sudo -n true
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -x
|
||||||
|
|
||||||
|
TOOLS_TMP=$HOME/release-tools
|
||||||
|
TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools
|
||||||
|
|
||||||
|
# Save the version that was just tagged by parsing
|
||||||
|
# ref/tags/VALUE to get VALUE.
|
||||||
|
VERSION=$(echo $ZUUL_REF | cut -f3 -d/)
|
||||||
|
|
||||||
|
# Run the announce script.
|
||||||
|
$TOOLS_DIR/announce.sh $WORKSPACE $VERSION
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
15
playbooks/legacy/ansible-func-centos-7/post.yaml
Normal file
15
playbooks/legacy/ansible-func-centos-7/post.yaml
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
- hosts: all
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=/logs/**
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
89
playbooks/legacy/ansible-func-centos-7/run.yaml
Normal file
89
playbooks/legacy/ansible-func-centos-7/run.yaml
Normal file
@ -0,0 +1,89 @@
|
|||||||
|
- hosts: all
|
||||||
|
name: Autoconverted job legacy-ansible-func-centos-7 from old job gate-{name}-ansible-func-centos-7
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
CLONEMAP=`mktemp`
|
||||||
|
REQS_DIR=`mktemp -d`
|
||||||
|
function cleanup {
|
||||||
|
mkdir -p $WORKSPACE
|
||||||
|
rm -rf $CLONEMAP $REQS_DIR
|
||||||
|
}
|
||||||
|
trap cleanup EXIT
|
||||||
|
cat > $CLONEMAP << EOF
|
||||||
|
clonemap:
|
||||||
|
- name: 'openstack/$ZUUL_SHORT_PROJECT_NAME'
|
||||||
|
dest: .
|
||||||
|
EOF
|
||||||
|
# zuul cloner works poorly if there are 2 names that are the
|
||||||
|
# same in here.
|
||||||
|
if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then
|
||||||
|
cat >> $CLONEMAP << EOF
|
||||||
|
- name: openstack/requirements
|
||||||
|
dest: $REQS_DIR
|
||||||
|
EOF
|
||||||
|
fi
|
||||||
|
/usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \
|
||||||
|
git://git.openstack.org openstack/$ZUUL_SHORT_PROJECT_NAME openstack/requirements
|
||||||
|
# REQS_DIR is not set for openstack/requirements and there is also
|
||||||
|
# no need to copy in this case.
|
||||||
|
if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then
|
||||||
|
cp $REQS_DIR/upper-constraints.txt ./
|
||||||
|
fi
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
# NOTE(mhayden): The CentOS CI image has many repositories enabled by
|
||||||
|
# default that can cause package conflicts. We must disable all of
|
||||||
|
# them here and only enable base, updates, and epel.
|
||||||
|
# We also do not want to run this on Fedora.
|
||||||
|
if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then
|
||||||
|
sudo yum-config-manager --disable \* >/dev/null
|
||||||
|
sudo yum-config-manager --enable base >/dev/null
|
||||||
|
sudo yum-config-manager --enable epel >/dev/null
|
||||||
|
sudo yum-config-manager --enable updates >/dev/null
|
||||||
|
fi
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
# NOTE(mhayden): EPEL is no longer required after installing distro
|
||||||
|
# packages with bindep. Individual roles may re-enable EPEL if they
|
||||||
|
# need it for their package installation tasks.
|
||||||
|
# We also do not want to run this on Fedora.
|
||||||
|
if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then
|
||||||
|
sudo yum-config-manager --disable epel >/dev/null
|
||||||
|
fi
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
# 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
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
# Many of the Ansible roles have a tox environment
|
||||||
|
# called 'functional', so we implement a mapping
|
||||||
|
# of the scenario 'func' to 'functional' so reduce
|
||||||
|
# the need for code churn in those repositories
|
||||||
|
# immediately.
|
||||||
|
if [ "func" == "func" ]; then
|
||||||
|
/usr/local/jenkins/slave_scripts/run-tox.sh functional
|
||||||
|
else
|
||||||
|
/usr/local/jenkins/slave_scripts/run-tox.sh func
|
||||||
|
fi
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
15
playbooks/legacy/ansible-func-fedora-26/post.yaml
Normal file
15
playbooks/legacy/ansible-func-fedora-26/post.yaml
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
- hosts: all
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=/logs/**
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
89
playbooks/legacy/ansible-func-fedora-26/run.yaml
Normal file
89
playbooks/legacy/ansible-func-fedora-26/run.yaml
Normal file
@ -0,0 +1,89 @@
|
|||||||
|
- hosts: all
|
||||||
|
name: Autoconverted job legacy-ansible-func-fedora-26 from old job gate-{name}-ansible-func-fedora-26
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
CLONEMAP=`mktemp`
|
||||||
|
REQS_DIR=`mktemp -d`
|
||||||
|
function cleanup {
|
||||||
|
mkdir -p $WORKSPACE
|
||||||
|
rm -rf $CLONEMAP $REQS_DIR
|
||||||
|
}
|
||||||
|
trap cleanup EXIT
|
||||||
|
cat > $CLONEMAP << EOF
|
||||||
|
clonemap:
|
||||||
|
- name: 'openstack/$ZUUL_SHORT_PROJECT_NAME'
|
||||||
|
dest: .
|
||||||
|
EOF
|
||||||
|
# zuul cloner works poorly if there are 2 names that are the
|
||||||
|
# same in here.
|
||||||
|
if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then
|
||||||
|
cat >> $CLONEMAP << EOF
|
||||||
|
- name: openstack/requirements
|
||||||
|
dest: $REQS_DIR
|
||||||
|
EOF
|
||||||
|
fi
|
||||||
|
/usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \
|
||||||
|
git://git.openstack.org openstack/$ZUUL_SHORT_PROJECT_NAME openstack/requirements
|
||||||
|
# REQS_DIR is not set for openstack/requirements and there is also
|
||||||
|
# no need to copy in this case.
|
||||||
|
if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then
|
||||||
|
cp $REQS_DIR/upper-constraints.txt ./
|
||||||
|
fi
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
# NOTE(mhayden): The CentOS CI image has many repositories enabled by
|
||||||
|
# default that can cause package conflicts. We must disable all of
|
||||||
|
# them here and only enable base, updates, and epel.
|
||||||
|
# We also do not want to run this on Fedora.
|
||||||
|
if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then
|
||||||
|
sudo yum-config-manager --disable \* >/dev/null
|
||||||
|
sudo yum-config-manager --enable base >/dev/null
|
||||||
|
sudo yum-config-manager --enable epel >/dev/null
|
||||||
|
sudo yum-config-manager --enable updates >/dev/null
|
||||||
|
fi
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
# NOTE(mhayden): EPEL is no longer required after installing distro
|
||||||
|
# packages with bindep. Individual roles may re-enable EPEL if they
|
||||||
|
# need it for their package installation tasks.
|
||||||
|
# We also do not want to run this on Fedora.
|
||||||
|
if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then
|
||||||
|
sudo yum-config-manager --disable epel >/dev/null
|
||||||
|
fi
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
# 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
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
# Many of the Ansible roles have a tox environment
|
||||||
|
# called 'functional', so we implement a mapping
|
||||||
|
# of the scenario 'func' to 'functional' so reduce
|
||||||
|
# the need for code churn in those repositories
|
||||||
|
# immediately.
|
||||||
|
if [ "func" == "func" ]; then
|
||||||
|
/usr/local/jenkins/slave_scripts/run-tox.sh functional
|
||||||
|
else
|
||||||
|
/usr/local/jenkins/slave_scripts/run-tox.sh func
|
||||||
|
fi
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
15
playbooks/legacy/ansible-func-opensuse-423/post.yaml
Normal file
15
playbooks/legacy/ansible-func-opensuse-423/post.yaml
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
- hosts: all
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=/logs/**
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
89
playbooks/legacy/ansible-func-opensuse-423/run.yaml
Normal file
89
playbooks/legacy/ansible-func-opensuse-423/run.yaml
Normal file
@ -0,0 +1,89 @@
|
|||||||
|
- hosts: all
|
||||||
|
name: Autoconverted job legacy-ansible-func-opensuse-423 from old job gate-{name}-ansible-func-opensuse-423
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
CLONEMAP=`mktemp`
|
||||||
|
REQS_DIR=`mktemp -d`
|
||||||
|
function cleanup {
|
||||||
|
mkdir -p $WORKSPACE
|
||||||
|
rm -rf $CLONEMAP $REQS_DIR
|
||||||
|
}
|
||||||
|
trap cleanup EXIT
|
||||||
|
cat > $CLONEMAP << EOF
|
||||||
|
clonemap:
|
||||||
|
- name: 'openstack/$ZUUL_SHORT_PROJECT_NAME'
|
||||||
|
dest: .
|
||||||
|
EOF
|
||||||
|
# zuul cloner works poorly if there are 2 names that are the
|
||||||
|
# same in here.
|
||||||
|
if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then
|
||||||
|
cat >> $CLONEMAP << EOF
|
||||||
|
- name: openstack/requirements
|
||||||
|
dest: $REQS_DIR
|
||||||
|
EOF
|
||||||
|
fi
|
||||||
|
/usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \
|
||||||
|
git://git.openstack.org openstack/$ZUUL_SHORT_PROJECT_NAME openstack/requirements
|
||||||
|
# REQS_DIR is not set for openstack/requirements and there is also
|
||||||
|
# no need to copy in this case.
|
||||||
|
if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then
|
||||||
|
cp $REQS_DIR/upper-constraints.txt ./
|
||||||
|
fi
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
# NOTE(mhayden): The CentOS CI image has many repositories enabled by
|
||||||
|
# default that can cause package conflicts. We must disable all of
|
||||||
|
# them here and only enable base, updates, and epel.
|
||||||
|
# We also do not want to run this on Fedora.
|
||||||
|
if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then
|
||||||
|
sudo yum-config-manager --disable \* >/dev/null
|
||||||
|
sudo yum-config-manager --enable base >/dev/null
|
||||||
|
sudo yum-config-manager --enable epel >/dev/null
|
||||||
|
sudo yum-config-manager --enable updates >/dev/null
|
||||||
|
fi
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
# NOTE(mhayden): EPEL is no longer required after installing distro
|
||||||
|
# packages with bindep. Individual roles may re-enable EPEL if they
|
||||||
|
# need it for their package installation tasks.
|
||||||
|
# We also do not want to run this on Fedora.
|
||||||
|
if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then
|
||||||
|
sudo yum-config-manager --disable epel >/dev/null
|
||||||
|
fi
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
# 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
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
# Many of the Ansible roles have a tox environment
|
||||||
|
# called 'functional', so we implement a mapping
|
||||||
|
# of the scenario 'func' to 'functional' so reduce
|
||||||
|
# the need for code churn in those repositories
|
||||||
|
# immediately.
|
||||||
|
if [ "func" == "func" ]; then
|
||||||
|
/usr/local/jenkins/slave_scripts/run-tox.sh functional
|
||||||
|
else
|
||||||
|
/usr/local/jenkins/slave_scripts/run-tox.sh func
|
||||||
|
fi
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
15
playbooks/legacy/ansible-func-ubuntu-trusty/post.yaml
Normal file
15
playbooks/legacy/ansible-func-ubuntu-trusty/post.yaml
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
- hosts: all
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=/logs/**
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
89
playbooks/legacy/ansible-func-ubuntu-trusty/run.yaml
Normal file
89
playbooks/legacy/ansible-func-ubuntu-trusty/run.yaml
Normal file
@ -0,0 +1,89 @@
|
|||||||
|
- hosts: all
|
||||||
|
name: Autoconverted job legacy-ansible-func-ubuntu-trusty from old job gate-{name}-ansible-func-ubuntu-trusty
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
CLONEMAP=`mktemp`
|
||||||
|
REQS_DIR=`mktemp -d`
|
||||||
|
function cleanup {
|
||||||
|
mkdir -p $WORKSPACE
|
||||||
|
rm -rf $CLONEMAP $REQS_DIR
|
||||||
|
}
|
||||||
|
trap cleanup EXIT
|
||||||
|
cat > $CLONEMAP << EOF
|
||||||
|
clonemap:
|
||||||
|
- name: 'openstack/$ZUUL_SHORT_PROJECT_NAME'
|
||||||
|
dest: .
|
||||||
|
EOF
|
||||||
|
# zuul cloner works poorly if there are 2 names that are the
|
||||||
|
# same in here.
|
||||||
|
if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then
|
||||||
|
cat >> $CLONEMAP << EOF
|
||||||
|
- name: openstack/requirements
|
||||||
|
dest: $REQS_DIR
|
||||||
|
EOF
|
||||||
|
fi
|
||||||
|
/usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \
|
||||||
|
git://git.openstack.org openstack/$ZUUL_SHORT_PROJECT_NAME openstack/requirements
|
||||||
|
# REQS_DIR is not set for openstack/requirements and there is also
|
||||||
|
# no need to copy in this case.
|
||||||
|
if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then
|
||||||
|
cp $REQS_DIR/upper-constraints.txt ./
|
||||||
|
fi
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
# NOTE(mhayden): The CentOS CI image has many repositories enabled by
|
||||||
|
# default that can cause package conflicts. We must disable all of
|
||||||
|
# them here and only enable base, updates, and epel.
|
||||||
|
# We also do not want to run this on Fedora.
|
||||||
|
if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then
|
||||||
|
sudo yum-config-manager --disable \* >/dev/null
|
||||||
|
sudo yum-config-manager --enable base >/dev/null
|
||||||
|
sudo yum-config-manager --enable epel >/dev/null
|
||||||
|
sudo yum-config-manager --enable updates >/dev/null
|
||||||
|
fi
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
# NOTE(mhayden): EPEL is no longer required after installing distro
|
||||||
|
# packages with bindep. Individual roles may re-enable EPEL if they
|
||||||
|
# need it for their package installation tasks.
|
||||||
|
# We also do not want to run this on Fedora.
|
||||||
|
if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then
|
||||||
|
sudo yum-config-manager --disable epel >/dev/null
|
||||||
|
fi
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
# 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
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
# Many of the Ansible roles have a tox environment
|
||||||
|
# called 'functional', so we implement a mapping
|
||||||
|
# of the scenario 'func' to 'functional' so reduce
|
||||||
|
# the need for code churn in those repositories
|
||||||
|
# immediately.
|
||||||
|
if [ "func" == "func" ]; then
|
||||||
|
/usr/local/jenkins/slave_scripts/run-tox.sh functional
|
||||||
|
else
|
||||||
|
/usr/local/jenkins/slave_scripts/run-tox.sh func
|
||||||
|
fi
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
15
playbooks/legacy/ansible-func/post.yaml
Normal file
15
playbooks/legacy/ansible-func/post.yaml
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
- hosts: all
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=/logs/**
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
89
playbooks/legacy/ansible-func/run.yaml
Normal file
89
playbooks/legacy/ansible-func/run.yaml
Normal file
@ -0,0 +1,89 @@
|
|||||||
|
- hosts: all
|
||||||
|
name: Autoconverted job legacy-ansible-func from old job gate-{name}-ansible-func-ubuntu-xenial
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
CLONEMAP=`mktemp`
|
||||||
|
REQS_DIR=`mktemp -d`
|
||||||
|
function cleanup {
|
||||||
|
mkdir -p $WORKSPACE
|
||||||
|
rm -rf $CLONEMAP $REQS_DIR
|
||||||
|
}
|
||||||
|
trap cleanup EXIT
|
||||||
|
cat > $CLONEMAP << EOF
|
||||||
|
clonemap:
|
||||||
|
- name: 'openstack/$ZUUL_SHORT_PROJECT_NAME'
|
||||||
|
dest: .
|
||||||
|
EOF
|
||||||
|
# zuul cloner works poorly if there are 2 names that are the
|
||||||
|
# same in here.
|
||||||
|
if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then
|
||||||
|
cat >> $CLONEMAP << EOF
|
||||||
|
- name: openstack/requirements
|
||||||
|
dest: $REQS_DIR
|
||||||
|
EOF
|
||||||
|
fi
|
||||||
|
/usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \
|
||||||
|
git://git.openstack.org openstack/$ZUUL_SHORT_PROJECT_NAME openstack/requirements
|
||||||
|
# REQS_DIR is not set for openstack/requirements and there is also
|
||||||
|
# no need to copy in this case.
|
||||||
|
if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then
|
||||||
|
cp $REQS_DIR/upper-constraints.txt ./
|
||||||
|
fi
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
# NOTE(mhayden): The CentOS CI image has many repositories enabled by
|
||||||
|
# default that can cause package conflicts. We must disable all of
|
||||||
|
# them here and only enable base, updates, and epel.
|
||||||
|
# We also do not want to run this on Fedora.
|
||||||
|
if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then
|
||||||
|
sudo yum-config-manager --disable \* >/dev/null
|
||||||
|
sudo yum-config-manager --enable base >/dev/null
|
||||||
|
sudo yum-config-manager --enable epel >/dev/null
|
||||||
|
sudo yum-config-manager --enable updates >/dev/null
|
||||||
|
fi
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
# NOTE(mhayden): EPEL is no longer required after installing distro
|
||||||
|
# packages with bindep. Individual roles may re-enable EPEL if they
|
||||||
|
# need it for their package installation tasks.
|
||||||
|
# We also do not want to run this on Fedora.
|
||||||
|
if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then
|
||||||
|
sudo yum-config-manager --disable epel >/dev/null
|
||||||
|
fi
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
# 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
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
# Many of the Ansible roles have a tox environment
|
||||||
|
# called 'functional', so we implement a mapping
|
||||||
|
# of the scenario 'func' to 'functional' so reduce
|
||||||
|
# the need for code churn in those repositories
|
||||||
|
# immediately.
|
||||||
|
if [ "func" == "func" ]; then
|
||||||
|
/usr/local/jenkins/slave_scripts/run-tox.sh functional
|
||||||
|
else
|
||||||
|
/usr/local/jenkins/slave_scripts/run-tox.sh func
|
||||||
|
fi
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
@ -0,0 +1,67 @@
|
|||||||
|
- hosts: all
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=**/*nose_results.html
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=**/*testr_results.html.gz
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=/.testrepository/tmp*
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=**/*testrepository.subunit.gz
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}/tox'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=/.tox/*/log/*
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
96
playbooks/legacy/ansible-hardening-announce-release/run.yaml
Normal file
96
playbooks/legacy/ansible-hardening-announce-release/run.yaml
Normal file
@ -0,0 +1,96 @@
|
|||||||
|
- hosts: all
|
||||||
|
name: Autoconverted job legacy-ansible-hardening-announce-release from old job ansible-hardening-announce-release
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
CLONEMAP=`mktemp`
|
||||||
|
function cleanup {
|
||||||
|
# In cases where zuul-cloner is aborted during a git
|
||||||
|
# clone operation, git will remove the git work tree in
|
||||||
|
# its cleanup. The work tree in these jobs is the
|
||||||
|
# workspace directory, which means that subsequent
|
||||||
|
# jenkins post-build actions can not run because the
|
||||||
|
# workspace has been removed.
|
||||||
|
# To reduce the likelihood of this having an impact,
|
||||||
|
# recreate the workspace directory if needed
|
||||||
|
mkdir -p $WORKSPACE
|
||||||
|
rm -f $CLONEMAP
|
||||||
|
}
|
||||||
|
trap cleanup EXIT
|
||||||
|
cat > $CLONEMAP << EOF
|
||||||
|
clonemap:
|
||||||
|
- name: $ZUUL_PROJECT
|
||||||
|
dest: .
|
||||||
|
EOF
|
||||||
|
/usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \
|
||||||
|
git://git.openstack.org $ZUUL_PROJECT
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -x
|
||||||
|
|
||||||
|
TOOLS_TMP=$HOME/release-tools
|
||||||
|
mkdir -p $TOOLS_TMP
|
||||||
|
|
||||||
|
# Report on the ZUUL settings.
|
||||||
|
env | grep '^ZUUL_'
|
||||||
|
|
||||||
|
# Check out the release-tools, ignoring any other ZUUL
|
||||||
|
# variables that might confuse the cloner and cause it to
|
||||||
|
# try to check out anything like the commit that was just
|
||||||
|
# tagged or to look for a branch (we always want the master
|
||||||
|
# version of the tools).
|
||||||
|
for v in $(env | grep '^ZUUL_' | cut -f1 -d=); do
|
||||||
|
unset $v
|
||||||
|
done
|
||||||
|
|
||||||
|
/usr/zuul-env/bin/zuul-cloner \
|
||||||
|
--cache-dir /opt/git \
|
||||||
|
--workspace $TOOLS_TMP \
|
||||||
|
git://git.openstack.org \
|
||||||
|
openstack-infra/release-tools
|
||||||
|
TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools
|
||||||
|
|
||||||
|
# Install the distro packages needed by the release
|
||||||
|
# tools. These will not necessarily be included in the set
|
||||||
|
# installed by the builder step above, so we have to do it
|
||||||
|
# explicitly by changing to the tools directory and then
|
||||||
|
# running the same script.
|
||||||
|
(cd $TOOLS_DIR &&
|
||||||
|
/usr/local/jenkins/slave_scripts/install-distro-packages.sh)
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -x
|
||||||
|
sudo rm -f /etc/sudoers.d/jenkins-sudo
|
||||||
|
# Prove that general sudo access is actually revoked
|
||||||
|
! sudo -n true
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -x
|
||||||
|
|
||||||
|
TOOLS_TMP=$HOME/release-tools
|
||||||
|
TOOLS_DIR=$TOOLS_TMP/openstack-infra/release-tools
|
||||||
|
|
||||||
|
# Save the version that was just tagged by parsing
|
||||||
|
# ref/tags/VALUE to get VALUE.
|
||||||
|
VERSION=$(echo $ZUUL_REF | cut -f3 -d/)
|
||||||
|
|
||||||
|
# Run the announce script.
|
||||||
|
$TOOLS_DIR/announce.sh $WORKSPACE $VERSION
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
@ -0,0 +1,15 @@
|
|||||||
|
- hosts: all
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=/logs/**
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
@ -0,0 +1,90 @@
|
|||||||
|
- hosts: all
|
||||||
|
name: Autoconverted job legacy-ansible-hardening-ansible-func-debian-jessie from
|
||||||
|
old job gate-ansible-hardening-ansible-func-debian-jessie
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
CLONEMAP=`mktemp`
|
||||||
|
REQS_DIR=`mktemp -d`
|
||||||
|
function cleanup {
|
||||||
|
mkdir -p $WORKSPACE
|
||||||
|
rm -rf $CLONEMAP $REQS_DIR
|
||||||
|
}
|
||||||
|
trap cleanup EXIT
|
||||||
|
cat > $CLONEMAP << EOF
|
||||||
|
clonemap:
|
||||||
|
- name: 'openstack/$ZUUL_SHORT_PROJECT_NAME'
|
||||||
|
dest: .
|
||||||
|
EOF
|
||||||
|
# zuul cloner works poorly if there are 2 names that are the
|
||||||
|
# same in here.
|
||||||
|
if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then
|
||||||
|
cat >> $CLONEMAP << EOF
|
||||||
|
- name: openstack/requirements
|
||||||
|
dest: $REQS_DIR
|
||||||
|
EOF
|
||||||
|
fi
|
||||||
|
/usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \
|
||||||
|
git://git.openstack.org openstack/$ZUUL_SHORT_PROJECT_NAME openstack/requirements
|
||||||
|
# REQS_DIR is not set for openstack/requirements and there is also
|
||||||
|
# no need to copy in this case.
|
||||||
|
if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then
|
||||||
|
cp $REQS_DIR/upper-constraints.txt ./
|
||||||
|
fi
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
# NOTE(mhayden): The CentOS CI image has many repositories enabled by
|
||||||
|
# default that can cause package conflicts. We must disable all of
|
||||||
|
# them here and only enable base, updates, and epel.
|
||||||
|
# We also do not want to run this on Fedora.
|
||||||
|
if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then
|
||||||
|
sudo yum-config-manager --disable \* >/dev/null
|
||||||
|
sudo yum-config-manager --enable base >/dev/null
|
||||||
|
sudo yum-config-manager --enable epel >/dev/null
|
||||||
|
sudo yum-config-manager --enable updates >/dev/null
|
||||||
|
fi
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
# NOTE(mhayden): EPEL is no longer required after installing distro
|
||||||
|
# packages with bindep. Individual roles may re-enable EPEL if they
|
||||||
|
# need it for their package installation tasks.
|
||||||
|
# We also do not want to run this on Fedora.
|
||||||
|
if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then
|
||||||
|
sudo yum-config-manager --disable epel >/dev/null
|
||||||
|
fi
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
# 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
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
# Many of the Ansible roles have a tox environment
|
||||||
|
# called 'functional', so we implement a mapping
|
||||||
|
# of the scenario 'func' to 'functional' so reduce
|
||||||
|
# the need for code churn in those repositories
|
||||||
|
# immediately.
|
||||||
|
if [ "func" == "func" ]; then
|
||||||
|
/usr/local/jenkins/slave_scripts/run-tox.sh functional
|
||||||
|
else
|
||||||
|
/usr/local/jenkins/slave_scripts/run-tox.sh func
|
||||||
|
fi
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
@ -0,0 +1,15 @@
|
|||||||
|
- hosts: all
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=/logs/**
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
@ -0,0 +1,90 @@
|
|||||||
|
- hosts: all
|
||||||
|
name: Autoconverted job legacy-ansible-hardening-ansible-func-fedora-26 from old
|
||||||
|
job gate-ansible-hardening-ansible-func-fedora-26
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
CLONEMAP=`mktemp`
|
||||||
|
REQS_DIR=`mktemp -d`
|
||||||
|
function cleanup {
|
||||||
|
mkdir -p $WORKSPACE
|
||||||
|
rm -rf $CLONEMAP $REQS_DIR
|
||||||
|
}
|
||||||
|
trap cleanup EXIT
|
||||||
|
cat > $CLONEMAP << EOF
|
||||||
|
clonemap:
|
||||||
|
- name: 'openstack/$ZUUL_SHORT_PROJECT_NAME'
|
||||||
|
dest: .
|
||||||
|
EOF
|
||||||
|
# zuul cloner works poorly if there are 2 names that are the
|
||||||
|
# same in here.
|
||||||
|
if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then
|
||||||
|
cat >> $CLONEMAP << EOF
|
||||||
|
- name: openstack/requirements
|
||||||
|
dest: $REQS_DIR
|
||||||
|
EOF
|
||||||
|
fi
|
||||||
|
/usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \
|
||||||
|
git://git.openstack.org openstack/$ZUUL_SHORT_PROJECT_NAME openstack/requirements
|
||||||
|
# REQS_DIR is not set for openstack/requirements and there is also
|
||||||
|
# no need to copy in this case.
|
||||||
|
if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then
|
||||||
|
cp $REQS_DIR/upper-constraints.txt ./
|
||||||
|
fi
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
# NOTE(mhayden): The CentOS CI image has many repositories enabled by
|
||||||
|
# default that can cause package conflicts. We must disable all of
|
||||||
|
# them here and only enable base, updates, and epel.
|
||||||
|
# We also do not want to run this on Fedora.
|
||||||
|
if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then
|
||||||
|
sudo yum-config-manager --disable \* >/dev/null
|
||||||
|
sudo yum-config-manager --enable base >/dev/null
|
||||||
|
sudo yum-config-manager --enable epel >/dev/null
|
||||||
|
sudo yum-config-manager --enable updates >/dev/null
|
||||||
|
fi
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
# NOTE(mhayden): EPEL is no longer required after installing distro
|
||||||
|
# packages with bindep. Individual roles may re-enable EPEL if they
|
||||||
|
# need it for their package installation tasks.
|
||||||
|
# We also do not want to run this on Fedora.
|
||||||
|
if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then
|
||||||
|
sudo yum-config-manager --disable epel >/dev/null
|
||||||
|
fi
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
# 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
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
# Many of the Ansible roles have a tox environment
|
||||||
|
# called 'functional', so we implement a mapping
|
||||||
|
# of the scenario 'func' to 'functional' so reduce
|
||||||
|
# the need for code churn in those repositories
|
||||||
|
# immediately.
|
||||||
|
if [ "func" == "func" ]; then
|
||||||
|
/usr/local/jenkins/slave_scripts/run-tox.sh functional
|
||||||
|
else
|
||||||
|
/usr/local/jenkins/slave_scripts/run-tox.sh func
|
||||||
|
fi
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
@ -0,0 +1,15 @@
|
|||||||
|
- hosts: all
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=/logs/**
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
@ -0,0 +1,90 @@
|
|||||||
|
- hosts: all
|
||||||
|
name: Autoconverted job legacy-ansible-hardening-ansible-func_rhel6-ubuntu-trusty
|
||||||
|
from old job gate-ansible-hardening-ansible-func_rhel6-ubuntu-trusty
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
CLONEMAP=`mktemp`
|
||||||
|
REQS_DIR=`mktemp -d`
|
||||||
|
function cleanup {
|
||||||
|
mkdir -p $WORKSPACE
|
||||||
|
rm -rf $CLONEMAP $REQS_DIR
|
||||||
|
}
|
||||||
|
trap cleanup EXIT
|
||||||
|
cat > $CLONEMAP << EOF
|
||||||
|
clonemap:
|
||||||
|
- name: 'openstack/$ZUUL_SHORT_PROJECT_NAME'
|
||||||
|
dest: .
|
||||||
|
EOF
|
||||||
|
# zuul cloner works poorly if there are 2 names that are the
|
||||||
|
# same in here.
|
||||||
|
if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then
|
||||||
|
cat >> $CLONEMAP << EOF
|
||||||
|
- name: openstack/requirements
|
||||||
|
dest: $REQS_DIR
|
||||||
|
EOF
|
||||||
|
fi
|
||||||
|
/usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \
|
||||||
|
git://git.openstack.org openstack/$ZUUL_SHORT_PROJECT_NAME openstack/requirements
|
||||||
|
# REQS_DIR is not set for openstack/requirements and there is also
|
||||||
|
# no need to copy in this case.
|
||||||
|
if [[ "openstack/$ZUUL_SHORT_PROJECT_NAME" != "openstack/requirements" ]]; then
|
||||||
|
cp $REQS_DIR/upper-constraints.txt ./
|
||||||
|
fi
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
# NOTE(mhayden): The CentOS CI image has many repositories enabled by
|
||||||
|
# default that can cause package conflicts. We must disable all of
|
||||||
|
# them here and only enable base, updates, and epel.
|
||||||
|
# We also do not want to run this on Fedora.
|
||||||
|
if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then
|
||||||
|
sudo yum-config-manager --disable \* >/dev/null
|
||||||
|
sudo yum-config-manager --enable base >/dev/null
|
||||||
|
sudo yum-config-manager --enable epel >/dev/null
|
||||||
|
sudo yum-config-manager --enable updates >/dev/null
|
||||||
|
fi
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
# NOTE(mhayden): EPEL is no longer required after installing distro
|
||||||
|
# packages with bindep. Individual roles may re-enable EPEL if they
|
||||||
|
# need it for their package installation tasks.
|
||||||
|
# We also do not want to run this on Fedora.
|
||||||
|
if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then
|
||||||
|
sudo yum-config-manager --disable epel >/dev/null
|
||||||
|
fi
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
# 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
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
# Many of the Ansible roles have a tox environment
|
||||||
|
# called 'functional', so we implement a mapping
|
||||||
|
# of the scenario 'func' to 'functional' so reduce
|
||||||
|
# the need for code churn in those repositories
|
||||||
|
# immediately.
|
||||||
|
if [ "func_rhel6" == "func" ]; then
|
||||||
|
/usr/local/jenkins/slave_scripts/run-tox.sh functional
|
||||||
|
else
|
||||||
|
/usr/local/jenkins/slave_scripts/run-tox.sh func_rhel6
|
||||||
|
fi
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
77
playbooks/legacy/ansible-lint/run.yaml
Normal file
77
playbooks/legacy/ansible-lint/run.yaml
Normal file
@ -0,0 +1,77 @@
|
|||||||
|
- hosts: all
|
||||||
|
name: Autoconverted job legacy-ansible-lint from old job gate-{name}-ansible-lint
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
CLONEMAP=`mktemp`
|
||||||
|
function cleanup {
|
||||||
|
# In cases where zuul-cloner is aborted during a git
|
||||||
|
# clone operation, git will remove the git work tree in
|
||||||
|
# its cleanup. The work tree in these jobs is the
|
||||||
|
# workspace directory, which means that subsequent
|
||||||
|
# jenkins post-build actions can not run because the
|
||||||
|
# workspace has been removed.
|
||||||
|
# To reduce the likelihood of this having an impact,
|
||||||
|
# recreate the workspace directory if needed
|
||||||
|
mkdir -p $WORKSPACE
|
||||||
|
rm -f $CLONEMAP
|
||||||
|
}
|
||||||
|
trap cleanup EXIT
|
||||||
|
cat > $CLONEMAP << EOF
|
||||||
|
clonemap:
|
||||||
|
- name: $ZUUL_PROJECT
|
||||||
|
dest: .
|
||||||
|
EOF
|
||||||
|
/usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \
|
||||||
|
git://git.openstack.org $ZUUL_PROJECT
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
sudo -H pip install -U ansible
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
sudo -H pip install ansible-lint
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -x
|
||||||
|
sudo rm -f /etc/sudoers.d/jenkins-sudo
|
||||||
|
# Prove that general sudo access is actually revoked
|
||||||
|
! sudo -n true
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
cd tests
|
||||||
|
ansible-playbook --syntax-check -i inventory test.yml -e rolename=$(basename $(dirname $(pwd)))
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
ansible-lint **/*.yml
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
80
playbooks/legacy/aodh-dsvm-functional-hbase/post.yaml
Normal file
80
playbooks/legacy/aodh-dsvm-functional-hbase/post.yaml
Normal file
@ -0,0 +1,80 @@
|
|||||||
|
- hosts: all
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=**/*nose_results.html
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=**/*testr_results.html.gz
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=/.testrepository/tmp*
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=**/*testrepository.subunit.gz
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}/tox'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=/.tox/*/log/*
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=/logs/**
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
54
playbooks/legacy/aodh-dsvm-functional-hbase/run.yaml
Normal file
54
playbooks/legacy/aodh-dsvm-functional-hbase/run.yaml
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
- hosts: all
|
||||||
|
name: Autoconverted job legacy-aodh-dsvm-functional-hbase from old job gate-aodh-dsvm-functional-hbase-ubuntu-xenial
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
cat > clonemap.yaml << EOF
|
||||||
|
clonemap:
|
||||||
|
- name: openstack-infra/devstack-gate
|
||||||
|
dest: devstack-gate
|
||||||
|
EOF
|
||||||
|
/usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \
|
||||||
|
git://git.openstack.org \
|
||||||
|
openstack-infra/devstack-gate
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
cat << 'EOF' >>"/tmp/dg-local.conf"
|
||||||
|
[[local|localrc]]
|
||||||
|
enable_plugin aodh git://git.openstack.org/openstack/aodh
|
||||||
|
|
||||||
|
EOF
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
export PYTHONUNBUFFERED=true
|
||||||
|
export PROJECTS="openstack/aodh $PROJECTS"
|
||||||
|
|
||||||
|
function gate_hook {
|
||||||
|
cd /opt/stack/new/aodh/devstack/gate
|
||||||
|
./gate_hook.sh hbase
|
||||||
|
}
|
||||||
|
export -f gate_hook
|
||||||
|
|
||||||
|
function post_test_hook {
|
||||||
|
cd /opt/stack/new/aodh/aodh/tests/functional/hooks
|
||||||
|
./post_test_hook.sh hbase
|
||||||
|
}
|
||||||
|
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
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
80
playbooks/legacy/aodh-dsvm-functional-mongodb/post.yaml
Normal file
80
playbooks/legacy/aodh-dsvm-functional-mongodb/post.yaml
Normal file
@ -0,0 +1,80 @@
|
|||||||
|
- hosts: all
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=**/*nose_results.html
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=**/*testr_results.html.gz
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=/.testrepository/tmp*
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=**/*testrepository.subunit.gz
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}/tox'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=/.tox/*/log/*
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=/logs/**
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
54
playbooks/legacy/aodh-dsvm-functional-mongodb/run.yaml
Normal file
54
playbooks/legacy/aodh-dsvm-functional-mongodb/run.yaml
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
- hosts: all
|
||||||
|
name: Autoconverted job legacy-aodh-dsvm-functional-mongodb from old job gate-aodh-dsvm-functional-mongodb-ubuntu-xenial
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
cat > clonemap.yaml << EOF
|
||||||
|
clonemap:
|
||||||
|
- name: openstack-infra/devstack-gate
|
||||||
|
dest: devstack-gate
|
||||||
|
EOF
|
||||||
|
/usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \
|
||||||
|
git://git.openstack.org \
|
||||||
|
openstack-infra/devstack-gate
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
cat << 'EOF' >>"/tmp/dg-local.conf"
|
||||||
|
[[local|localrc]]
|
||||||
|
enable_plugin aodh git://git.openstack.org/openstack/aodh
|
||||||
|
|
||||||
|
EOF
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
export PYTHONUNBUFFERED=true
|
||||||
|
export PROJECTS="openstack/aodh $PROJECTS"
|
||||||
|
|
||||||
|
function gate_hook {
|
||||||
|
cd /opt/stack/new/aodh/devstack/gate
|
||||||
|
./gate_hook.sh mongodb
|
||||||
|
}
|
||||||
|
export -f gate_hook
|
||||||
|
|
||||||
|
function post_test_hook {
|
||||||
|
cd /opt/stack/new/aodh/aodh/tests/functional/hooks
|
||||||
|
./post_test_hook.sh mongodb
|
||||||
|
}
|
||||||
|
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
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
80
playbooks/legacy/aodh-dsvm-functional-mysql/post.yaml
Normal file
80
playbooks/legacy/aodh-dsvm-functional-mysql/post.yaml
Normal file
@ -0,0 +1,80 @@
|
|||||||
|
- hosts: all
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=**/*nose_results.html
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=**/*testr_results.html.gz
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=/.testrepository/tmp*
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=**/*testrepository.subunit.gz
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}/tox'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=/.tox/*/log/*
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=/logs/**
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
54
playbooks/legacy/aodh-dsvm-functional-mysql/run.yaml
Normal file
54
playbooks/legacy/aodh-dsvm-functional-mysql/run.yaml
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
- hosts: all
|
||||||
|
name: Autoconverted job legacy-aodh-dsvm-functional-mysql from old job gate-aodh-dsvm-functional-mysql-ubuntu-xenial
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
cat > clonemap.yaml << EOF
|
||||||
|
clonemap:
|
||||||
|
- name: openstack-infra/devstack-gate
|
||||||
|
dest: devstack-gate
|
||||||
|
EOF
|
||||||
|
/usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \
|
||||||
|
git://git.openstack.org \
|
||||||
|
openstack-infra/devstack-gate
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
cat << 'EOF' >>"/tmp/dg-local.conf"
|
||||||
|
[[local|localrc]]
|
||||||
|
enable_plugin aodh git://git.openstack.org/openstack/aodh
|
||||||
|
|
||||||
|
EOF
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
export PYTHONUNBUFFERED=true
|
||||||
|
export PROJECTS="openstack/aodh $PROJECTS"
|
||||||
|
|
||||||
|
function gate_hook {
|
||||||
|
cd /opt/stack/new/aodh/devstack/gate
|
||||||
|
./gate_hook.sh mysql
|
||||||
|
}
|
||||||
|
export -f gate_hook
|
||||||
|
|
||||||
|
function post_test_hook {
|
||||||
|
cd /opt/stack/new/aodh/aodh/tests/functional/hooks
|
||||||
|
./post_test_hook.sh mysql
|
||||||
|
}
|
||||||
|
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
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
80
playbooks/legacy/aodh-dsvm-functional-postgresql/post.yaml
Normal file
80
playbooks/legacy/aodh-dsvm-functional-postgresql/post.yaml
Normal file
@ -0,0 +1,80 @@
|
|||||||
|
- hosts: all
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=**/*nose_results.html
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=**/*testr_results.html.gz
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=/.testrepository/tmp*
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=**/*testrepository.subunit.gz
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}/tox'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=/.tox/*/log/*
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=/logs/**
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
54
playbooks/legacy/aodh-dsvm-functional-postgresql/run.yaml
Normal file
54
playbooks/legacy/aodh-dsvm-functional-postgresql/run.yaml
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
- hosts: all
|
||||||
|
name: Autoconverted job legacy-aodh-dsvm-functional-postgresql from old job gate-aodh-dsvm-functional-postgresql-ubuntu-xenial
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
cat > clonemap.yaml << EOF
|
||||||
|
clonemap:
|
||||||
|
- name: openstack-infra/devstack-gate
|
||||||
|
dest: devstack-gate
|
||||||
|
EOF
|
||||||
|
/usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \
|
||||||
|
git://git.openstack.org \
|
||||||
|
openstack-infra/devstack-gate
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
cat << 'EOF' >>"/tmp/dg-local.conf"
|
||||||
|
[[local|localrc]]
|
||||||
|
enable_plugin aodh git://git.openstack.org/openstack/aodh
|
||||||
|
|
||||||
|
EOF
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
export PYTHONUNBUFFERED=true
|
||||||
|
export PROJECTS="openstack/aodh $PROJECTS"
|
||||||
|
|
||||||
|
function gate_hook {
|
||||||
|
cd /opt/stack/new/aodh/devstack/gate
|
||||||
|
./gate_hook.sh postgresql
|
||||||
|
}
|
||||||
|
export -f gate_hook
|
||||||
|
|
||||||
|
function post_test_hook {
|
||||||
|
cd /opt/stack/new/aodh/aodh/tests/functional/hooks
|
||||||
|
./post_test_hook.sh postgresql
|
||||||
|
}
|
||||||
|
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
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
80
playbooks/legacy/aodh-dsvm-tempest-plugin-hbase/post.yaml
Normal file
80
playbooks/legacy/aodh-dsvm-tempest-plugin-hbase/post.yaml
Normal file
@ -0,0 +1,80 @@
|
|||||||
|
- hosts: all
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=**/*nose_results.html
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=**/*testr_results.html.gz
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=/.testrepository/tmp*
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=**/*testrepository.subunit.gz
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}/tox'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=/.tox/*/log/*
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=/logs/**
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
51
playbooks/legacy/aodh-dsvm-tempest-plugin-hbase/run.yaml
Normal file
51
playbooks/legacy/aodh-dsvm-tempest-plugin-hbase/run.yaml
Normal file
@ -0,0 +1,51 @@
|
|||||||
|
- hosts: all
|
||||||
|
name: Autoconverted job legacy-aodh-dsvm-tempest-plugin-hbase from old job gate-aodh-dsvm-tempest-plugin-hbase-ubuntu-xenial
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
cat > clonemap.yaml << EOF
|
||||||
|
clonemap:
|
||||||
|
- name: openstack-infra/devstack-gate
|
||||||
|
dest: devstack-gate
|
||||||
|
EOF
|
||||||
|
/usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \
|
||||||
|
git://git.openstack.org \
|
||||||
|
openstack-infra/devstack-gate
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
cat << 'EOF' >>"/tmp/dg-local.conf"
|
||||||
|
[[local|localrc]]
|
||||||
|
enable_plugin aodh git://git.openstack.org/openstack/aodh
|
||||||
|
|
||||||
|
EOF
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
export PYTHONUNBUFFERED=true
|
||||||
|
export DEVSTACK_GATE_TEMPEST=1
|
||||||
|
export DEVSTACK_GATE_TEMPEST_REGEX="^aodh\."
|
||||||
|
export DEVSTACK_GATE_TEMPEST_ALL_PLUGINS=1
|
||||||
|
export PROJECTS="openstack/aodh $PROJECTS"
|
||||||
|
export AODH_BACKEND=hbase
|
||||||
|
if [ "hbase" = "postgresql" ] ; then
|
||||||
|
export DEVSTACK_GATE_POSTGRES=1
|
||||||
|
fi
|
||||||
|
if [ "x" = "x-neutron" ] ; then
|
||||||
|
export DEVSTACK_GATE_NEUTRON=1
|
||||||
|
fi
|
||||||
|
cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
|
||||||
|
./safe-devstack-vm-gate-wrap.sh
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
80
playbooks/legacy/aodh-dsvm-tempest-plugin-mongodb/post.yaml
Normal file
80
playbooks/legacy/aodh-dsvm-tempest-plugin-mongodb/post.yaml
Normal file
@ -0,0 +1,80 @@
|
|||||||
|
- hosts: all
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=**/*nose_results.html
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=**/*testr_results.html.gz
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=/.testrepository/tmp*
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=**/*testrepository.subunit.gz
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}/tox'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=/.tox/*/log/*
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=/logs/**
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
51
playbooks/legacy/aodh-dsvm-tempest-plugin-mongodb/run.yaml
Normal file
51
playbooks/legacy/aodh-dsvm-tempest-plugin-mongodb/run.yaml
Normal file
@ -0,0 +1,51 @@
|
|||||||
|
- hosts: all
|
||||||
|
name: Autoconverted job legacy-aodh-dsvm-tempest-plugin-mongodb from old job gate-aodh-dsvm-tempest-plugin-mongodb-ubuntu-xenial
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
cat > clonemap.yaml << EOF
|
||||||
|
clonemap:
|
||||||
|
- name: openstack-infra/devstack-gate
|
||||||
|
dest: devstack-gate
|
||||||
|
EOF
|
||||||
|
/usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \
|
||||||
|
git://git.openstack.org \
|
||||||
|
openstack-infra/devstack-gate
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
cat << 'EOF' >>"/tmp/dg-local.conf"
|
||||||
|
[[local|localrc]]
|
||||||
|
enable_plugin aodh git://git.openstack.org/openstack/aodh
|
||||||
|
|
||||||
|
EOF
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
export PYTHONUNBUFFERED=true
|
||||||
|
export DEVSTACK_GATE_TEMPEST=1
|
||||||
|
export DEVSTACK_GATE_TEMPEST_REGEX="^aodh\."
|
||||||
|
export DEVSTACK_GATE_TEMPEST_ALL_PLUGINS=1
|
||||||
|
export PROJECTS="openstack/aodh $PROJECTS"
|
||||||
|
export AODH_BACKEND=mongodb
|
||||||
|
if [ "mongodb" = "postgresql" ] ; then
|
||||||
|
export DEVSTACK_GATE_POSTGRES=1
|
||||||
|
fi
|
||||||
|
if [ "x" = "x-neutron" ] ; then
|
||||||
|
export DEVSTACK_GATE_NEUTRON=1
|
||||||
|
fi
|
||||||
|
cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
|
||||||
|
./safe-devstack-vm-gate-wrap.sh
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
80
playbooks/legacy/aodh-dsvm-tempest-plugin-mysql/post.yaml
Normal file
80
playbooks/legacy/aodh-dsvm-tempest-plugin-mysql/post.yaml
Normal file
@ -0,0 +1,80 @@
|
|||||||
|
- hosts: all
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=**/*nose_results.html
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=**/*testr_results.html.gz
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=/.testrepository/tmp*
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=**/*testrepository.subunit.gz
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}/tox'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=/.tox/*/log/*
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=/logs/**
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
51
playbooks/legacy/aodh-dsvm-tempest-plugin-mysql/run.yaml
Normal file
51
playbooks/legacy/aodh-dsvm-tempest-plugin-mysql/run.yaml
Normal file
@ -0,0 +1,51 @@
|
|||||||
|
- hosts: all
|
||||||
|
name: Autoconverted job legacy-aodh-dsvm-tempest-plugin-mysql from old job gate-aodh-dsvm-tempest-plugin-mysql-ubuntu-xenial
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
cat > clonemap.yaml << EOF
|
||||||
|
clonemap:
|
||||||
|
- name: openstack-infra/devstack-gate
|
||||||
|
dest: devstack-gate
|
||||||
|
EOF
|
||||||
|
/usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \
|
||||||
|
git://git.openstack.org \
|
||||||
|
openstack-infra/devstack-gate
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
cat << 'EOF' >>"/tmp/dg-local.conf"
|
||||||
|
[[local|localrc]]
|
||||||
|
enable_plugin aodh git://git.openstack.org/openstack/aodh
|
||||||
|
|
||||||
|
EOF
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
export PYTHONUNBUFFERED=true
|
||||||
|
export DEVSTACK_GATE_TEMPEST=1
|
||||||
|
export DEVSTACK_GATE_TEMPEST_REGEX="^aodh\."
|
||||||
|
export DEVSTACK_GATE_TEMPEST_ALL_PLUGINS=1
|
||||||
|
export PROJECTS="openstack/aodh $PROJECTS"
|
||||||
|
export AODH_BACKEND=mysql
|
||||||
|
if [ "mysql" = "postgresql" ] ; then
|
||||||
|
export DEVSTACK_GATE_POSTGRES=1
|
||||||
|
fi
|
||||||
|
if [ "x" = "x-neutron" ] ; then
|
||||||
|
export DEVSTACK_GATE_NEUTRON=1
|
||||||
|
fi
|
||||||
|
cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
|
||||||
|
./safe-devstack-vm-gate-wrap.sh
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
@ -0,0 +1,80 @@
|
|||||||
|
- hosts: all
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=**/*nose_results.html
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=**/*testr_results.html.gz
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=/.testrepository/tmp*
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=**/*testrepository.subunit.gz
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}/tox'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=/.tox/*/log/*
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=/logs/**
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
@ -0,0 +1,52 @@
|
|||||||
|
- hosts: all
|
||||||
|
name: Autoconverted job legacy-aodh-dsvm-tempest-plugin-postgresql from old job
|
||||||
|
gate-aodh-dsvm-tempest-plugin-postgresql-ubuntu-xenial
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
cat > clonemap.yaml << EOF
|
||||||
|
clonemap:
|
||||||
|
- name: openstack-infra/devstack-gate
|
||||||
|
dest: devstack-gate
|
||||||
|
EOF
|
||||||
|
/usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \
|
||||||
|
git://git.openstack.org \
|
||||||
|
openstack-infra/devstack-gate
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
cat << 'EOF' >>"/tmp/dg-local.conf"
|
||||||
|
[[local|localrc]]
|
||||||
|
enable_plugin aodh git://git.openstack.org/openstack/aodh
|
||||||
|
|
||||||
|
EOF
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
export PYTHONUNBUFFERED=true
|
||||||
|
export DEVSTACK_GATE_TEMPEST=1
|
||||||
|
export DEVSTACK_GATE_TEMPEST_REGEX="^aodh\."
|
||||||
|
export DEVSTACK_GATE_TEMPEST_ALL_PLUGINS=1
|
||||||
|
export PROJECTS="openstack/aodh $PROJECTS"
|
||||||
|
export AODH_BACKEND=postgresql
|
||||||
|
if [ "postgresql" = "postgresql" ] ; then
|
||||||
|
export DEVSTACK_GATE_POSTGRES=1
|
||||||
|
fi
|
||||||
|
if [ "x" = "x-neutron" ] ; then
|
||||||
|
export DEVSTACK_GATE_NEUTRON=1
|
||||||
|
fi
|
||||||
|
cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
|
||||||
|
./safe-devstack-vm-gate-wrap.sh
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
75
playbooks/legacy/api-guide/post.yaml
Normal file
75
playbooks/legacy/api-guide/post.yaml
Normal file
@ -0,0 +1,75 @@
|
|||||||
|
- hosts: all
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- name: Copy files from api-guide/build/html/ on node
|
||||||
|
synchronize:
|
||||||
|
src: api-guide/build/html/
|
||||||
|
dest: '{{ zuul.executor.log_root }}/html/'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=**/*nose_results.html
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=**/*testr_results.html.gz
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=/.testrepository/tmp*
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=**/*testrepository.subunit.gz
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}/tox'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=/.tox/*/log/*
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
54
playbooks/legacy/api-guide/run.yaml
Normal file
54
playbooks/legacy/api-guide/run.yaml
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
- hosts: all
|
||||||
|
name: Autoconverted job legacy-api-guide from old job gate-{name}-api-guide
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
CLONEMAP=`mktemp`
|
||||||
|
REQS_DIR=`mktemp -d`
|
||||||
|
function cleanup {
|
||||||
|
mkdir -p $WORKSPACE
|
||||||
|
rm -rf $CLONEMAP $REQS_DIR
|
||||||
|
}
|
||||||
|
trap cleanup EXIT
|
||||||
|
cat > $CLONEMAP << EOF
|
||||||
|
clonemap:
|
||||||
|
- name: $ZUUL_PROJECT
|
||||||
|
dest: .
|
||||||
|
EOF
|
||||||
|
# zuul cloner works poorly if there are 2 names that are the
|
||||||
|
# same in here.
|
||||||
|
if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then
|
||||||
|
cat >> $CLONEMAP << EOF
|
||||||
|
- name: openstack/requirements
|
||||||
|
dest: $REQS_DIR
|
||||||
|
EOF
|
||||||
|
fi
|
||||||
|
/usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \
|
||||||
|
git://git.openstack.org $ZUUL_PROJECT openstack/requirements
|
||||||
|
# REQS_DIR is not set for openstack/requirements and there is also
|
||||||
|
# no need to copy in this case.
|
||||||
|
if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then
|
||||||
|
cp $REQS_DIR/upper-constraints.txt ./
|
||||||
|
fi
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -x
|
||||||
|
sudo rm -f /etc/sudoers.d/jenkins-sudo
|
||||||
|
# Prove that general sudo access is actually revoked
|
||||||
|
! sudo -n true
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: /usr/local/jenkins/slave_scripts/run-tox.sh api-guide
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
75
playbooks/legacy/api-ref/post.yaml
Normal file
75
playbooks/legacy/api-ref/post.yaml
Normal file
@ -0,0 +1,75 @@
|
|||||||
|
- hosts: all
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- name: Copy files from api-ref/build/html/ on node
|
||||||
|
synchronize:
|
||||||
|
src: api-ref/build/html/
|
||||||
|
dest: '{{ zuul.executor.log_root }}/html/'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=**/*nose_results.html
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=**/*testr_results.html.gz
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=/.testrepository/tmp*
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=**/*testrepository.subunit.gz
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}/tox'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=/.tox/*/log/*
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
54
playbooks/legacy/api-ref/run.yaml
Normal file
54
playbooks/legacy/api-ref/run.yaml
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
- hosts: all
|
||||||
|
name: Autoconverted job legacy-api-ref from old job gate-{name}-api-ref
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
CLONEMAP=`mktemp`
|
||||||
|
REQS_DIR=`mktemp -d`
|
||||||
|
function cleanup {
|
||||||
|
mkdir -p $WORKSPACE
|
||||||
|
rm -rf $CLONEMAP $REQS_DIR
|
||||||
|
}
|
||||||
|
trap cleanup EXIT
|
||||||
|
cat > $CLONEMAP << EOF
|
||||||
|
clonemap:
|
||||||
|
- name: $ZUUL_PROJECT
|
||||||
|
dest: .
|
||||||
|
EOF
|
||||||
|
# zuul cloner works poorly if there are 2 names that are the
|
||||||
|
# same in here.
|
||||||
|
if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then
|
||||||
|
cat >> $CLONEMAP << EOF
|
||||||
|
- name: openstack/requirements
|
||||||
|
dest: $REQS_DIR
|
||||||
|
EOF
|
||||||
|
fi
|
||||||
|
/usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \
|
||||||
|
git://git.openstack.org $ZUUL_PROJECT openstack/requirements
|
||||||
|
# REQS_DIR is not set for openstack/requirements and there is also
|
||||||
|
# no need to copy in this case.
|
||||||
|
if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then
|
||||||
|
cp $REQS_DIR/upper-constraints.txt ./
|
||||||
|
fi
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -x
|
||||||
|
sudo rm -f /etc/sudoers.d/jenkins-sudo
|
||||||
|
# Prove that general sudo access is actually revoked
|
||||||
|
! sudo -n true
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: /usr/local/jenkins/slave_scripts/run-tox.sh api-ref
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
@ -0,0 +1,80 @@
|
|||||||
|
- hosts: all
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=/testrepository.subunit.gz
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=**/*nose_results.html
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=**/*testr_results.html.gz
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=/.testrepository/tmp*
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=**/*testrepository.subunit.gz
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}/tox'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=/.tox/*/log/*
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
@ -0,0 +1,66 @@
|
|||||||
|
- hosts: all
|
||||||
|
name: Autoconverted job legacy-api-site-propose-translation-update from old job
|
||||||
|
api-site-propose-translation-update
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
cd /
|
||||||
|
rm -rf `dirname $WORKSPACE`/*
|
||||||
|
mkdir $WORKSPACE
|
||||||
|
cd $WORKSPACE
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -x
|
||||||
|
sudo rm -f /etc/sudoers.d/jenkins-sudo
|
||||||
|
# Prove that general sudo access is actually revoked
|
||||||
|
! sudo -n true
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
export BRANCH=master
|
||||||
|
CLONEMAP=`mktemp`
|
||||||
|
REQS_DIR=`mktemp -d`
|
||||||
|
function cleanup {
|
||||||
|
mkdir -p $WORKSPACE
|
||||||
|
rm -rf $CLONEMAP $REQS_DIR
|
||||||
|
}
|
||||||
|
trap cleanup EXIT
|
||||||
|
cat > $CLONEMAP << EOF
|
||||||
|
clonemap:
|
||||||
|
- name: $ZUUL_PROJECT
|
||||||
|
dest: .
|
||||||
|
EOF
|
||||||
|
# zuul cloner works poorly if there are 2 names that are the
|
||||||
|
# same in here.
|
||||||
|
if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then
|
||||||
|
cat >> $CLONEMAP << EOF
|
||||||
|
- name: openstack/requirements
|
||||||
|
dest: $REQS_DIR
|
||||||
|
EOF
|
||||||
|
fi
|
||||||
|
/usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \
|
||||||
|
--branch=$BRANCH \
|
||||||
|
git://git.openstack.org $ZUUL_PROJECT openstack/requirements
|
||||||
|
# REQS_DIR is not set for openstack/requirements and there is also
|
||||||
|
# no need to copy in this case.
|
||||||
|
if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then
|
||||||
|
cp $REQS_DIR/upper-constraints.txt ./
|
||||||
|
fi
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
/usr/local/jenkins/slave_scripts/propose_translation_update.sh $ZUUL_SHORT_PROJECT_NAME master {name}-propose-translation-update{suffix}
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
@ -0,0 +1,23 @@
|
|||||||
|
- hosts: all
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- name: Copy files from publish-docs/ on node
|
||||||
|
synchronize:
|
||||||
|
src: publish-docs/
|
||||||
|
dest: '{{ zuul.executor.log_root }}/html/'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=/build-*.log.gz
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
68
playbooks/legacy/api-site-tox-doc-publish-checklang/run.yaml
Normal file
68
playbooks/legacy/api-site-tox-doc-publish-checklang/run.yaml
Normal file
@ -0,0 +1,68 @@
|
|||||||
|
- hosts: all
|
||||||
|
name: Autoconverted job legacy-api-site-tox-doc-publish-checklang from old job gate-api-site-tox-doc-publish-checklang
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
CLONEMAP=`mktemp`
|
||||||
|
REQS_DIR=`mktemp -d`
|
||||||
|
function cleanup {
|
||||||
|
mkdir -p $WORKSPACE
|
||||||
|
rm -rf $CLONEMAP $REQS_DIR
|
||||||
|
}
|
||||||
|
trap cleanup EXIT
|
||||||
|
cat > $CLONEMAP << EOF
|
||||||
|
clonemap:
|
||||||
|
- name: $ZUUL_PROJECT
|
||||||
|
dest: .
|
||||||
|
EOF
|
||||||
|
# zuul cloner works poorly if there are 2 names that are the
|
||||||
|
# same in here.
|
||||||
|
if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then
|
||||||
|
cat >> $CLONEMAP << EOF
|
||||||
|
- name: openstack/requirements
|
||||||
|
dest: $REQS_DIR
|
||||||
|
EOF
|
||||||
|
fi
|
||||||
|
/usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \
|
||||||
|
git://git.openstack.org $ZUUL_PROJECT openstack/requirements
|
||||||
|
# REQS_DIR is not set for openstack/requirements and there is also
|
||||||
|
# no need to copy in this case.
|
||||||
|
if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then
|
||||||
|
cp $REQS_DIR/upper-constraints.txt ./
|
||||||
|
fi
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -x
|
||||||
|
sudo rm -f /etc/sudoers.d/jenkins-sudo
|
||||||
|
# Prove that general sudo access is actually revoked
|
||||||
|
! sudo -n true
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: /usr/local/jenkins/slave_scripts/run-tox.sh checklang
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
OUT=`git ls-files --other --exclude-standard --directory`
|
||||||
|
if [ -z "$OUT" ]; then
|
||||||
|
echo "No extra files created during test."
|
||||||
|
exit 0
|
||||||
|
else
|
||||||
|
echo "The following un-ignored files were created during the test:"
|
||||||
|
echo "$OUT"
|
||||||
|
exit 0 # TODO: change to 1 to fail tests.
|
||||||
|
fi
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
@ -0,0 +1,99 @@
|
|||||||
|
- hosts: all
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- name: Ensure artifacts directory exists
|
||||||
|
file:
|
||||||
|
path: '{{ zuul.executor.work_root }}/artifacts'
|
||||||
|
state: directory
|
||||||
|
delegate_to: localhost
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.work_root }}/artifacts/'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=/translation-source/**/*.pot
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=/testrepository.subunit.gz
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=**/*nose_results.html
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=**/*testr_results.html.gz
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=/.testrepository/tmp*
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=**/*testrepository.subunit.gz
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}/tox'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=/.tox/*/log/*
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
@ -0,0 +1,64 @@
|
|||||||
|
- hosts: all
|
||||||
|
name: Autoconverted job legacy-api-site-upstream-translation-update from old job
|
||||||
|
api-site-upstream-translation-update
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
cd /
|
||||||
|
rm -rf `dirname $WORKSPACE`/*
|
||||||
|
mkdir $WORKSPACE
|
||||||
|
cd $WORKSPACE
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -x
|
||||||
|
sudo rm -f /etc/sudoers.d/jenkins-sudo
|
||||||
|
# Prove that general sudo access is actually revoked
|
||||||
|
! sudo -n true
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
CLONEMAP=`mktemp`
|
||||||
|
REQS_DIR=`mktemp -d`
|
||||||
|
function cleanup {
|
||||||
|
mkdir -p $WORKSPACE
|
||||||
|
rm -rf $CLONEMAP $REQS_DIR
|
||||||
|
}
|
||||||
|
trap cleanup EXIT
|
||||||
|
cat > $CLONEMAP << EOF
|
||||||
|
clonemap:
|
||||||
|
- name: $ZUUL_PROJECT
|
||||||
|
dest: .
|
||||||
|
EOF
|
||||||
|
# zuul cloner works poorly if there are 2 names that are the
|
||||||
|
# same in here.
|
||||||
|
if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then
|
||||||
|
cat >> $CLONEMAP << EOF
|
||||||
|
- name: openstack/requirements
|
||||||
|
dest: $REQS_DIR
|
||||||
|
EOF
|
||||||
|
fi
|
||||||
|
/usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \
|
||||||
|
git://git.openstack.org $ZUUL_PROJECT openstack/requirements
|
||||||
|
# REQS_DIR is not set for openstack/requirements and there is also
|
||||||
|
# no need to copy in this case.
|
||||||
|
if [[ "$ZUUL_PROJECT" != "openstack/requirements" ]]; then
|
||||||
|
cp $REQS_DIR/upper-constraints.txt ./
|
||||||
|
fi
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
/usr/local/jenkins/slave_scripts/upstream_translation_update.sh $ZUUL_SHORT_PROJECT_NAME {name}-upstream-translation-update
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
54
playbooks/legacy/app-catalog-nodejs4-npm-run-lint/post.yaml
Normal file
54
playbooks/legacy/app-catalog-nodejs4-npm-run-lint/post.yaml
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
- hosts: all
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=/cover/**
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=/reports/**
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=/npm-shrinkwrap.json
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=/karma.subunit
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
133
playbooks/legacy/app-catalog-nodejs4-npm-run-lint/run.yaml
Normal file
133
playbooks/legacy/app-catalog-nodejs4-npm-run-lint/run.yaml
Normal file
@ -0,0 +1,133 @@
|
|||||||
|
- hosts: all
|
||||||
|
name: Autoconverted job legacy-app-catalog-nodejs4-npm-run-lint from old job gate-app-catalog-nodejs4-npm-run-lint
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
CLONEMAP=`mktemp`
|
||||||
|
function cleanup {
|
||||||
|
# In cases where zuul-cloner is aborted during a git
|
||||||
|
# clone operation, git will remove the git work tree in
|
||||||
|
# its cleanup. The work tree in these jobs is the
|
||||||
|
# workspace directory, which means that subsequent
|
||||||
|
# jenkins post-build actions can not run because the
|
||||||
|
# workspace has been removed.
|
||||||
|
# To reduce the likelihood of this having an impact,
|
||||||
|
# recreate the workspace directory if needed
|
||||||
|
mkdir -p $WORKSPACE
|
||||||
|
rm -f $CLONEMAP
|
||||||
|
}
|
||||||
|
trap cleanup EXIT
|
||||||
|
cat > $CLONEMAP << EOF
|
||||||
|
clonemap:
|
||||||
|
- name: $ZUUL_PROJECT
|
||||||
|
dest: .
|
||||||
|
EOF
|
||||||
|
/usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \
|
||||||
|
git://git.openstack.org $ZUUL_PROJECT
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -u
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
# Prerequisites
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install -y apt-transport-https lsb-release curl
|
||||||
|
|
||||||
|
DISTRO=$(lsb_release -c -s)
|
||||||
|
|
||||||
|
# Install via nodesource
|
||||||
|
curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | sudo apt-key add -
|
||||||
|
|
||||||
|
echo "deb https://deb.nodesource.com/node_4.x $DISTRO main" | sudo tee /etc/apt/sources.list.d/nodesource.list
|
||||||
|
echo "deb-src https://deb.nodesource.com/node_4.x $DISTRO main" | sudo tee -a /etc/apt/sources.list.d/nodesource.list
|
||||||
|
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install -y nodejs
|
||||||
|
|
||||||
|
# Output to the log for debugging sake.
|
||||||
|
node --version
|
||||||
|
npm --version
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install -y xvfb
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install -y chromium-browser
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install -y firefox dbus
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -x
|
||||||
|
sudo rm -f /etc/sudoers.d/jenkins-sudo
|
||||||
|
# Prove that general sudo access is actually revoked
|
||||||
|
! sudo -n true
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
DIMENSIONS='1280x1024x24'
|
||||||
|
/usr/bin/Xvfb :99 -screen 0 ${DIMENSIONS} -ac +extension GLX +render -noreset 2>&1 > /dev/null &
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -u
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
export DISPLAY=:99
|
||||||
|
npm install --verbose
|
||||||
|
|
||||||
|
# Try running as a standard lifecycle script, otherwise try custom.
|
||||||
|
npm_lifecycle_phases="publish install version test stop start restart pack"
|
||||||
|
|
||||||
|
if [[ $npm_lifecycle_phases =~ (^| )lint($| ) ]]; then
|
||||||
|
npm lint --verbose
|
||||||
|
else
|
||||||
|
npm run lint --verbose
|
||||||
|
fi
|
||||||
|
|
||||||
|
# If no shrinkwrap exists, generate it.
|
||||||
|
if [ ! -f ./npm-shrinkwrap.json ]; then
|
||||||
|
npm prune # https://github.com/npm/npm/issues/6298
|
||||||
|
npm shrinkwrap
|
||||||
|
fi
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
OUT=`git ls-files --other --exclude-standard --directory`
|
||||||
|
if [ -z "$OUT" ]; then
|
||||||
|
echo "No extra files created during test."
|
||||||
|
exit 0
|
||||||
|
else
|
||||||
|
echo "The following un-ignored files were created during the test:"
|
||||||
|
echo "$OUT"
|
||||||
|
exit 0 # TODO: change to 1 to fail tests.
|
||||||
|
fi
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
93
playbooks/legacy/app-catalog-ui-dsvm-integration/post.yaml
Normal file
93
playbooks/legacy/app-catalog-ui-dsvm-integration/post.yaml
Normal file
@ -0,0 +1,93 @@
|
|||||||
|
- hosts: all
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=**/*nose_results.html
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=**/*testr_results.html.gz
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=/.testrepository/tmp*
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=**/*testrepository.subunit.gz
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}/tox'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=/.tox/*/log/*
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=/logs/**
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}/screenshots'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=/integration_tests_screenshots/**
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
71
playbooks/legacy/app-catalog-ui-dsvm-integration/run.yaml
Normal file
71
playbooks/legacy/app-catalog-ui-dsvm-integration/run.yaml
Normal file
@ -0,0 +1,71 @@
|
|||||||
|
- hosts: all
|
||||||
|
name: Autoconverted job legacy-app-catalog-ui-dsvm-integration from old job gate-app-catalog-ui-dsvm-integration
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
cat > clonemap.yaml << EOF
|
||||||
|
clonemap:
|
||||||
|
- name: openstack-infra/devstack-gate
|
||||||
|
dest: devstack-gate
|
||||||
|
EOF
|
||||||
|
/usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \
|
||||||
|
git://git.openstack.org \
|
||||||
|
openstack-infra/devstack-gate
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install -y firefox dbus
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install -y xvfb
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
cat << 'EOF' >>"/tmp/dg-local.conf"
|
||||||
|
[[local|localrc]]
|
||||||
|
enable_plugin app-catalog-ui https://git.openstack.org/openstack/app-catalog-ui
|
||||||
|
|
||||||
|
EOF
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
export PYTHONUNBUFFERED=true
|
||||||
|
export DEVSTACK_GATE_TEMPEST=0
|
||||||
|
export DEVSTACK_GATE_EXERCISES=0
|
||||||
|
export DEVSTACK_GATE_INSTALL_TESTONLY=1
|
||||||
|
export DEVSTACK_GATE_NEUTRON=1
|
||||||
|
export DEVSTACK_GATE_HORIZON=1
|
||||||
|
|
||||||
|
# Enable App Catalog Horizon plugin
|
||||||
|
export PROJECTS="openstack/app-catalog-ui $PROJECTS"
|
||||||
|
|
||||||
|
function pre_test_hook {
|
||||||
|
$BASE/new/app-catalog-ui/tools/gate/integration/pre_test_hook.sh
|
||||||
|
}
|
||||||
|
export -f pre_test_hook
|
||||||
|
|
||||||
|
function post_test_hook {
|
||||||
|
$BASE/new/app-catalog-ui/tools/gate/integration/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
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
@ -0,0 +1,54 @@
|
|||||||
|
- hosts: all
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=/cover/**
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=/reports/**
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=/npm-shrinkwrap.json
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=/karma.subunit
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
134
playbooks/legacy/app-catalog-ui-nodejs4-npm-run-lint/run.yaml
Normal file
134
playbooks/legacy/app-catalog-ui-nodejs4-npm-run-lint/run.yaml
Normal file
@ -0,0 +1,134 @@
|
|||||||
|
- hosts: all
|
||||||
|
name: Autoconverted job legacy-app-catalog-ui-nodejs4-npm-run-lint from old job
|
||||||
|
gate-app-catalog-ui-nodejs4-npm-run-lint
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
CLONEMAP=`mktemp`
|
||||||
|
function cleanup {
|
||||||
|
# In cases where zuul-cloner is aborted during a git
|
||||||
|
# clone operation, git will remove the git work tree in
|
||||||
|
# its cleanup. The work tree in these jobs is the
|
||||||
|
# workspace directory, which means that subsequent
|
||||||
|
# jenkins post-build actions can not run because the
|
||||||
|
# workspace has been removed.
|
||||||
|
# To reduce the likelihood of this having an impact,
|
||||||
|
# recreate the workspace directory if needed
|
||||||
|
mkdir -p $WORKSPACE
|
||||||
|
rm -f $CLONEMAP
|
||||||
|
}
|
||||||
|
trap cleanup EXIT
|
||||||
|
cat > $CLONEMAP << EOF
|
||||||
|
clonemap:
|
||||||
|
- name: $ZUUL_PROJECT
|
||||||
|
dest: .
|
||||||
|
EOF
|
||||||
|
/usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \
|
||||||
|
git://git.openstack.org $ZUUL_PROJECT
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -u
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
# Prerequisites
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install -y apt-transport-https lsb-release curl
|
||||||
|
|
||||||
|
DISTRO=$(lsb_release -c -s)
|
||||||
|
|
||||||
|
# Install via nodesource
|
||||||
|
curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | sudo apt-key add -
|
||||||
|
|
||||||
|
echo "deb https://deb.nodesource.com/node_4.x $DISTRO main" | sudo tee /etc/apt/sources.list.d/nodesource.list
|
||||||
|
echo "deb-src https://deb.nodesource.com/node_4.x $DISTRO main" | sudo tee -a /etc/apt/sources.list.d/nodesource.list
|
||||||
|
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install -y nodejs
|
||||||
|
|
||||||
|
# Output to the log for debugging sake.
|
||||||
|
node --version
|
||||||
|
npm --version
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install -y xvfb
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install -y chromium-browser
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install -y firefox dbus
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -x
|
||||||
|
sudo rm -f /etc/sudoers.d/jenkins-sudo
|
||||||
|
# Prove that general sudo access is actually revoked
|
||||||
|
! sudo -n true
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
DIMENSIONS='1280x1024x24'
|
||||||
|
/usr/bin/Xvfb :99 -screen 0 ${DIMENSIONS} -ac +extension GLX +render -noreset 2>&1 > /dev/null &
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -u
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
export DISPLAY=:99
|
||||||
|
npm install --verbose
|
||||||
|
|
||||||
|
# Try running as a standard lifecycle script, otherwise try custom.
|
||||||
|
npm_lifecycle_phases="publish install version test stop start restart pack"
|
||||||
|
|
||||||
|
if [[ $npm_lifecycle_phases =~ (^| )lint($| ) ]]; then
|
||||||
|
npm lint --verbose
|
||||||
|
else
|
||||||
|
npm run lint --verbose
|
||||||
|
fi
|
||||||
|
|
||||||
|
# If no shrinkwrap exists, generate it.
|
||||||
|
if [ ! -f ./npm-shrinkwrap.json ]; then
|
||||||
|
npm prune # https://github.com/npm/npm/issues/6298
|
||||||
|
npm shrinkwrap
|
||||||
|
fi
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
OUT=`git ls-files --other --exclude-standard --directory`
|
||||||
|
if [ -z "$OUT" ]; then
|
||||||
|
echo "No extra files created during test."
|
||||||
|
exit 0
|
||||||
|
else
|
||||||
|
echo "The following un-ignored files were created during the test:"
|
||||||
|
echo "$OUT"
|
||||||
|
exit 0 # TODO: change to 1 to fail tests.
|
||||||
|
fi
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
@ -0,0 +1,15 @@
|
|||||||
|
- hosts: all
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=/logs/**
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
@ -0,0 +1,71 @@
|
|||||||
|
- hosts: all
|
||||||
|
name: Autoconverted job legacy-ara-integration-openstack-ansible-func-centos-7 from
|
||||||
|
old job gate-ara-integration-openstack-ansible-func-centos-7-nv
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
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-tests
|
||||||
|
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-tests \
|
||||||
|
openstack/requirements
|
||||||
|
cp $REQS_DIR/upper-constraints.txt ./
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
# NOTE(mhayden): The CentOS CI image has many repositories enabled by
|
||||||
|
# default that can cause package conflicts. We must disable all of
|
||||||
|
# them here and only enable base, updates, and epel.
|
||||||
|
if [[ -e /usr/bin/yum ]] && [[ -x /usr/bin/yum-config-manager ]]; then
|
||||||
|
sudo yum-config-manager --disable \*
|
||||||
|
sudo yum-config-manager --enable base
|
||||||
|
sudo yum-config-manager --enable epel
|
||||||
|
sudo yum-config-manager --enable updates
|
||||||
|
fi
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
# NOTE(mhayden): EPEL is no longer required after installing distro
|
||||||
|
# packages with bindep. Individual roles may re-enable EPEL if they
|
||||||
|
# need it for their package installation tasks.
|
||||||
|
if [[ -e /usr/bin/yum ]] && [[ -x /usr/bin/yum-config-manager ]]; then
|
||||||
|
sudo yum-config-manager --disable epel
|
||||||
|
fi
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
# 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
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
/usr/local/jenkins/slave_scripts/run-tox.sh functional
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
@ -0,0 +1,15 @@
|
|||||||
|
- hosts: all
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=/logs/**
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
@ -0,0 +1,71 @@
|
|||||||
|
- hosts: all
|
||||||
|
name: Autoconverted job legacy-ara-integration-openstack-ansible-func from old job
|
||||||
|
gate-ara-integration-openstack-ansible-func-ubuntu-xenial-nv
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
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-tests
|
||||||
|
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-tests \
|
||||||
|
openstack/requirements
|
||||||
|
cp $REQS_DIR/upper-constraints.txt ./
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
# NOTE(mhayden): The CentOS CI image has many repositories enabled by
|
||||||
|
# default that can cause package conflicts. We must disable all of
|
||||||
|
# them here and only enable base, updates, and epel.
|
||||||
|
if [[ -e /usr/bin/yum ]] && [[ -x /usr/bin/yum-config-manager ]]; then
|
||||||
|
sudo yum-config-manager --disable \*
|
||||||
|
sudo yum-config-manager --enable base
|
||||||
|
sudo yum-config-manager --enable epel
|
||||||
|
sudo yum-config-manager --enable updates
|
||||||
|
fi
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
# NOTE(mhayden): EPEL is no longer required after installing distro
|
||||||
|
# packages with bindep. Individual roles may re-enable EPEL if they
|
||||||
|
# need it for their package installation tasks.
|
||||||
|
if [[ -e /usr/bin/yum ]] && [[ -x /usr/bin/yum-config-manager ]]; then
|
||||||
|
sudo yum-config-manager --disable epel
|
||||||
|
fi
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
# 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
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
/usr/local/jenkins/slave_scripts/run-tox.sh functional
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
@ -0,0 +1,15 @@
|
|||||||
|
- hosts: all
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=/logs/**
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
@ -0,0 +1,44 @@
|
|||||||
|
- hosts: all
|
||||||
|
name: Autoconverted job legacy-ara-integration-py27-2.2.3.0-centos-7 from old job
|
||||||
|
gate-ara-integration-py27-2.2.3.0-centos-7
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
CLONEMAP=`mktemp`
|
||||||
|
function cleanup {
|
||||||
|
# In cases where zuul-cloner is aborted during a git
|
||||||
|
# clone operation, git will remove the git work tree in
|
||||||
|
# its cleanup. The work tree in these jobs is the
|
||||||
|
# workspace directory, which means that subsequent
|
||||||
|
# jenkins post-build actions can not run because the
|
||||||
|
# workspace has been removed.
|
||||||
|
# To reduce the likelihood of this having an impact,
|
||||||
|
# recreate the workspace directory if needed
|
||||||
|
mkdir -p $WORKSPACE
|
||||||
|
rm -f $CLONEMAP
|
||||||
|
}
|
||||||
|
trap cleanup EXIT
|
||||||
|
cat > $CLONEMAP << EOF
|
||||||
|
clonemap:
|
||||||
|
- name: $ZUUL_PROJECT
|
||||||
|
dest: .
|
||||||
|
EOF
|
||||||
|
/usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \
|
||||||
|
git://git.openstack.org $ZUUL_PROJECT
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
./run_tests.sh --python py27 --ansible 2.2.3.0
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
@ -0,0 +1,15 @@
|
|||||||
|
- hosts: all
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=/logs/**
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
@ -0,0 +1,44 @@
|
|||||||
|
- hosts: all
|
||||||
|
name: Autoconverted job legacy-ara-integration-py27-devel-centos-7 from old job
|
||||||
|
gate-ara-integration-py27-devel-centos-7-nv
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
CLONEMAP=`mktemp`
|
||||||
|
function cleanup {
|
||||||
|
# In cases where zuul-cloner is aborted during a git
|
||||||
|
# clone operation, git will remove the git work tree in
|
||||||
|
# its cleanup. The work tree in these jobs is the
|
||||||
|
# workspace directory, which means that subsequent
|
||||||
|
# jenkins post-build actions can not run because the
|
||||||
|
# workspace has been removed.
|
||||||
|
# To reduce the likelihood of this having an impact,
|
||||||
|
# recreate the workspace directory if needed
|
||||||
|
mkdir -p $WORKSPACE
|
||||||
|
rm -f $CLONEMAP
|
||||||
|
}
|
||||||
|
trap cleanup EXIT
|
||||||
|
cat > $CLONEMAP << EOF
|
||||||
|
clonemap:
|
||||||
|
- name: $ZUUL_PROJECT
|
||||||
|
dest: .
|
||||||
|
EOF
|
||||||
|
/usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \
|
||||||
|
git://git.openstack.org $ZUUL_PROJECT
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
./run_tests.sh --python py27 --ansible devel
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
@ -0,0 +1,15 @@
|
|||||||
|
- hosts: all
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=/logs/**
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
@ -0,0 +1,44 @@
|
|||||||
|
- hosts: all
|
||||||
|
name: Autoconverted job legacy-ara-integration-py27-latest-centos-7 from old job
|
||||||
|
gate-ara-integration-py27-latest-centos-7
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
CLONEMAP=`mktemp`
|
||||||
|
function cleanup {
|
||||||
|
# In cases where zuul-cloner is aborted during a git
|
||||||
|
# clone operation, git will remove the git work tree in
|
||||||
|
# its cleanup. The work tree in these jobs is the
|
||||||
|
# workspace directory, which means that subsequent
|
||||||
|
# jenkins post-build actions can not run because the
|
||||||
|
# workspace has been removed.
|
||||||
|
# To reduce the likelihood of this having an impact,
|
||||||
|
# recreate the workspace directory if needed
|
||||||
|
mkdir -p $WORKSPACE
|
||||||
|
rm -f $CLONEMAP
|
||||||
|
}
|
||||||
|
trap cleanup EXIT
|
||||||
|
cat > $CLONEMAP << EOF
|
||||||
|
clonemap:
|
||||||
|
- name: $ZUUL_PROJECT
|
||||||
|
dest: .
|
||||||
|
EOF
|
||||||
|
/usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \
|
||||||
|
git://git.openstack.org $ZUUL_PROJECT
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
./run_tests.sh --python py27 --ansible latest
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
@ -0,0 +1,15 @@
|
|||||||
|
- hosts: all
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=/logs/**
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
@ -0,0 +1,44 @@
|
|||||||
|
- hosts: all
|
||||||
|
name: Autoconverted job legacy-ara-integration-py35-devel-fedora-26 from old job
|
||||||
|
gate-ara-integration-py35-devel-fedora-26-nv
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
CLONEMAP=`mktemp`
|
||||||
|
function cleanup {
|
||||||
|
# In cases where zuul-cloner is aborted during a git
|
||||||
|
# clone operation, git will remove the git work tree in
|
||||||
|
# its cleanup. The work tree in these jobs is the
|
||||||
|
# workspace directory, which means that subsequent
|
||||||
|
# jenkins post-build actions can not run because the
|
||||||
|
# workspace has been removed.
|
||||||
|
# To reduce the likelihood of this having an impact,
|
||||||
|
# recreate the workspace directory if needed
|
||||||
|
mkdir -p $WORKSPACE
|
||||||
|
rm -f $CLONEMAP
|
||||||
|
}
|
||||||
|
trap cleanup EXIT
|
||||||
|
cat > $CLONEMAP << EOF
|
||||||
|
clonemap:
|
||||||
|
- name: $ZUUL_PROJECT
|
||||||
|
dest: .
|
||||||
|
EOF
|
||||||
|
/usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \
|
||||||
|
git://git.openstack.org $ZUUL_PROJECT
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
./run_tests.sh --python py35 --ansible devel
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
15
playbooks/legacy/ara-integration-py35-devel/post.yaml
Normal file
15
playbooks/legacy/ara-integration-py35-devel/post.yaml
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
- hosts: all
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=/logs/**
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
43
playbooks/legacy/ara-integration-py35-devel/run.yaml
Normal file
43
playbooks/legacy/ara-integration-py35-devel/run.yaml
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
- hosts: all
|
||||||
|
name: Autoconverted job legacy-ara-integration-py35-devel from old job gate-ara-integration-py35-devel-ubuntu-xenial-nv
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
CLONEMAP=`mktemp`
|
||||||
|
function cleanup {
|
||||||
|
# In cases where zuul-cloner is aborted during a git
|
||||||
|
# clone operation, git will remove the git work tree in
|
||||||
|
# its cleanup. The work tree in these jobs is the
|
||||||
|
# workspace directory, which means that subsequent
|
||||||
|
# jenkins post-build actions can not run because the
|
||||||
|
# workspace has been removed.
|
||||||
|
# To reduce the likelihood of this having an impact,
|
||||||
|
# recreate the workspace directory if needed
|
||||||
|
mkdir -p $WORKSPACE
|
||||||
|
rm -f $CLONEMAP
|
||||||
|
}
|
||||||
|
trap cleanup EXIT
|
||||||
|
cat > $CLONEMAP << EOF
|
||||||
|
clonemap:
|
||||||
|
- name: $ZUUL_PROJECT
|
||||||
|
dest: .
|
||||||
|
EOF
|
||||||
|
/usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \
|
||||||
|
git://git.openstack.org $ZUUL_PROJECT
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
./run_tests.sh --python py35 --ansible devel
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
@ -0,0 +1,15 @@
|
|||||||
|
- hosts: all
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=/logs/**
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
@ -0,0 +1,44 @@
|
|||||||
|
- hosts: all
|
||||||
|
name: Autoconverted job legacy-ara-integration-py35-latest-fedora-26 from old job
|
||||||
|
gate-ara-integration-py35-latest-fedora-26
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
CLONEMAP=`mktemp`
|
||||||
|
function cleanup {
|
||||||
|
# In cases where zuul-cloner is aborted during a git
|
||||||
|
# clone operation, git will remove the git work tree in
|
||||||
|
# its cleanup. The work tree in these jobs is the
|
||||||
|
# workspace directory, which means that subsequent
|
||||||
|
# jenkins post-build actions can not run because the
|
||||||
|
# workspace has been removed.
|
||||||
|
# To reduce the likelihood of this having an impact,
|
||||||
|
# recreate the workspace directory if needed
|
||||||
|
mkdir -p $WORKSPACE
|
||||||
|
rm -f $CLONEMAP
|
||||||
|
}
|
||||||
|
trap cleanup EXIT
|
||||||
|
cat > $CLONEMAP << EOF
|
||||||
|
clonemap:
|
||||||
|
- name: $ZUUL_PROJECT
|
||||||
|
dest: .
|
||||||
|
EOF
|
||||||
|
/usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \
|
||||||
|
git://git.openstack.org $ZUUL_PROJECT
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
./run_tests.sh --python py35 --ansible latest
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
15
playbooks/legacy/ara-integration-py35-latest/post.yaml
Normal file
15
playbooks/legacy/ara-integration-py35-latest/post.yaml
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
- hosts: all
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=/logs/**
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
43
playbooks/legacy/ara-integration-py35-latest/run.yaml
Normal file
43
playbooks/legacy/ara-integration-py35-latest/run.yaml
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
- hosts: all
|
||||||
|
name: Autoconverted job legacy-ara-integration-py35-latest from old job gate-ara-integration-py35-latest-ubuntu-xenial
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
CLONEMAP=`mktemp`
|
||||||
|
function cleanup {
|
||||||
|
# In cases where zuul-cloner is aborted during a git
|
||||||
|
# clone operation, git will remove the git work tree in
|
||||||
|
# its cleanup. The work tree in these jobs is the
|
||||||
|
# workspace directory, which means that subsequent
|
||||||
|
# jenkins post-build actions can not run because the
|
||||||
|
# workspace has been removed.
|
||||||
|
# To reduce the likelihood of this having an impact,
|
||||||
|
# recreate the workspace directory if needed
|
||||||
|
mkdir -p $WORKSPACE
|
||||||
|
rm -f $CLONEMAP
|
||||||
|
}
|
||||||
|
trap cleanup EXIT
|
||||||
|
cat > $CLONEMAP << EOF
|
||||||
|
clonemap:
|
||||||
|
- name: $ZUUL_PROJECT
|
||||||
|
dest: .
|
||||||
|
EOF
|
||||||
|
/usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \
|
||||||
|
git://git.openstack.org $ZUUL_PROJECT
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
./run_tests.sh --python py35 --ansible latest
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
21
playbooks/legacy/astara-appliance-buildimage/post.yaml
Normal file
21
playbooks/legacy/astara-appliance-buildimage/post.yaml
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
- hosts: all
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- name: Ensure artifacts directory exists
|
||||||
|
file:
|
||||||
|
path: '{{ zuul.executor.work_root }}/artifacts'
|
||||||
|
state: directory
|
||||||
|
delegate_to: localhost
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.work_root }}/artifacts/images'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=/astara_appliance*.qcow2
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
58
playbooks/legacy/astara-appliance-buildimage/run.yaml
Normal file
58
playbooks/legacy/astara-appliance-buildimage/run.yaml
Normal file
@ -0,0 +1,58 @@
|
|||||||
|
- hosts: all
|
||||||
|
name: Autoconverted job legacy-astara-appliance-buildimage from old job astara-appliance-buildimage-ubuntu-xenial
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
CLONEMAP=`mktemp`
|
||||||
|
function cleanup {
|
||||||
|
# In cases where zuul-cloner is aborted during a git
|
||||||
|
# clone operation, git will remove the git work tree in
|
||||||
|
# its cleanup. The work tree in these jobs is the
|
||||||
|
# workspace directory, which means that subsequent
|
||||||
|
# jenkins post-build actions can not run because the
|
||||||
|
# workspace has been removed.
|
||||||
|
# To reduce the likelihood of this having an impact,
|
||||||
|
# recreate the workspace directory if needed
|
||||||
|
mkdir -p $WORKSPACE
|
||||||
|
rm -f $CLONEMAP
|
||||||
|
}
|
||||||
|
trap cleanup EXIT
|
||||||
|
cat > $CLONEMAP << EOF
|
||||||
|
clonemap:
|
||||||
|
- name: $ZUUL_PROJECT
|
||||||
|
dest: .
|
||||||
|
EOF
|
||||||
|
/usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \
|
||||||
|
git://git.openstack.org $ZUUL_PROJECT
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install -y qemu kpartx debootstrap
|
||||||
|
sudo -H pip install dib-utils
|
||||||
|
sudo -H pip install diskimage-builder
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
tox -e build_image
|
||||||
|
if [[ "$ZUUL_REFNAME" =~ "stable" ]]; then
|
||||||
|
branch="$(echo $ZUUL_REFNAME | cut -d/ -f2)"
|
||||||
|
branch_tag="_$branch"
|
||||||
|
else
|
||||||
|
branch_tag=""
|
||||||
|
fi
|
||||||
|
mv build/astara_appliance*.qcow2 $WORKSPACE/astara_appliance$branch_tag.qcow2
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
26
playbooks/legacy/bandit-integration-barbican/run.yaml
Normal file
26
playbooks/legacy/bandit-integration-barbican/run.yaml
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
- hosts: all
|
||||||
|
name: Autoconverted job legacy-bandit-integration-barbican from old job gate-bandit-integration-barbican
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -u
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
cd $WORKSPACE
|
||||||
|
|
||||||
|
/usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \
|
||||||
|
git://git.openstack.org \
|
||||||
|
openstack/bandit \
|
||||||
|
openstack/barbican
|
||||||
|
|
||||||
|
cd $WORKSPACE/openstack/bandit
|
||||||
|
|
||||||
|
tox -e integration openstack barbican \
|
||||||
|
$WORKSPACE/openstack/barbican
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
26
playbooks/legacy/bandit-integration-glance/run.yaml
Normal file
26
playbooks/legacy/bandit-integration-glance/run.yaml
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
- hosts: all
|
||||||
|
name: Autoconverted job legacy-bandit-integration-glance from old job gate-bandit-integration-glance
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -u
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
cd $WORKSPACE
|
||||||
|
|
||||||
|
/usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \
|
||||||
|
git://git.openstack.org \
|
||||||
|
openstack/bandit \
|
||||||
|
openstack/glance
|
||||||
|
|
||||||
|
cd $WORKSPACE/openstack/bandit
|
||||||
|
|
||||||
|
tox -e integration openstack glance \
|
||||||
|
$WORKSPACE/openstack/glance
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
26
playbooks/legacy/bandit-integration-glance_store/run.yaml
Normal file
26
playbooks/legacy/bandit-integration-glance_store/run.yaml
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
- hosts: all
|
||||||
|
name: Autoconverted job legacy-bandit-integration-glance_store from old job gate-bandit-integration-glance_store
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -u
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
cd $WORKSPACE
|
||||||
|
|
||||||
|
/usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \
|
||||||
|
git://git.openstack.org \
|
||||||
|
openstack/bandit \
|
||||||
|
openstack/glance_store
|
||||||
|
|
||||||
|
cd $WORKSPACE/openstack/bandit
|
||||||
|
|
||||||
|
tox -e integration openstack glance_store \
|
||||||
|
$WORKSPACE/openstack/glance_store
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
26
playbooks/legacy/bandit-integration-keystone/run.yaml
Normal file
26
playbooks/legacy/bandit-integration-keystone/run.yaml
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
- hosts: all
|
||||||
|
name: Autoconverted job legacy-bandit-integration-keystone from old job gate-bandit-integration-keystone
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -u
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
cd $WORKSPACE
|
||||||
|
|
||||||
|
/usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \
|
||||||
|
git://git.openstack.org \
|
||||||
|
openstack/bandit \
|
||||||
|
openstack/keystone
|
||||||
|
|
||||||
|
cd $WORKSPACE/openstack/bandit
|
||||||
|
|
||||||
|
tox -e integration openstack keystone \
|
||||||
|
$WORKSPACE/openstack/keystone
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
@ -0,0 +1,27 @@
|
|||||||
|
- hosts: all
|
||||||
|
name: Autoconverted job legacy-bandit-integration-keystonemiddleware from old job
|
||||||
|
gate-bandit-integration-keystonemiddleware
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -u
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
cd $WORKSPACE
|
||||||
|
|
||||||
|
/usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \
|
||||||
|
git://git.openstack.org \
|
||||||
|
openstack/bandit \
|
||||||
|
openstack/keystonemiddleware
|
||||||
|
|
||||||
|
cd $WORKSPACE/openstack/bandit
|
||||||
|
|
||||||
|
tox -e integration openstack keystonemiddleware \
|
||||||
|
$WORKSPACE/openstack/keystonemiddleware
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
26
playbooks/legacy/bandit-integration-magnum/run.yaml
Normal file
26
playbooks/legacy/bandit-integration-magnum/run.yaml
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
- hosts: all
|
||||||
|
name: Autoconverted job legacy-bandit-integration-magnum from old job gate-bandit-integration-magnum
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -u
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
cd $WORKSPACE
|
||||||
|
|
||||||
|
/usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \
|
||||||
|
git://git.openstack.org \
|
||||||
|
openstack/bandit \
|
||||||
|
openstack/magnum
|
||||||
|
|
||||||
|
cd $WORKSPACE/openstack/bandit
|
||||||
|
|
||||||
|
tox -e integration openstack magnum \
|
||||||
|
$WORKSPACE/openstack/magnum
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
26
playbooks/legacy/bandit-integration-oslo.config/run.yaml
Normal file
26
playbooks/legacy/bandit-integration-oslo.config/run.yaml
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
- hosts: all
|
||||||
|
name: Autoconverted job legacy-bandit-integration-oslo.config from old job gate-bandit-integration-oslo.config
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -u
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
cd $WORKSPACE
|
||||||
|
|
||||||
|
/usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \
|
||||||
|
git://git.openstack.org \
|
||||||
|
openstack/bandit \
|
||||||
|
openstack/oslo.config
|
||||||
|
|
||||||
|
cd $WORKSPACE/openstack/bandit
|
||||||
|
|
||||||
|
tox -e integration openstack oslo.config \
|
||||||
|
$WORKSPACE/openstack/oslo.config
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
26
playbooks/legacy/bandit-integration-oslo.log/run.yaml
Normal file
26
playbooks/legacy/bandit-integration-oslo.log/run.yaml
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
- hosts: all
|
||||||
|
name: Autoconverted job legacy-bandit-integration-oslo.log from old job gate-bandit-integration-oslo.log
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -u
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
cd $WORKSPACE
|
||||||
|
|
||||||
|
/usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \
|
||||||
|
git://git.openstack.org \
|
||||||
|
openstack/bandit \
|
||||||
|
openstack/oslo.log
|
||||||
|
|
||||||
|
cd $WORKSPACE/openstack/bandit
|
||||||
|
|
||||||
|
tox -e integration openstack oslo.log \
|
||||||
|
$WORKSPACE/openstack/oslo.log
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
26
playbooks/legacy/bandit-integration-oslo.service/run.yaml
Normal file
26
playbooks/legacy/bandit-integration-oslo.service/run.yaml
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
- hosts: all
|
||||||
|
name: Autoconverted job legacy-bandit-integration-oslo.service from old job gate-bandit-integration-oslo.service
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -u
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
cd $WORKSPACE
|
||||||
|
|
||||||
|
/usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \
|
||||||
|
git://git.openstack.org \
|
||||||
|
openstack/bandit \
|
||||||
|
openstack/oslo.service
|
||||||
|
|
||||||
|
cd $WORKSPACE/openstack/bandit
|
||||||
|
|
||||||
|
tox -e integration openstack oslo.service \
|
||||||
|
$WORKSPACE/openstack/oslo.service
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
26
playbooks/legacy/bandit-integration-oslo.utils/run.yaml
Normal file
26
playbooks/legacy/bandit-integration-oslo.utils/run.yaml
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
- hosts: all
|
||||||
|
name: Autoconverted job legacy-bandit-integration-oslo.utils from old job gate-bandit-integration-oslo.utils
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -u
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
cd $WORKSPACE
|
||||||
|
|
||||||
|
/usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \
|
||||||
|
git://git.openstack.org \
|
||||||
|
openstack/bandit \
|
||||||
|
openstack/oslo.utils
|
||||||
|
|
||||||
|
cd $WORKSPACE/openstack/bandit
|
||||||
|
|
||||||
|
tox -e integration openstack oslo.utils \
|
||||||
|
$WORKSPACE/openstack/oslo.utils
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
26
playbooks/legacy/bandit-integration-oslo.vmware/run.yaml
Normal file
26
playbooks/legacy/bandit-integration-oslo.vmware/run.yaml
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
- hosts: all
|
||||||
|
name: Autoconverted job legacy-bandit-integration-oslo.vmware from old job gate-bandit-integration-oslo.vmware
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -u
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
cd $WORKSPACE
|
||||||
|
|
||||||
|
/usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \
|
||||||
|
git://git.openstack.org \
|
||||||
|
openstack/bandit \
|
||||||
|
openstack/oslo.vmware
|
||||||
|
|
||||||
|
cd $WORKSPACE/openstack/bandit
|
||||||
|
|
||||||
|
tox -e integration openstack oslo.vmware \
|
||||||
|
$WORKSPACE/openstack/oslo.vmware
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
@ -0,0 +1,27 @@
|
|||||||
|
- hosts: all
|
||||||
|
name: Autoconverted job legacy-bandit-integration-python-keystoneclient from old
|
||||||
|
job gate-bandit-integration-python-keystoneclient
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -u
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
cd $WORKSPACE
|
||||||
|
|
||||||
|
/usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \
|
||||||
|
git://git.openstack.org \
|
||||||
|
openstack/bandit \
|
||||||
|
openstack/python-keystoneclient
|
||||||
|
|
||||||
|
cd $WORKSPACE/openstack/bandit
|
||||||
|
|
||||||
|
tox -e integration openstack python-keystoneclient \
|
||||||
|
$WORKSPACE/openstack/python-keystoneclient
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
@ -0,0 +1,27 @@
|
|||||||
|
- hosts: all
|
||||||
|
name: Autoconverted job legacy-bandit-integration-python-magnumclient from old job
|
||||||
|
gate-bandit-integration-python-magnumclient
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -u
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
cd $WORKSPACE
|
||||||
|
|
||||||
|
/usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \
|
||||||
|
git://git.openstack.org \
|
||||||
|
openstack/bandit \
|
||||||
|
openstack/python-magnumclient
|
||||||
|
|
||||||
|
cd $WORKSPACE/openstack/bandit
|
||||||
|
|
||||||
|
tox -e integration openstack python-magnumclient \
|
||||||
|
$WORKSPACE/openstack/python-magnumclient
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
26
playbooks/legacy/bandit-integration-sahara/run.yaml
Normal file
26
playbooks/legacy/bandit-integration-sahara/run.yaml
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
- hosts: all
|
||||||
|
name: Autoconverted job legacy-bandit-integration-sahara from old job gate-bandit-integration-sahara
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: /usr/local/jenkins/slave_scripts/install-distro-packages.sh
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -u
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
cd $WORKSPACE
|
||||||
|
|
||||||
|
/usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \
|
||||||
|
git://git.openstack.org \
|
||||||
|
openstack/bandit \
|
||||||
|
openstack/sahara
|
||||||
|
|
||||||
|
cd $WORKSPACE/openstack/bandit
|
||||||
|
|
||||||
|
tox -e integration openstack sahara \
|
||||||
|
$WORKSPACE/openstack/sahara
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
@ -0,0 +1,15 @@
|
|||||||
|
- hosts: all
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=/logs/**
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
58
playbooks/legacy/barbican-dogtag-devstack-fedora-26/run.yaml
Normal file
58
playbooks/legacy/barbican-dogtag-devstack-fedora-26/run.yaml
Normal file
@ -0,0 +1,58 @@
|
|||||||
|
- hosts: all
|
||||||
|
name: Autoconverted job legacy-barbican-dogtag-devstack-fedora-26 from old job gate-barbican-dogtag-devstack-fedora-26-nv
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
cat > clonemap.yaml << EOF
|
||||||
|
clonemap:
|
||||||
|
- name: openstack-infra/devstack-gate
|
||||||
|
dest: devstack-gate
|
||||||
|
EOF
|
||||||
|
/usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \
|
||||||
|
git://git.openstack.org \
|
||||||
|
openstack-infra/devstack-gate
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
export PYTHONUNBUFFERED=true
|
||||||
|
export ENABLED_SERVICES='barbican-dogtag,tempest,keystone'
|
||||||
|
export PROJECTS="openstack/barbican $PROJECTS"
|
||||||
|
export PROJECTS="openstack/python-barbicanclient $PROJECTS"
|
||||||
|
export PROJECTS="openstack/barbican-tempest-plugin $PROJECTS"
|
||||||
|
export DEVSTACK_LOCAL_CONFIG="enable_plugin barbican git://git.openstack.org/openstack/barbican"
|
||||||
|
if [ "" == "-py35" ] ; then
|
||||||
|
export DEVSTACK_GATE_USE_PYTHON3=True
|
||||||
|
export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-account"
|
||||||
|
export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-container"
|
||||||
|
export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-object"
|
||||||
|
export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-proxy"
|
||||||
|
else
|
||||||
|
export DEVSTACK_GATE_USE_PYTHON3=False
|
||||||
|
fi
|
||||||
|
|
||||||
|
function gate_hook {
|
||||||
|
$BASE/new/barbican/devstack/gate_hook.sh
|
||||||
|
}
|
||||||
|
export -f gate_hook
|
||||||
|
|
||||||
|
function post_test_hook {
|
||||||
|
cd /opt/stack/new/barbican/functionaltests
|
||||||
|
./post_test_hook.sh 'dogtag'
|
||||||
|
}
|
||||||
|
export -f post_test_hook
|
||||||
|
|
||||||
|
if [ "" == "-postgres" ] ; then
|
||||||
|
export DEVSTACK_GATE_POSTGRES=1
|
||||||
|
fi
|
||||||
|
|
||||||
|
cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
|
||||||
|
./safe-devstack-vm-gate-wrap.sh
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
@ -0,0 +1,15 @@
|
|||||||
|
- hosts: all
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=/logs/**
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
@ -0,0 +1,67 @@
|
|||||||
|
- hosts: all
|
||||||
|
name: Autoconverted job legacy-barbican-dogtag-dsvm-functional-fedora-26 from old
|
||||||
|
job gate-barbican-dogtag-dsvm-functional-fedora-26
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
cat > clonemap.yaml << EOF
|
||||||
|
clonemap:
|
||||||
|
- name: openstack-infra/devstack-gate
|
||||||
|
dest: devstack-gate
|
||||||
|
EOF
|
||||||
|
/usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \
|
||||||
|
git://git.openstack.org \
|
||||||
|
openstack-infra/devstack-gate
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
cat << 'EOF' >>"/tmp/dg-local.conf"
|
||||||
|
[[local|localrc]]
|
||||||
|
enable_plugin barbican git://git.openstack.org/openstack/barbican
|
||||||
|
|
||||||
|
EOF
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
export PYTHONUNBUFFERED=true
|
||||||
|
export OVERRIDE_ENABLED_SERVICES='barbican-dogtag,tempest,rabbit,mysql,key'
|
||||||
|
export PROJECTS="openstack/barbican $PROJECTS"
|
||||||
|
export PROJECTS="openstack/python-barbicanclient $PROJECTS"
|
||||||
|
export PROJECTS="openstack/barbican-tempest-plugin $PROJECTS"
|
||||||
|
|
||||||
|
if [ "" == "-py35" ] ; then
|
||||||
|
export DEVSTACK_GATE_USE_PYTHON3=True
|
||||||
|
else
|
||||||
|
export DEVSTACK_GATE_USE_PYTHON3=False
|
||||||
|
fi
|
||||||
|
|
||||||
|
function gate_hook {
|
||||||
|
$BASE/new/barbican/devstack/gate_hook.sh
|
||||||
|
}
|
||||||
|
export -f gate_hook
|
||||||
|
|
||||||
|
function post_test_hook {
|
||||||
|
cd /opt/stack/new/barbican/functionaltests
|
||||||
|
./post_test_hook.sh 'dogtag'
|
||||||
|
}
|
||||||
|
export -f post_test_hook
|
||||||
|
|
||||||
|
if [ "" == "-postgres" ] ; then
|
||||||
|
export DEVSTACK_GATE_POSTGRES=1
|
||||||
|
fi
|
||||||
|
|
||||||
|
cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
|
||||||
|
./safe-devstack-vm-gate-wrap.sh
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
15
playbooks/legacy/barbican-kmip-dsvm-functional/post.yaml
Normal file
15
playbooks/legacy/barbican-kmip-dsvm-functional/post.yaml
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
- hosts: all
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=/logs/**
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
66
playbooks/legacy/barbican-kmip-dsvm-functional/run.yaml
Normal file
66
playbooks/legacy/barbican-kmip-dsvm-functional/run.yaml
Normal file
@ -0,0 +1,66 @@
|
|||||||
|
- hosts: all
|
||||||
|
name: Autoconverted job legacy-barbican-kmip-dsvm-functional from old job gate-barbican-kmip-dsvm-functional-ubuntu-xenial
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
cat > clonemap.yaml << EOF
|
||||||
|
clonemap:
|
||||||
|
- name: openstack-infra/devstack-gate
|
||||||
|
dest: devstack-gate
|
||||||
|
EOF
|
||||||
|
/usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \
|
||||||
|
git://git.openstack.org \
|
||||||
|
openstack-infra/devstack-gate
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
cat << 'EOF' >>"/tmp/dg-local.conf"
|
||||||
|
[[local|localrc]]
|
||||||
|
enable_plugin barbican git://git.openstack.org/openstack/barbican
|
||||||
|
|
||||||
|
EOF
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
export PYTHONUNBUFFERED=true
|
||||||
|
export OVERRIDE_ENABLED_SERVICES='barbican-pykmip,pykmip-server,tempest,rabbit,mysql,key'
|
||||||
|
export PROJECTS="openstack/barbican $PROJECTS"
|
||||||
|
export PROJECTS="openstack/python-barbicanclient $PROJECTS"
|
||||||
|
export PROJECTS="openstack/barbican-tempest-plugin $PROJECTS"
|
||||||
|
|
||||||
|
if [ "" == "-py35" ] ; then
|
||||||
|
export DEVSTACK_GATE_USE_PYTHON3=True
|
||||||
|
else
|
||||||
|
export DEVSTACK_GATE_USE_PYTHON3=False
|
||||||
|
fi
|
||||||
|
|
||||||
|
function gate_hook {
|
||||||
|
$BASE/new/barbican/devstack/gate_hook.sh
|
||||||
|
}
|
||||||
|
export -f gate_hook
|
||||||
|
|
||||||
|
function post_test_hook {
|
||||||
|
cd /opt/stack/new/barbican/functionaltests
|
||||||
|
./post_test_hook.sh 'kmip'
|
||||||
|
}
|
||||||
|
export -f post_test_hook
|
||||||
|
|
||||||
|
if [ "" == "-postgres" ] ; then
|
||||||
|
export DEVSTACK_GATE_POSTGRES=1
|
||||||
|
fi
|
||||||
|
|
||||||
|
cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
|
||||||
|
./safe-devstack-vm-gate-wrap.sh
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
@ -0,0 +1,15 @@
|
|||||||
|
- hosts: all
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=/logs/**
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
@ -0,0 +1,59 @@
|
|||||||
|
- hosts: all
|
||||||
|
name: Autoconverted job legacy-barbican-simple-crypto-devstack-postgres from old
|
||||||
|
job gate-barbican-simple-crypto-devstack-postgres-ubuntu-xenial-nv
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
cat > clonemap.yaml << EOF
|
||||||
|
clonemap:
|
||||||
|
- name: openstack-infra/devstack-gate
|
||||||
|
dest: devstack-gate
|
||||||
|
EOF
|
||||||
|
/usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \
|
||||||
|
git://git.openstack.org \
|
||||||
|
openstack-infra/devstack-gate
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
export PYTHONUNBUFFERED=true
|
||||||
|
export ENABLED_SERVICES='tempest,keystone'
|
||||||
|
export PROJECTS="openstack/barbican $PROJECTS"
|
||||||
|
export PROJECTS="openstack/python-barbicanclient $PROJECTS"
|
||||||
|
export PROJECTS="openstack/barbican-tempest-plugin $PROJECTS"
|
||||||
|
export DEVSTACK_LOCAL_CONFIG="enable_plugin barbican git://git.openstack.org/openstack/barbican"
|
||||||
|
if [ "-postgres" == "-py35" ] ; then
|
||||||
|
export DEVSTACK_GATE_USE_PYTHON3=True
|
||||||
|
export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-account"
|
||||||
|
export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-container"
|
||||||
|
export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-object"
|
||||||
|
export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-proxy"
|
||||||
|
else
|
||||||
|
export DEVSTACK_GATE_USE_PYTHON3=False
|
||||||
|
fi
|
||||||
|
|
||||||
|
function gate_hook {
|
||||||
|
$BASE/new/barbican/devstack/gate_hook.sh
|
||||||
|
}
|
||||||
|
export -f gate_hook
|
||||||
|
|
||||||
|
function post_test_hook {
|
||||||
|
cd /opt/stack/new/barbican/functionaltests
|
||||||
|
./post_test_hook.sh 'simple-crypto'
|
||||||
|
}
|
||||||
|
export -f post_test_hook
|
||||||
|
|
||||||
|
if [ "-postgres" == "-postgres" ] ; then
|
||||||
|
export DEVSTACK_GATE_POSTGRES=1
|
||||||
|
fi
|
||||||
|
|
||||||
|
cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
|
||||||
|
./safe-devstack-vm-gate-wrap.sh
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
15
playbooks/legacy/barbican-simple-crypto-devstack/post.yaml
Normal file
15
playbooks/legacy/barbican-simple-crypto-devstack/post.yaml
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
- hosts: all
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=/logs/**
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
58
playbooks/legacy/barbican-simple-crypto-devstack/run.yaml
Normal file
58
playbooks/legacy/barbican-simple-crypto-devstack/run.yaml
Normal file
@ -0,0 +1,58 @@
|
|||||||
|
- hosts: all
|
||||||
|
name: Autoconverted job legacy-barbican-simple-crypto-devstack from old job gate-barbican-simple-crypto-devstack-ubuntu-xenial
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
cat > clonemap.yaml << EOF
|
||||||
|
clonemap:
|
||||||
|
- name: openstack-infra/devstack-gate
|
||||||
|
dest: devstack-gate
|
||||||
|
EOF
|
||||||
|
/usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \
|
||||||
|
git://git.openstack.org \
|
||||||
|
openstack-infra/devstack-gate
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
export PYTHONUNBUFFERED=true
|
||||||
|
export ENABLED_SERVICES='tempest,keystone'
|
||||||
|
export PROJECTS="openstack/barbican $PROJECTS"
|
||||||
|
export PROJECTS="openstack/python-barbicanclient $PROJECTS"
|
||||||
|
export PROJECTS="openstack/barbican-tempest-plugin $PROJECTS"
|
||||||
|
export DEVSTACK_LOCAL_CONFIG="enable_plugin barbican git://git.openstack.org/openstack/barbican"
|
||||||
|
if [ "" == "-py35" ] ; then
|
||||||
|
export DEVSTACK_GATE_USE_PYTHON3=True
|
||||||
|
export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-account"
|
||||||
|
export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-container"
|
||||||
|
export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-object"
|
||||||
|
export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-proxy"
|
||||||
|
else
|
||||||
|
export DEVSTACK_GATE_USE_PYTHON3=False
|
||||||
|
fi
|
||||||
|
|
||||||
|
function gate_hook {
|
||||||
|
$BASE/new/barbican/devstack/gate_hook.sh
|
||||||
|
}
|
||||||
|
export -f gate_hook
|
||||||
|
|
||||||
|
function post_test_hook {
|
||||||
|
cd /opt/stack/new/barbican/functionaltests
|
||||||
|
./post_test_hook.sh 'simple-crypto'
|
||||||
|
}
|
||||||
|
export -f post_test_hook
|
||||||
|
|
||||||
|
if [ "" == "-postgres" ] ; then
|
||||||
|
export DEVSTACK_GATE_POSTGRES=1
|
||||||
|
fi
|
||||||
|
|
||||||
|
cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
|
||||||
|
./safe-devstack-vm-gate-wrap.sh
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
@ -0,0 +1,15 @@
|
|||||||
|
- hosts: all
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=/logs/**
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
@ -0,0 +1,67 @@
|
|||||||
|
- hosts: all
|
||||||
|
name: Autoconverted job legacy-barbican-simple-crypto-dsvm-functional-postgres from
|
||||||
|
old job gate-barbican-simple-crypto-dsvm-functional-postgres-ubuntu-xenial-nv
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
cat > clonemap.yaml << EOF
|
||||||
|
clonemap:
|
||||||
|
- name: openstack-infra/devstack-gate
|
||||||
|
dest: devstack-gate
|
||||||
|
EOF
|
||||||
|
/usr/zuul-env/bin/zuul-cloner -m clonemap.yaml --cache-dir /opt/git \
|
||||||
|
git://git.openstack.org \
|
||||||
|
openstack-infra/devstack-gate
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
cat << 'EOF' >>"/tmp/dg-local.conf"
|
||||||
|
[[local|localrc]]
|
||||||
|
enable_plugin barbican git://git.openstack.org/openstack/barbican
|
||||||
|
|
||||||
|
EOF
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
cmd: |
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
export PYTHONUNBUFFERED=true
|
||||||
|
export OVERRIDE_ENABLED_SERVICES='tempest,rabbit,mysql,key'
|
||||||
|
export PROJECTS="openstack/barbican $PROJECTS"
|
||||||
|
export PROJECTS="openstack/python-barbicanclient $PROJECTS"
|
||||||
|
export PROJECTS="openstack/barbican-tempest-plugin $PROJECTS"
|
||||||
|
|
||||||
|
if [ "-postgres" == "-py35" ] ; then
|
||||||
|
export DEVSTACK_GATE_USE_PYTHON3=True
|
||||||
|
else
|
||||||
|
export DEVSTACK_GATE_USE_PYTHON3=False
|
||||||
|
fi
|
||||||
|
|
||||||
|
function gate_hook {
|
||||||
|
$BASE/new/barbican/devstack/gate_hook.sh
|
||||||
|
}
|
||||||
|
export -f gate_hook
|
||||||
|
|
||||||
|
function post_test_hook {
|
||||||
|
cd /opt/stack/new/barbican/functionaltests
|
||||||
|
./post_test_hook.sh 'simple-crypto'
|
||||||
|
}
|
||||||
|
export -f post_test_hook
|
||||||
|
|
||||||
|
if [ "-postgres" == "-postgres" ] ; then
|
||||||
|
export DEVSTACK_GATE_POSTGRES=1
|
||||||
|
fi
|
||||||
|
|
||||||
|
cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
|
||||||
|
./safe-devstack-vm-gate-wrap.sh
|
||||||
|
executable: /bin/bash
|
||||||
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
@ -0,0 +1,15 @@
|
|||||||
|
- hosts: all
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
||||||
|
synchronize:
|
||||||
|
src: '{{ ansible_user_dir }}/'
|
||||||
|
dest: '{{ zuul.executor.log_root }}'
|
||||||
|
mode: pull
|
||||||
|
copy_links: true
|
||||||
|
verify_host: true
|
||||||
|
rsync_opts:
|
||||||
|
- --include=/logs/**
|
||||||
|
- --include=*/
|
||||||
|
- --exclude=*
|
||||||
|
- --prune-empty-dirs
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user