# Move RPMs (SRPM and noarch) to dir of files that will be uploaded to Nexus
UPLOAD_FILES_PATH="$WORKSPACE/upload_files"
mkdir -p "$UPLOAD_FILES_PATH"
- mv "/home/$USER/rpmbuild/RPMS/noarch/"*.rpm "$_"
- mv "/home/$USER/rpmbuild/SRPMS/"*.rpm "$_"
+ cp "/home/$USER/rpmbuild/RPMS/noarch/"*.rpm "$_"
+ cp "/home/$USER/rpmbuild/SRPMS/"*.rpm "$_"
else
echo "Unknown Jenkins silo: $SILO"
exit 1