Update prepare-env job with option to install zuul-cloner

This CR add possibility to install zuul on every slave in virtualenv.

Change-Id: I25c9709f73596324ec83d22b23dc8171fb90026f
This commit is contained in:
Artur Zarzycki 2016-12-07 15:55:44 +01:00
parent 0f44208618
commit 9678979c7e
2 changed files with 21 additions and 1 deletions

View File

@ -63,6 +63,19 @@ function download_images {
popd
}
function install_zuul_env {
ACT=1
VIRTUAL_ENV="/home/jenkins/venv-zuul"
virtualenv "${VIRTUAL_ENV}"
source "${VIRTUAL_ENV}"/bin/activate
# Upgrade pip inside virtualenv
pip install pip --upgrade
pip install zuul
}
# DevOps 3.0.x
if [[ ${update_devops_3_0_x} == "true" ]]; then
update_devops "-3.0" "fuel-ccp-tests" "master"
@ -72,6 +85,10 @@ if [[ ${download_images} == "true" ]]; then
download_images
fi
if [[ "${install_zuul}" == "true" ]]; then
install_zuul_env
fi
if [ ${ACT} -eq 0 ]; then
echo "No action selected!"
exit 1

View File

@ -12,10 +12,13 @@
parameters:
- bool:
name: 'update_devops_3_0_x'
default: true
default: false
- bool:
name: 'download_images'
default: false
- bool:
name: 'install_zuul'
default: false
- bool:
name: FORCE_DELETE_DEVOPS
default: false