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

旧城冷巷雨未停 提交于 2019-12-07 09:07:28

问题


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.


回答1:


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

"war --non-interactive"



回答2:


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!