$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##*-}}
+# If STREAM not passed, extract from job name (format: foo-job-name-<stream>)
+if [ -z "$STREAM" ]; then
+ # shellcheck disable=SC1083
+ STREAM=${{JOB_NAME##*-}}
+fi
# Convert stream to numeric ODL major version
-if [ "$STREAM" == "boron" ]; then
- VERSION_MAJOR=5
-elif [ "$STREAM" == "carbon" ]; then
+if [ "$STREAM" == "carbon" ]; then
VERSION_MAJOR=6
elif [ "$STREAM" == "nitrogen" ]; then
VERSION_MAJOR=7