我有以下设置:
- Synology DS1812+ 与 DSM 4.2-3211
- Java 1.6.0_43
- Apache Tomcat/6.0.36(作为 synology 包安装)
- Jenkins 1.529(部署在 Tomcat 上)
- 詹金斯 Grails 插件 1.6.3
我正在尝试创建一个工作来构建我的 Grails 2.2.3 项目。我创建了一个 grails 包装器并将作业配置为使用 grails 包装器运行“干净”目标,以查看是否一切正常。当我运行作业时问题就开始了:
...
[EnvInject] - Injecting environment variables from a build step.
[EnvInject] - Injecting as environment variables the properties content
HOME=/volume1/jenkins/jobs/sampleproject
[EnvInject] - Variables injected successfully.
[workspace] $ /volume1/jenkins/jobs/sampleproject/workspace/grailsw clean --non-interactive
Downloading http://dist.springframework.org.s3.amazonaws.com/release/GRAILS/grails-2.2.3.zip to /home/.grails/wrapper/grails-2.2.3-download.zip
Exception in thread "main" java.io.FileNotFoundException: /home/.grails/wrapper/grails-2.2.3-download.zip (No such file or directory)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:194)
at java.io.FileOutputStream.<init>(FileOutputStream.java:145)
at org.grails.wrapper.RemoteFileHelper.retrieve(RemoteFileHelper.java:49)
at org.grails.wrapper.GrailsWrapper.configureGrailsInstallation(GrailsWrapper.java:135)
at org.grails.wrapper.GrailsWrapper.main(GrailsWrapper.java:58)
Build step 'Build With Grails' marked build as failure
...
由于某种原因,我似乎无法覆盖发生 FileNotFoundException 的 /home/ 目录。看起来(尽管这不是我的专长)另一个进程是通过将 HOME 环境变量设置回“/home”来分叉的。有人可以指出我可以解决这个问题的正确方向吗?