我尝试在Jenkins 1.427上打开maven包的自动工具安装程序,并在构建日志中获得以下奖励。这就像是在阅读一些但不是全部的自动安装配置。
Started by user benson
Building remotely on acropolis.basistech.net
FATAL: Null value not allowed as an environment variable: M2_HOME
java.lang.IllegalArgumentException: Null value not allowed as an environment variable: M2_HOME
at hudson.EnvVars.put(EnvVars.java:162)
at hudson.maven.MavenModuleSetBuild.getEnvironment(MavenModuleSetBuild.java:177)
at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:673)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1193)
at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:555)
at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:443)
at hudson.model.Run.run(Run.java:1376)
at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:479)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:230)
答案 0 :(得分:1)
我已经设置了一个maven的tarball,它缺少顶层目录,这让Jenkins感到困惑。