[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
Artifactory Plugin 2.2.1
Subversion plugin 2.2



 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.
Before the upgrade I was running jenkins (1.529) , Subversion Plugin (1.5) and Artifactory Plugin (2.1.8) without problems.

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.
Relevant commit is here:
https://github.com/spock-yh/artifactory-plugin/commit/e164fd4d4f4025ecab127f213615875b5361b729

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:
https://github.com/spock-yh/artifactory-plugin/releases/tag/artifactory-spockyh-2.2.2-20140304105300

I'm providing this "as-is", as mentioned above, I haven't tested this thoroughly.
Also, FYI, I'm not affiliated with jfrog and don't treat this as anything resembling an official release of the artifactory plugin

Hope this works for you!

Comment by Johan Raedemaeker [ 04/Mar/14 ]

Yair,
I have tested your fix and it works against Jenkins 1.552 + Subversion plugin 2.2,

Comment by Lior Hasson (Inactive) [ 02/Jul/14 ]

We had a similar issue that was related to credentials problems with SVN (HAP-486)
We fixed this problem in version 2.2.3

Comment by Cédric LEVASSEUR [ 15/Jan/15 ]

This issue "came back" due to a bug in Jenkins Subversion Plugin 2.5
https://issues.jenkins-ci.org/browse/JENKINS-26440
Downgrading Jenkins Subversion Plugin to 2.4.5 solved the problem

java.io.IOException: Subversion tag creation failed: svn: E200015: E200015: ISVNAuthentication provider did not provide credentials; HTTP authorization cancelled.
svn: E200015: ISVNAuthentication provider did not provide credentials; HTTP authorization cancelled.
[RELEASE] You are using an old subversion jenkins plugin, please consider upgrading.

"You are using an old subversion jenkins plugin, please consider upgrading." is great. It show me the way !
May be you could consider changing it in :
"You are using an old (or buggy )subversion jenkins plugin, please consider upgrading (downgrading in you using 2.5). "

Thanks

Generated at Thu Dec 12 06:52:34 UTC 2019 using JIRA 7.6.16#76018-sha1:9ed376192612a49536ac834c64177a0fed6290f5.