Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Adding default global function for DSL like
Jim Van Fleet committed May 3, 2017
1 parent ab602bf commit b7f1dc2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions 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}."
}

0 comments on commit b7f1dc2

Please sign in to comment.