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 中配置脚本。

  • 相关阅读:
    软工实践寒假作业(2/2)
    软工实践寒假作业(1/2)
    个人作业——软件工程实践总结&个人技术博客
    个人技术总结——postman的接口请求
    个人作业——软件评测
    结对第二次作业——某次疫情统计可视化的实现
    结对第一次—疫情统计可视化(原型设计)
    软工实践寒假作业(2/2)
    软工实践寒假作业(1/2)
    个人作业——软件工程实践总结&个人技术博客
  • 原文地址:https://www.cnblogs.com/huyuchengus/p/11182933.html
Copyright © 2011-2022 走看看