Hudson doesn't like grail

I'm trying to get our Hudson CI server to run Grails tasks and install Grails-Plugin, but it looks like ivy dependencies cannot be resolved ...

[projectx] $ /usr/share/grails/bin/grails prod war projectx.war Welcome to Grails 1.2.0 - http://grails.org/ Licensed under Apache Standard License 2.0 Grails home is set to: /usr/share/grails Base Directory: /var/local/hudson/jobs/projectx/workspace/projectx Resolving dependencies... Error executing script War: /usr/share/tomcat5.5/.ivy2/cache/resolved-projectx-projectx-0.1.xml (No such file or directory) java.io.FileNotFoundException: /usr/share/tomcat5.5/.ivy2/cache/resolved-projectx-projectx-0.1.xml (No such file or directory) at java.io.FileOutputStream.open(Native Method) ... 

Does anyone know how to do this?

Thanks a lot!

+4
source share
3 answers

It appears that the user who runs tomcat is configured to have /usr/share/tomcat5.5 as the home directory, and you do not have write permission to this directory (and probably shouldn't)

I would suggest that you need to change the user who runs tomcat, or the user who works in the Hudson Job to have a valid home directory.

+3
source

Run

 grails upgrade 

and he will work later. I tried to delete the .grails folder, and it did not work and found that the update was working randomly.

In Jenkins, you can run it with a non-interactive switch.

Has anyone understood why this is happening?

+1
source

Hudson supports maven-based builds very well, so you can just use the Grails Maven plugin http://www.grails.org/Maven+Integration and specify hudson in the maven pom file and go.

0
source

Source: https://habr.com/ru/post/1299047/


All Articles