6 # -o pipefail: Fail on errors in scripts this calls, give stacktrace
9 # Install required packages
11 # shellcheck disable=SC1091
12 source rpm_build/bin/activate
13 PYTHON="rpm_build/bin/python"
14 $PYTHON -m pip install --upgrade pip
15 $PYTHON -m pip install -r "$WORKSPACE/packaging/packages/requirements.txt"
17 # Convert stream to numeric ODL major version
18 if [ "$STREAM" == "fluorine" ]; then
20 elif [ "$STREAM" == "neon" ]; then
22 elif [ "$STREAM" == "sodium" ]; then
24 elif [ "$STREAM" == "magnesium" ]; then
26 elif [ "$STREAM" == "aluminium" ]; then
28 elif [ "$STREAM" == "silicon" ]; then
31 echo "Unable to convert stream to major version"
32 echo "MAINTAINER: Update if/else switch above with recent stream/ver pairs"
36 # Build the latest snapshot matching the given major minor version
37 "$WORKSPACE/packaging/packages/build.py" --rpm \
38 --changelog_name "$CHANGELOG_NAME" \
39 --changelog_email "$CHANGELOG_EMAIL" \
41 --major "$VERSION_MAJOR"