-rm -f $(find /var/www/rpm.arvados.org/CentOS/7/testing -name *-${VERNO}*.rpm)
-createrepo /var/www/rpm.arvados.org/CentOS/7/testing/x86_64
+if [[ -n "$2" ]] ; then
+ PACKAGE="$2"
+fi
+
+rm -f $(find /var/www/rpm.arvados.org/CentOS/7/testing -name "${PACKAGE}-${VERNO}*.rpm")
+sudo -u jenkinsapt createrepo /var/www/rpm.arvados.org/CentOS/7/testing/x86_64