请问有人能解释一下Jenkins中execute groovy script和execute system groovy script的区别吗?以及如何使用execute system groovy script调用脚本到从属节点上。
请问有人能解释一下Jenkins中execute groovy script和execute system groovy script的区别吗?以及如何使用execute system groovy script调用脚本到从属节点上。
关于系统Groovy脚本,还有一个需要注意的地方。虽然文档说它总是在Jenkins主节点上运行,但我通过痛苦的方式发现,如果它在由另一个任务触发的作业中,则不是这样。在这种情况下,请确保明确限制其在主节点上运行,否则会发生糟糕的事情。