【问题标题】:"could not open lock file: Permission denied" when branching a project分支项目时“无法打开锁定文件:权限被拒绝”
【发布时间】:2023-04-04 00:21:01
【问题描述】:

我们正在尝试使用 Maven 发布插件自动化我们的构建。我们也在使用 Jenkins 和 CVS。

不幸的是,我们在分支项目时遇到错误:

[INFO] Branching release with the label test_branch_jenkins...
[INFO] Executing: /bin/sh -c cd "/data/jenkins/jenkinshome/workspace/Test release plugin  with test project/our-project-parent" && cvs -z3 -f -q tag -b -F -c test_branch_jenkins
[INFO] Working directory: /data/jenkins/jenkinshome/workspace/Test release plugin  with test project/our-project-parent
[…]
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.0:branch (default-cli) on project our-project-parent: Unable to branch SCM
[ERROR] Provider message:
[ERROR] The cvs branch command failed.
[ERROR] Command output:
[ERROR] cvs [tag aborted]: 
    could not open lock file `/srv/cvsrepo/our-project-parent/our-project-frontend/src/main/resources/META-INF/,MANIFEST.MF,':
        Permission denied

您知道这里可能存在什么问题吗?是 CVS 相关还是文件系统有问题?

【问题讨论】:

    标签: maven jenkins file-permissions cvs maven-release-plugin


    【解决方案1】:

    问题是该文件确实没有授予文件系统的写权限。因此出现错误消息Permission denied

    【讨论】:

      猜你喜欢
      • 2013-01-22
      • 2018-10-01
      • 2011-10-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-08-29
      • 1970-01-01
      相关资源
      最近更新 更多