Merge "Enable EPEL for openstack-ansible CentOS bindeps packages"

This commit is contained in:
Jenkins 2017-05-05 18:18:50 +00:00 committed by Gerrit Code Review
commit 7c45b56b20
1 changed files with 14 additions and 0 deletions

View File

@ -63,7 +63,21 @@
- print-template-name:
template-name: "{template-name}"
- openstack-ansible-tests-checkout
- shell: |
if [[ "{name}" == *"openstack-ansible"* ]]; then
# EPEL must be enabled because some deps from bindep.txt are
# otherwise not available
if [[ -e /usr/bin/yum ]]; then
sudo yum-config-manager --enable epel
fi
fi
- install-distro-packages
- shell: |
if [[ "{name}" == *"openstack-ansible"* ]]; then
if [[ -e /usr/bin/yum ]]; then
sudo yum-config-manager --disable epel
fi
fi
- shell: |
# Allow Jenkins user to ssh into localhost
ssh-keygen -f ~/.ssh/id_rsa -N ""