X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=jjb%2Fpackaging%2Fbuild-rpm-snap.sh;h=86f126ccae1789be30757d79d1bfff83deabecb6;hb=b977cc4bd29fd58c1371d45fcfc6c6b14fc472d4;hp=7076350381c4057f3a25b5b6b4cc6c462342bb60;hpb=6181ae15d4dc986b88a03d1d39fce38f3101bc7a;p=releng%2Fbuilder.git diff --git a/jjb/packaging/build-rpm-snap.sh b/jjb/packaging/build-rpm-snap.sh index 707635038..86f126cca 100644 --- a/jjb/packaging/build-rpm-snap.sh +++ b/jjb/packaging/build-rpm-snap.sh @@ -15,14 +15,21 @@ $PYTHON -m pip install --upgrade pip $PYTHON -m pip install -r "$WORKSPACE/packaging/packages/requirements.txt" # Convert stream to numeric ODL major version -if [ "$STREAM" == "oxygen" ]; then - VERSION_MAJOR=8 -elif [ "$STREAM" == "fluorine" ]; then +if [ "$STREAM" == "fluorine" ]; then VERSION_MAJOR=9 elif [ "$STREAM" == "neon" ]; then VERSION_MAJOR=10 +elif [ "$STREAM" == "sodium" ]; then + VERSION_MAJOR=11 +elif [ "$STREAM" == "magnesium" ]; then + VERSION_MAJOR=12 +elif [ "$STREAM" == "aluminium" ]; then + VERSION_MAJOR=13 +elif [ "$STREAM" == "silicon" ]; then + VERSION_MAJOR=14 else echo "Unable to convert stream to major version" + echo "MAINTAINER: Update if/else switch above with recent stream/ver pairs" exit 1 fi