Revert "Do not deploy to Maven on stable branches": broken master build

This reverts commit ba9f1aa9583fcf2bc2efbb93457393fed5013538.

Change-Id: I9b1a1e777c37a335523ed990a6541dfcc66da9f9
diff --git a/jenkins/gerrit-deploy-api.sh b/jenkins/gerrit-deploy-api.sh
index b1eb25f..2af1659 100644
--- a/jenkins/gerrit-deploy-api.sh
+++ b/jenkins/gerrit-deploy-api.sh
@@ -1,11 +1,5 @@
 #!/bin/bash -e
 
-VERSION=$(([ -f VERSION ] && cat VERSION) || ([ -f version.bzl ] && cat version.bzl) | grep VERSION)
-if expr $VERSION : '.*SNAPSHOT.*'
-then
-  exit 0
-fi
-
 if [ -f ~/.m2/settings.xml ]
 then
   if grep -q sonatype-nexus-staging ~/.m2/settings.xml