It appears that Yum is not installing "mock" when installing fedpkg
(with fedpkg-1.28-1.el7). Explicitly install it in our build steps.
PACKAGE=${JOB_NAME%-rpm}
sudo yum -y install epel-release
-sudo yum -y install fedpkg
+sudo yum -y install fedpkg mock
# Add the Jenkins slave UID to the mock group.
sudo usermod -a -G mock $(whoami)
PACKAGE=${JOB_NAME%-rpm}
sudo yum -y install epel-release
-sudo yum -y install fedpkg
+sudo yum -y install fedpkg mock
# Add the Jenkins slave UID to the mock group.
sudo usermod -a -G mock $(whoami)