Allow publishing of RC builds
Change-Id: I5be1e7ee685cbf9f47c2491431c3899c55243eb2
(cherry picked from commit 02e231852aecaddcc02016d3de4b15b2f564fd13)
diff --git a/tools/build/onos-upload-bits b/tools/build/onos-upload-bits
index 98fd23c..4edd38b 100755
--- a/tools/build/onos-upload-bits
+++ b/tools/build/onos-upload-bits
@@ -32,8 +32,8 @@
# onosUploadBits.py ${ONOS_VERSION%-*}
# use this to upload to maven central
-if echo $ONOS_VERSION | grep '-'; then
- echo "ONOS version $ONOS_VERSION is a beta or RC. Skipping publishing .tar.gz files"
+if echo $ONOS_VERSION | grep '-b'; then
+ echo "ONOS version $ONOS_VERSION is a beta. Skipping publishing .tar.gz files"
exit 0
fi
UPLOAD_BASE="https://oss.sonatype.org/service/local/staging/deploy/maven2/org/onosproject/onos-releases/$ONOS_VERSION"