Jenkins 构建环境与常规环境有何不同?

What is different about the Jenkins Build environment than regular?

我设置了 mac 专业版,每当我 运行 对 Google App Engine java 项目执行 gradle 命令时:

./gradlew run -DmainClassName=MyScript

运行很好。

但是,每当我 运行 在 Jenkins 上执行完全相同的命令时,它都会失败,说某些 google API:

上缺少符号

com.google.appengine.tools.mapreduce.MapSpecification.Builder.build();

发生了什么事?

(gradle 命令正在尝试 运行 远程脚本)

Jenkins 作为 jenkins 用户运行。可能你的用户 path 中有一些你 jenkinspath

中没有的东西