summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--jenkins-helpers.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/jenkins-helpers.sh b/jenkins-helpers.sh
index ff3f2035..7290eea9 100644
--- a/jenkins-helpers.sh
+++ b/jenkins-helpers.sh
@@ -916,6 +916,8 @@ manifest_out ()
# Process "--var value" and "++arr elem" arguments and define corresponding
# variables and arrays.
# "--var value" defines shell variable "$var" to "value".
+# "__var value" defines shell variable "$var" to "value", but doesn't store
+# it to the manifest. This is useful for passing secrets.
# "++arr elem" defines shell array "$arr[@]" and adds "elem" to it.
# "==arr[key] value" defines shell associative array "$arr[@]" and sets
# "${arr[key]}" to "value".
@@ -950,6 +952,11 @@ declare -g "$name=$2"
EOF
num=2
;;
+ "__"*)
+ name="${1#__}"
+ declare -g "$name=$2"
+ num=2
+ ;;
"++"*)
name="${1#++}"
if ! test_array $name; then