Auto answer yes to Grail’s war on the Hudson

We use the “Grails War” to build a war with hudson, and then other deployment work in our test environment.

The problem is that when the "rake war" encounters a plugin update, it will constantly ask the user to update some plugins.

Is there any way to answer "y" to all user input?

I tried - not interactively, but it seems to be doing nothing.

+4
source share
2 answers

You may need to put quotation marks around the launch target in the Targets text box:

"war --non-interactive" 
+11
source
 yes | grails war 

assuming you are using OSX / unix / linux / cygwin. This answers “yes” to all the questions asked by the program with which you associate it.

If you want to say yes only once, you can use

 echo y | grails war 
+1
source

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


All Articles