Re: How can i call global function defined in Jenkinsfile from inside the external groovy script loaded with 'load' step ?

2017-09-18 Thread Michael Pailloncy
IIC, this is a scope problem. To strictly answer to your question, you could convert the global function into a Closure and then pass it as parameter of *functionB*. I think something like that should work :

How can i call global function defined in Jenkinsfile from inside the external groovy script loaded with 'load' step ?

2017-09-15 Thread ishan jain
Hi, My Jenkinsfile is getting rather large and i want to break it down into different groovy scripts for easy maintenance. Here is a sample code structure. externalScripts = '' pipeline { agent master stages { stage('first') { agent { label 'master' } steps { script