试图设置jenkins但我的构建失败了:
$ant test Error: JAVA_HOME is not defined correctly. We cannot execute /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java Build step 'Invoke Ant' marked build as failure
如果我在机器上手动运行“ant test”,它就可以正常运行并且JAVA_HOME设置为完全相同的值.知道为什么当jenkins试图运行它时失败了吗?是否涉及更多的环境变量(虽然我看不到)?