0
该脚本在groovy控制台中工作正常。但是,当我做检查的语法在詹金斯相同的脚本,以下错误消息来了 -无法编译Jenkins中的groovy脚本
Script1.groovy: 6: unable to resolve class groovyx.net.http.RESTClient
@ line 6, column 1.
import groovyx.net.http.RESTClient
^
Script1.groovy: 4: unable to resolve class groovyx.net.http.ContentType
@ line 4, column 1.
import groovyx.net.http.ContentType
^
Script1.groovy: 3: unable to resolve class groovyx.net.http.HTTPBuilder
@ line 3, column 1.
import groovyx.net.http.HTTPBuilder....
如何获得这个问题解决了吗?
感谢支持Salem。我能够通过上述解决方案解决问题。 – user6619281