From b7f1dc262040f476942d84c8f8cc0405fbbd78c8 Mon Sep 17 00:00:00 2001 From: Jim Van Fleet <jim.van.fleet@levvel.io> Date: Wed, 3 May 2017 14:32:57 -0400 Subject: [PATCH] Adding default global function for DSL like --- vars/caution.groovy | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 vars/caution.groovy diff --git a/vars/caution.groovy b/vars/caution.groovy new file mode 100644 index 0000000..97e4fe9 --- /dev/null +++ b/vars/caution.groovy @@ -0,0 +1,5 @@ +def call(String name = 'human') { + // Any valid steps can be called from this code, just like in other + // Scripted Pipeline + echo "Warning, ${name}." +} \ No newline at end of file