Merge "Move dlux Sonar scan to Sonarcloud"
[releng/builder.git] / jjb / packaging / setup-ansible-rpm.sh
index eec7cbf037408381a46746d7faef81b3d53af24a..7cac73e582e3be0d47254e92365bee2dcfe28139 100644 (file)
@@ -8,6 +8,7 @@ set -ex -o pipefail
 
 # Install required packages
 virtualenv rpm_build
+# shellcheck disable=SC1091
 source rpm_build/bin/activate
 PYTHON="rpm_build/bin/python"
 $PYTHON -m pip install --upgrade pip
@@ -20,4 +21,4 @@ sudo yum install -y ansible
 # expects the dir containing the role to have the name of role. The JJB project
 # is called "ansible", which causes the cloned repo name to not match the role
 # name "opendaylight". So we need a cp/mv either way and this is simplest.
-sudo cp -R $WORKSPACE/ansible /etc/ansible/roles/opendaylight
+sudo cp -R "$WORKSPACE"/packaging-ansible /etc/ansible/roles/opendaylight