简体   繁体   English

詹金斯无法建立Maven和Gradle项目

[英]Jenkins cannot build maven and gradle projects

I have configured jenkins on kubernetes cluster as a pod with NFS volume mount. 我已经在kubernetes集群上将jenkins配置为具有NFS卷安装的Pod。 when i try to build code, using maven and gradle , i'm getting these error. 当我尝试使用maven和gradle构建代码时,出现这些错误。

Exception in thread "main" java.io.IOException: No locks available
    at sun.nio.ch.FileDispatcherImpl.lock0(Native Method)
    at sun.nio.ch.FileDispatcherImpl.lock(FileDispatcherImpl.java:94)
    at sun.nio.ch.FileChannelImpl.tryLock(FileChannelImpl.java:1114)
    at java.nio.channels.FileChannel.tryLock(FileChannel.java:1155)
    at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:55)
    at org.gradle.wrapper.Install.createDist(Install.java:48)
    at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:107)
    at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)

I fixed the issue. 我解决了这个问题。 I had to update volume claim yaml. 我必须更新音量声明yaml。 accessModes to ReadWriteOnce, previous it was ReadWriteMany. accessModes为ReadWriteOnce,之前为ReadWriteMany。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 生成工具(ant,maven和gradle)中的显着项目? - Noticeable projects in build tools ( ant , maven and gradle )? 使用 Jenkins 构建多个独立的 maven 项目 - Build multiple independent maven projects using Jenkins 如何从Gradle中的兄弟项目构建Maven元项目 - How to build a maven meta project from sibling projects in gradle 詹金斯建立找不到资源,但行家 - Jenkins build cannot find resources but maven does Jenkins maven项目忽略项目“构建”部分中指定的“目标和选项” - Jenkins maven projects ignore “Goals and options” specified in project “Build” section 是否可以在非Java构建项目中使用Jenkins的Maven插件? - Is it possible to use Jenkins' Maven plugin with non-Java build projects? 使用Jenkins构建Maven项目 - Building Maven Projects with Jenkins 如何使用Jenkins将Gradle构建部署到Maven存储库(Nexus)? - How can I deploy a Gradle build to a maven repository (Nexus) with Jenkins? 在Jenkins中使用构建工具(Maven和Gradle)使用Fortify SCA - Using fortify sca in jenkins with build tool (maven and gradle) 如何设置Jenkins从其他具有应用程序依赖关系的maven项目构建maven项目 - How to setup Jenkins to build an maven project from other maven projects with dependencies within the application
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM