Add escapes

Change-Id: Ic6dfdaca2902ec5ef1f253cc8f89c0edb346f6bc
diff --git a/jjb/pipeline/voltha-publish.groovy b/jjb/pipeline/voltha-publish.groovy
index ba3973e..65e251c 100644
--- a/jjb/pipeline/voltha-publish.groovy
+++ b/jjb/pipeline/voltha-publish.groovy
@@ -59,7 +59,7 @@
             fi
 
 	    # Check for SemVer in VERSION (only numbers and dots)
-	    RELEASETAG=`cat voltha/VERSION|tr -d ' '|egrep "^[0-9]+(\.[0-9]+)*$"`
+	    RELEASETAG=`cat voltha/VERSION|tr -d ' '|egrep "^[0-9]+(\\.[0-9]+)*\$"`
             if [ "\$RELEASETAG" != "" ]
             then
               VOLTHA_BUILD=docker TAG=\$TAG TARGET_REPOSITORY=voltha/ TARGET_TAG=\$RELEASETAG make push