2
我的CI服務器配置較低。Jenkins構建失敗,Gradle構建守護進程意外消失
如果我使用gradle這個守護建設項目,它拋出一個錯誤:
* What went wrong:
Gradle build daemon disappeared unexpectedly (it may have been killed or may have crashed)
然後,如果我使用gradle這個-2.14.1是默認關閉gradle這個守護進程,我的任務「發佈」是BUILD SUCCESS,但它會追加其他任務來關閉構建失敗的守護進程。
The message received from the daemon indicates that the daemon has disappeared
FAILURE: Build failed with an exception.
* What went wrong:
Gradle build daemon disappeared unexpectedly (it may have been killed or may have crashed)
當然,如果我在我的macbookpro上運行gradle,一切都可以。
我找到了解決問題的其他方法,運行gradle --stop
,然後運行gradle <task>
。但它只是簡單的工作。
那麼,如何解決這個問題呢?
守護程序不適用於CI服務器上使用。當你使用它時有一個警告。 –