Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-21656

Credential issues when using externals after upgrade to subversion plugin 2.0

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Major Major
    • subversion-plugin
    • None
    • Jenkins 1.549, os-x 10.5, java version "1.6.0_26", build slaves on rhel5, rhel6, solaris, os-x

      After upgrade to subversion plugin 2.0 I'm having credential issues that seem to be related to external properties.

      • svn+ssh://repo/trunk/s/job has svn:externals properties for all dependencies needed to build the job.
      • svn+ssh://repo/trunk/libraries/mylib has a svn:externals property with the relative URL ^shared/trunk/config/src/main/resources/config.xml
      Updating svn+ssh://repo/trunk/s/job at revision '2014-02-05T08:22:39.468 +0100'
      Fetching 'svn+ssh://repo/trunk/headers' at -1 into '/opt/jenkins/workspace/job/headers'
      At revision 301213
      Fetching 'svn+ssh://repo/trunk/libraries' at -1 into '/opt/jenkins/workspace/job/libraries'
      U         libraries/mylib/config.xml
      Fetching 'svn+ssh://repo/trunk/config/src/main/resources/config.xml' at -1 into '/opt/jenkins/workspace/job/libraries/mylib/config.xml'
      At revision 301213
      Fetching 'svn+ssh://repo/shared/trunk/config/src/main/xsd/config.xsd' at -1 into '/opt/jenkins/workspace/libraries/mylib/config.xsd'
      At revision 301213
      At revision 301213
      Fetching 'svn+ssh://repo/trunk/servers/test' at -1 into '/opt/jenkins/workspace/job/servers/test'
      At revision 301213
      At revision 301213
      no change for svn+ssh://repo/trunk/s/job since the previous build
      no change for svn+ssh://repo/trunk/headers since the previous build
      no change for svn+ssh://repo/trunk/libraries since the previous build
      hudson.util.IOException2: revision check failed on svn+ssh://repo/shared/trunk/config/src/main/resources/config.xml
      	at hudson.scm.SubversionChangeLogBuilder.buildModule(SubversionChangeLogBuilder.java:189)
      	at hudson.scm.SubversionChangeLogBuilder.run(SubversionChangeLogBuilder.java:132)
      	at hudson.scm.SubversionSCM.calcChangeLog(SubversionSCM.java:733)
      	at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:894)
      	at hudson.model.AbstractProject.checkout(AbstractProject.java:1411)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:651)
      	at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:560)
      	at hudson.model.Run.execute(Run.java:1670)
      	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      	at hudson.model.ResourceController.execute(ResourceController.java:88)
      	at hudson.model.Executor.run(Executor.java:231)
      Caused by: org.tmatesoft.svn.core.SVNCancelException: svn: E200015: No credential to try. Authentication failed
      	at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.cancel(SVNErrorManager.java:37)
      	at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.cancel(SVNErrorManager.java:32)
      	at org.tmatesoft.svn.core.internal.wc.DefaultSVNAuthenticationManager.getFirstAuthentication(DefaultSVNAuthenticationManager.java:185)
      	at org.tmatesoft.svn.core.internal.io.svn.SVNSSHConnector.open(SVNSSHConnector.java:77)
      	at org.tmatesoft.svn.core.internal.io.svn.SVNConnection.open(SVNConnection.java:77)
      	at org.tmatesoft.svn.core.internal.io.svn.SVNRepositoryImpl.openConnection(SVNRepositoryImpl.java:1252)
      	at org.tmatesoft.svn.core.internal.io.svn.SVNRepositoryImpl.getLatestRevision(SVNRepositoryImpl.java:168)
      	at org.tmatesoft.svn.core.internal.wc2.ng.SvnNgRepositoryAccess.getRevisionNumber(SvnNgRepositoryAccess.java:118)
      	at org.tmatesoft.svn.core.internal.wc2.SvnRepositoryAccess.getLocations(SvnRepositoryAccess.java:148)
      	at org.tmatesoft.svn.core.internal.wc2.ng.SvnNgRepositoryAccess.createRepositoryFor(SvnNgRepositoryAccess.java:45)
      	at org.tmatesoft.svn.core.internal.wc2.remote.SvnRemoteLog.run(SvnRemoteLog.java:160)
      	at org.tmatesoft.svn.core.internal.wc2.remote.SvnRemoteLog.run(SvnRemoteLog.java:35)
      	at org.tmatesoft.svn.core.internal.wc2.SvnOperationRunner.run(SvnOperationRunner.java:20)
      	at org.tmatesoft.svn.core.wc2.SvnOperationFactory.run(SvnOperationFactory.java:1238)
      	at org.tmatesoft.svn.core.wc2.SvnOperation.run(SvnOperation.java:294)
      	at org.tmatesoft.svn.core.wc.SVNLogClient.doLog(SVNLogClient.java:967)
      	at org.tmatesoft.svn.core.wc.SVNLogClient.doLog(SVNLogClient.java:872)
      	at hudson.scm.SubversionChangeLogBuilder.buildModule(SubversionChangeLogBuilder.java:177)
      	... 11 more
      

      Before upgrading to 2.0 this never happened.
      Usually the job builds if I restart and there are no changes in the repository.

            Unassigned Unassigned
            sebastianh Sebastian Haglund
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: