0

我正在尝试为 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

4

1 回答 1

0

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

于 2018-03-07T23:31:06.820 回答