English 中文(简体)
• 承诺挖掘生根,禁止
原标题:Can t execute commit to svn as root folder is forbidden

Im试图执行员额建设svn commitments的指令。

I have access to http://myrepo.com/myProject ... but I haven t to http://myrepo.com/ (the access is forbidden). As a result, when I commit I m getting the following error:

svn commit --message "Build #xx" myfile --non-interactive

svn: Commit failed (details follow):

svn: OPTIONS of  http://myrepo.com/myProject/myfile : authorization failed: Could not
authenticate to server: rejected Basic challenge (http://myrepo.com)
最佳回答

When you run svn from the command line, you do not have access to the credentials stored in Jenkins.

The easiest way to make svn work from the command line is to provide the --username and --password parameters to svn in your build script.

You can also run svn as the Jenkins user and let it store the authentication in the Jenkins user s home directory. You ll have to set up the authentication yourself on each node where you need to perform commits. And it s tedious to maintain if your SSL certificate or password changes periodically. But it does keep usernames, passwords out of the build scripts.

也许像SVN Publisher能帮助你重新努力完成的工作。

问题回答

暂无回答




相关问题
Best practices for Subversion and Visual Studio projects

I ve recently started working on various C# projects in Visual Studio as part of a plan for a large scale system that will be used to replace our current system that s built from a cobbling-together ...

Changing username in SVN+SSH URI on the fly in working copy

I am using SVN+SSH to check out a working copy of repository from an SVN server on which all developers are members of a developer group and have full read/write permissions on the repository ...

ASP.NET MVC: How should it work with subversion?

So, I have an asp.net mvc app that is being worked on by multiple developers in differing capacities. This is our first time working on a mvc app and my first time working with .NET. Our app does not ...

How to search for file in subversion server?

Is there a way to search for a file in a subversion repository? Something similar to Unix find command, with which I can find the location of a file in a repository. I know there is svn list, but ...

热门标签