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

SVN credentials are keyed on hostname only

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • None
    • Platform: PC, OS: Linux

      We have a couple of projects for which we created Hudson jobs. We are
      configuring them to pick up source code in SVN, and enter appropriate
      credentials (Hudson tells us it is saving them in its credential safe). To make
      sure everything's all right, we fire a build right away. But then, the day
      after, we have an email from hudson saying our build has failed:

      ------------------------------------------
      started
      ERROR: svn: Authorization failed
      org.tmatesoft.svn.core.SVNAuthenticationException: svn: Authorization failed
      at
      org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:47)
      at org.tmatesoft.svn.core.internal.io.svn.SVNReader.parse(SVNReader.java:288)
      at
      org.tmatesoft.svn.core.internal.io.svn.SVNConnection.read(SVNConnection.java:210)
      at
      org.tmatesoft.svn.core.internal.io.svn.SVNConnection.authenticate(SVNConnection.java:93)
      at
      org.tmatesoft.svn.core.internal.io.svn.SVNRepositoryImpl.authenticate(SVNRepositoryImpl.java:991)
      at
      org.tmatesoft.svn.core.internal.io.svn.SVNRepositoryImpl.checkPath(SVNRepositoryImpl.java:216)
      at
      hudson.scm.SubversionSCM$DescriptorImpl.checkRepositoryPath(SubversionSCM.java:1224)
      at hudson.scm.SubversionSCM.repositoryLocationsExist(SubversionSCM.java:1281)
      at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:336)
      at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:300)
      at hudson.model.AbstractProject.checkout(AbstractProject.java:558)
      at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:215)
      at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:181)
      at hudson.model.Run.run(Run.java:659)
      at hudson.model.Build.run(Build.java:101)
      at hudson.model.ResourceController.execute(ResourceController.java:70)
      at hudson.model.Executor.run(Executor.java:71)
      Publishing Javadoc
      Recording test results

      So we have to re-enter the credential again each morning.

            Unassigned Unassigned
            jsbournival jsbournival
            Votes:
            21 Vote for this issue
            Watchers:
            20 Start watching this issue

              Created:
              Updated:
              Resolved: