"could not open lock file: Permission denied" 分支项目时
"could not open lock file: Permission denied" when branching a project
我们正在尝试使用 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 相关还是文件系统问题?
问题确实是这个文件没有被授予文件系统的写权限。因此错误消息 Permission denied
.
我们正在尝试使用 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 相关还是文件系统问题?
问题确实是这个文件没有被授予文件系统的写权限。因此错误消息 Permission denied
.