6 # -o pipefail: Fail on errors in scripts this calls, give stacktrace
9 # Install required packages
11 # shellcheck disable=SC1091
12 source rpm_build/bin/activate
13 PYTHON="rpm_build/bin/python"
14 $PYTHON -m pip install --upgrade pip
17 sudo yum install -y ansible
19 # Install local version of ansible-opendaylight to path expected by Ansible.
20 # Could almost do this by setting ANSIBLE_ROLES_PATH=$WORKSPACE, but Ansible
21 # expects the dir containing the role to have the name of role. The JJB project
22 # is called "ansible", which causes the cloned repo name to not match the role
23 # name "opendaylight". So we need a cp/mv either way and this is simplest.
24 sudo cp -R "$WORKSPACE"/packaging-ansible /etc/ansible/roles/opendaylight