$PYTHON -m pip install --upgrade pip
$PYTHON -m pip install -r "$WORKSPACE/packaging/packages/requirements.txt"
-# Extract stream from job name (format: foo-job-name-<stream>)
-# shellcheck disable=SC1083
-STREAM=${{JOB_NAME##*-}}
-
# Convert stream to numeric ODL major version
-if [ "$STREAM" == "boron" ]; then
- VERSION_MAJOR=5
-elif [ "$STREAM" == "carbon" ]; then
- VERSION_MAJOR=6
-elif [ "$STREAM" == "nitrogen" ]; then
- VERSION_MAJOR=7
-elif [ "$STREAM" == "oxygen" ]; then
+if [ "$STREAM" == "oxygen" ]; then
VERSION_MAJOR=8
+elif [ "$STREAM" == "fluorine" ]; then
+ VERSION_MAJOR=9
else
echo "Unable to convert stream to major version"
exit 1
--changelog_email "$CHANGELOG_EMAIL" \
latest_snap \
--major "$VERSION_MAJOR"
-
-# Publish RPMs to Nexus if in production Jenkins, else host on sandbox Jenkins
-if [ "$SILO" == "sandbox" ]; then
- # TODO: Host RPMs on Jenkins temporarily
- echo "Not uploading RPMs to Nexus because running in sandbox"
-elif [ "$SILO" == "releng" ]; then
- # 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 "$_"
-else
- echo "Unknown Jenkins silo: $SILO"
- exit 1
-fi