zoukankan      html  css  js  c++  java
  • Travis CI eval ./gradlew assemble 错误

    问题

    在进行 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.yml 文件中有没有 gradlew 有没有 Gradle 的脚本。

    你需要在 script 中配置脚本。

  • 相关阅读:
    委托
    队列和栈、泛型
    Java去除字符串中 除数字和逗号以外的符号
    SQL查询重复记录
    使用EasyExcel导出图片及异常处理
    Nacos开机自启
    Redis开机自启
    Nginx开机自启
    Java 向数组中添加元素
    Java:如何打印整个字符串数组?
  • 原文地址:https://www.cnblogs.com/huyuchengus/p/11182933.html
Copyright © 2011-2022 走看看