[HAP-471] Release promotion fails due to being unable to find any SVN credentials Created: 25/Feb/14 Updated: 15/Jan/15 Resolved: 02/Jul/14 |
|
Status: | Resolved |
Project: | Jenkins Artifactory Plug-in |
Component/s: | Release Management |
Affects Version/s: | 2.2.1 |
Fix Version/s: | None |
Type: | Bug | Priority: | Critical |
Reporter: | Yair Halevi | Assignee: | Lior Hasson (Inactive) |
Resolution: | Duplicate | Votes: | 2 |
Labels: | jenkins, release | ||
Environment: |
Jenkins 1.552 running on Windows Server 2008 R2 |
Description |
In Jenkins 1.552 + Artifactory Plugin 2.2.1 + Subversion plugin 2.2, release promotion fails because during creation of a tag, no SVN credentials can be found. The error message in the build log is: [RELEASE] Creating subversion tag: svn://internalsvn.company.com/repo/myproject/tags/1.3.0 Failure in post build SCM action: Subversion tag creation failed: svn: E200015: No credential to try. Authentication failed The reason to this seems to be that the method getSvnAuthenticationProvider in class org.jfrog.hudson.release.scm.svn.SubversionManager creates an authentication provider that is not project and module location aware. |
Comments |
Comment by Johan Raedemaeker [ 03/Mar/14 ] |
I have the same problem since upgrading to the versions mentioned in the description. |
Comment by Yair Halevi [ 04/Mar/14 ] |
I forked and created a fix. But I haven't thoroughly tested this with multiple combinations of jenkins + subversion plugin versions. I'm not sure it will work with SVN plugin versions prior to 2.0. |
Comment by Johan Raedemaeker [ 04/Mar/14 ] |
Thank you Yair, do you have a snapshot build of the artifactory plugin that I can download ? |
Comment by Yair Halevi [ 04/Mar/14 ] |
Uploaded a snapshot release here: I'm providing this "as-is", as mentioned above, I haven't tested this thoroughly. Hope this works for you! |
Comment by Johan Raedemaeker [ 04/Mar/14 ] |
Yair, |
Comment by Lior Hasson (Inactive) [ 02/Jul/14 ] |
We had a similar issue that was related to credentials problems with SVN (HAP-486) |
Comment by Cédric LEVASSEUR [ 15/Jan/15 ] |
This issue "came back" due to a bug in Jenkins Subversion Plugin 2.5 java.io.IOException: Subversion tag creation failed: svn: E200015: E200015: ISVNAuthentication provider did not provide credentials; HTTP authorization cancelled. "You are using an old subversion jenkins plugin, please consider upgrading." is great. It show me the way ! Thanks |