Travis CI eval ./gradlew assemble 错误

  1. 云栖社区>
  2. 博客>
  3. 正文

Travis CI eval ./gradlew assemble 错误

honeymoose 2019-07-14 01:54:28 浏览144
展开阅读全文

问题

在进行 Travis CI 进行集成编译的时候出现错误。

<-------------> 0% WAITINGThe command "eval ./gradlew assemble " failed. Retrying, 2 of 3.
FAILURE: Build failed with an exception.

  • What went wrong:
    Task 'assemble' not found in root project 'asciidoc-docs'.
  • Try:
    Run gradlew tasks to get a list of available tasks. Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
  • Get more help at https://help.gradle.org
    BUILD FAILED in 0s

<-------------> 0% WAITINGThe command "eval ./gradlew assemble " failed. Retrying, 3 of 3.

具体的错误信息如下:

BUILD FAILED in 8s
<-------------> 0% WAITINGThe command "eval ./gradlew assemble " failed. Retrying, 2 of 3.
FAILURE: Build failed with an exception.

  • What went wrong:
    Task 'assemble' not found in root project 'asciidoc-docs'.
  • Try:
    Run gradlew tasks to get a list of available tasks. Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
  • Get more help at https://help.gradle.org
    BUILD FAILED in 0s

<-------------> 0% WAITINGThe command "eval ./gradlew assemble " failed. Retrying, 3 of 3.
FAILURE: Build failed with an exception.

  • What went wrong:
    Task 'assemble' not found in root project 'asciidoc-docs'.
  • Try:
    Run gradlew tasks to get a list of available tasks. Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
  • Get more help at https://help.gradle.org
    BUILD FAILED in 0s

<-------------> 0% WAITINGThe command "eval ./gradlew assemble " failed 3 times.
The command "./gradlew assemble" failed and exited with 1 during .
Your build has been stopped.

Travis_CI_gradlew_error_01

问题解决

请确定你的 .travis.yml 文件中有没有 gradlew 有没有 Gradle 的脚本。

你需要在 script 中配置脚本。

网友评论

登录后评论
0/500
评论
honeymoose
+ 关注