Permalink
Switch branches/tags
Nothing to show
Find file Copy path
d4abfbe Apr 1, 2016
1 contributor

Users who have contributed to this file

13 lines (10 sloc) 467 Bytes
node {
// Load the file 'externalMethod.groovy' from the current directory, into a variable called "externalMethod".
def externalMethod = load("externalMethod.groovy")
// Call the method we defined in externalMethod.
externalMethod.lookAtThis("Steve")
// Now load 'externalCall.groovy'.
def externalCall = load("externalCall.groovy")
// We can just run it with "externalCall(...)" since it has a call method.
externalCall("Steve")
}