【问题标题】:concourse gradle java build CIconcourse gradle java构建CI
【发布时间】:2017-06-10 19:36:51
【问题描述】:

我正在尝试为 java / gradle (vertx) 构建创建一个 concourse CI 管道。

在使用 gradle docker 镜像从大厅运行构建或在本地运行(直接使用相同的 docker 镜像)时,我遇到了类似的错误

PS D:\Development\github\vertx-concourse-gradle> docker run --rm -v .:/project -w /project  gradle:3.4-jdk8 gradle build
Starting a Gradle Daemon (subsequent builds will be faster)

FAILURE: Build failed with an exception.

* What went wrong:
Failed to create parent directory '/project/.gradle' when creating directory '/project/.gradle/buildOutputCleanup'

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 2.924 secs

似乎是许可问题或我的来源在 Windows 10 上的事实。

这是我正在构建和运行构建的 repo

https://github.com/gadieichhorn/vertx-concourse-gradle

【问题讨论】:

标签: docker gradle vert.x concourse


【解决方案1】:

我有类似的问题,文件权限是问题。我的情况是,我在 docker 映像中创建了一个新用户,而不是使用 root。并且这个新用户没有创建文件夹的权限。

【讨论】:

    猜你喜欢
    • 2018-08-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-08-24
    • 2020-07-17
    • 1970-01-01
    • 2018-08-13
    相关资源
    最近更新 更多