Move rpm to roof for archiving only file without folder

This commit is contained in:
Gamerboy59 2024-09-13 01:29:45 +02:00 committed by GitHub
commit 244858590a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

5
.build/Jenkinsfile vendored
View file

@ -132,10 +132,13 @@ pipeline {
# Build the RPM package # Build the RPM package
rpmbuild --define "_topdir ${WORKSPACE}/rpmbuild" --define "_version ${BUILD_VERSION}" -bb rpmbuild/SPECS/${BINARY_NAME}.spec rpmbuild --define "_topdir ${WORKSPACE}/rpmbuild" --define "_version ${BUILD_VERSION}" -bb rpmbuild/SPECS/${BINARY_NAME}.spec
# Move RPM to root for archiving
mv rpmbuild/RPMS/x86_64/${BINARY_NAME}-${BUILD_VERSION}-1.el9.x86_64.rpm .
""" """
// Archive the RPM package // Archive the RPM package
archiveArtifacts artifacts: "rpmbuild/RPMS/x86_64/${BINARY_NAME}-${BUILD_VERSION}-1.el9.x86_64.rpm", allowEmptyArchive: false, fingerprint: true archiveArtifacts artifacts: "${BINARY_NAME}-${BUILD_VERSION}-1.el9.x86_64.rpm", allowEmptyArchive: false, fingerprint: true
} }
} }
} }