Fix docs-rtd curly brace escape 98/50698/1
authorThanh Ha <thanh.ha@linuxfoundation.org>
Fri, 20 Jan 2017 03:28:50 +0000 (22:28 -0500)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Fri, 20 Jan 2017 03:28:53 +0000 (22:28 -0500)
Didn't realize in the previous patch
I0ed5176a3216b6a115bd2bae527df4bb5b1d2c45 that we needed to escape curly
braces but keep {rtdproject} as it's a JJB variable we're passing in.

Change-Id: I7357262e12219c642f29d507087e5ea1a45496a6
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
jjb/docs/docs-post-rtd.sh
jjb/docs/docs-rtd.yaml

index 3725377de14dc039f380afa649debf030bf5c531..7faa26f38bfed138bd457c3ce2e67c1b260f143d 100644 (file)
@@ -2,6 +2,6 @@
 if [ $GERRIT_BRANCH == "master" ]; then
     RTD_BUILD_VERSION=latest
 else
-    RTD_BUILD_VERSION=${GERRIT_BRANCH/\//-}
+    RTD_BUILD_VERSION=${{GERRIT_BRANCH/\//-}}
 fi
 curl -X POST --data "version_slug=$RTD_BUILD_VERSION" https://readthedocs.org/build/{rtdproject}
index e35f8aec826604f646d87ead69ab820e642faf74..4ee3c238dbb05c3a675f3e82196393369c1197a3 100644 (file)
@@ -55,7 +55,7 @@
                       pattern: docs/**/*.rst
 
     builders:
-        - shell: !include-raw-escape: docs-post-rtd.sh
+        - shell: !include-raw: docs-post-rtd.sh
 
     publishers:
         - email-notification: