tomcat - Overriding userHome for grails CI with wrapper on Jenkins -
i have following setup:
- synology ds1812+ dsm 4.2-3211
- java 1.6.0_43
- apache tomcat/6.0.36 (installed synology package)
- jenkins 1.529 (deployed on tomcat)
- jenkins grails plugin 1.6.3
on i'm trying create job build grails 2.2.3 project. created grails wrapper , configured job run "clean" target grails wrapper see if working. problem starts when run job:
... [envinject] - injecting environment variables build step. [envinject] - injecting environment variables 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 /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) @ java.io.fileoutputstream.open(native method) @ java.io.fileoutputstream.<init>(fileoutputstream.java:194) @ java.io.fileoutputstream.<init>(fileoutputstream.java:145) @ org.grails.wrapper.remotefilehelper.retrieve(remotefilehelper.java:49) @ org.grails.wrapper.grailswrapper.configuregrailsinstallation(grailswrapper.java:135) @ org.grails.wrapper.grailswrapper.main(grailswrapper.java:58) build step 'build grails' marked build failure ...
for reason can't seem override /home/ directory filenotfoundexception occurs. , looks (although not expertise) process forked home environment variable set '/home'. point me in right direction solve issue?
so seems jenkins running under "nobody" user has it's home directory set "/home". managed fix problem creating "/home" directory manually , making user "nobody" owner.
although i'm still not totally satisfied solution can work
Comments
Post a Comment