Jenkins calls the method of external groovy script

When using the load(path) method to call an external groovy script, the path using single quotes is to call the relative path under the current WORKSPACE, and the path using double quotes is to directly use the absolute path. E.g:

file=load '/folder1/script1' actually loads ${WORKSPACE}/folder1/script1

file=load "/folder1/script1" actually loads /folder1/script1

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326136919&siteId=291194637