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.
You may need to put quotes around the run target in the Targets text field:
"war --non-interactive"
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
来源:https://stackoverflow.com/questions/4899504/auto-respond-yes-for-grails-war-on-hudson