Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Auto respond 'yes' for 'grails war' on Hudson

We're using 'grails war' to build a war on hudson then another job to deploy to our test environment.

The problem is that when the 'grails war' encounters a plugin upgrade, it will continuously ask the user to upgrade certain plugins.

Is there a way to respond 'y' on all user input?

I tried --non-interactive but that seems to do nothing.

like image 767
Matthew Boston Avatar asked Dec 17 '22 17:12

Matthew Boston


2 Answers

You may need to put quotes around the run target in the Targets text field:

"war --non-interactive"
like image 160
Dana Avatar answered Dec 29 '22 00:12

Dana


yes | grails war

assuming your on OSX/unix/Linux/cygwin. That answers yes for all questions that the program you pipe it to asks.

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

echo y | grails war
like image 20
Ted Naleid Avatar answered Dec 28 '22 22:12

Ted Naleid