Travis CI eval ./gradlew assemble 错误

简介: 问题在进行 Travis CI 进行集成编译的时候出现错误。<-------------> 0% WAITINGThe command "eval ./gradlew assemble " failed.

问题

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

目录
相关文章
|
8月前
|
Java 测试技术 Go
Go测试之.golden 文件
Go测试之.golden 文件
60 0
|
2月前
项目打包报错“caniuse-lite is outdated. Please run next command `npm update`”的解决方案
项目打包报错“caniuse-lite is outdated. Please run next command `npm update`”的解决方案
55 1
|
8月前
|
存储 Linux 测试技术
Travis CI 配置文件 .travis.yml 的语法介绍和一些用法举例
Travis CI 配置文件 .travis.yml 的语法介绍和一些用法举例
108 0
|
10月前
|
Go C++
VS Code安装go 插件报错处理
在命令行中设置如下go 变量,重启vscode 即可
84 0
golang go get 时提示 no Go files in xxx
golang go get 时提示 no Go files in xxx
golang go get 时提示 no Go files in xxx
【解决方案】成功解决ERROR: Could not build wheels for opencv-python, which is required to install pyproject.toml-based projects报错信息
成功解决ERROR: Could not build wheels for opencv-python, which is required to install pyproject.toml-based projects报错信息
【解决方案】成功解决ERROR: Could not build wheels for opencv-python, which is required to install pyproject.toml-based projects报错信息
|
IDE Go 开发工具
让你的Golang项目在IDE里跑起来(Goland使用入门-GOROOT、GOPATH、src、 pkg、bin、import)
让你的Golang项目在IDE里跑起来(Goland使用入门-GOROOT、GOPATH、src、 pkg、bin、import)
让你的Golang项目在IDE里跑起来(Goland使用入门-GOROOT、GOPATH、src、 pkg、bin、import)
|
Docker 容器
GitHub Actions CI/CD Pipeline with Docker
GitHub Actions CI/CD Pipeline with Docker
GitHub Actions CI/CD Pipeline with Docker
|
JSON 缓存 Go
Go-常用命令go的使用(build、env、run、fmt等)
Go-常用命令go的使用(build、env、run、fmt等)
337 0
Go-常用命令go的使用(build、env、run、fmt等)
|
Python
Python 常见问题 - 使用 poetry build 打包构建失败,报 ModuleOrPackageNotFound No file/folder found for package filesystemfastapi
Python 常见问题 - 使用 poetry build 打包构建失败,报 ModuleOrPackageNotFound No file/folder found for package filesystemfastapi
278 0
Python 常见问题 - 使用 poetry build 打包构建失败,报 ModuleOrPackageNotFound No file/folder found for package filesystemfastapi