我正在尝试为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似乎有权限问题,或者我的资源是在Windows10上。
下面是我正在构建并运行构建的存储库
发布于 2018-03-08 07:31:07
我也有类似的问题,文件权限是问题所在。在我的案例中,我在docker镜像中创建了一个新用户,而不是使用root用户。并且此新用户没有创建该文件夹的权限。
https://stackoverflow.com/questions/44477342
复制相似问题