github-api-global-lib
github-api-global-lib copied to clipboard
Difference between....?
Is there a technical difference between
sh "curl ...."
and
loadLinuxScript(name: 'script-which-calls-curl')
sh 'script-which-calls-curl'
I know the loadLinuxScript will execute on the worker. Will the inline curl execute on the worker or the master?
loadLinuxScript.groovy also don't have node definition. so when we import loadLinuxScript in jenkins file according to that will pick(preferred is worker in case no executor then it should be from master). So goes to sh "curl