• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • subversion-plugin
    • Windows 7; Jenkins 1.617 with Subversion Plug-in 2.5.5
      Windows Server 2012 R2; Jenkins 2.19.3 with Subversion plugin 2.7.1
      Linux x86_64, Jenkins 2.19.4 with Subversion Plugin 2.7.1

      Steps to reproduce the bug:

      1. Install Jenkins 1.617 with Subversion Plug-in 2.5.5
      2. Declare externals (external_link) on SVN repo
      3. Create a job that uses a SVN repo with credentials (username/password)
      4. Setup credential for this repository
      5. Execute the job

      Stack trace:

      hudson.util.IOException2: revision check failed on <external_link>
          at hudson.scm.SubversionChangeLogBuilder.buildModule(SubversionChangeLogBuilder.java:199)
          at hudson.scm.SubversionChangeLogBuilder.run(SubversionChangeLogBuilder.java:137)
          at hudson.scm.SubversionSCM.calcChangeLog(SubversionSCM.java:722)
          at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:857)
          at hudson.scm.SCM.checkout(SCM.java:485)
          at hudson.model.AbstractProject.checkout(AbstractProject.java:1282)
          at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:610)
          at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
          at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:532)
          at hudson.model.Run.execute(Run.java:1744)
          at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
          at hudson.model.ResourceController.execute(ResourceController.java:98)
          at hudson.model.Executor.run(Executor.java:374)
      

        1. CredentialsExternalsTest.java
          12 kB
        2. Jenkins config.png
          Jenkins config.png
          13 kB
        3. Job config.png
          Job config.png
          29 kB
        4. Screenshot_Jenkins_Config.png
          Screenshot_Jenkins_Config.png
          59 kB
        5. screenshot01.png
          screenshot01.png
          60 kB
        6. screenshot02.png
          screenshot02.png
          49 kB

          [JENKINS-32167] ISVNAuthentication provider did not provide credentials

          Maciej Jaros added a comment - - edited

          I used advorsky73 solution from comment-246389 since January 2016. Didn't update Jenkins (still on 1.x), but 2.5.7 version of SVN plugin with that fix works fine. All features seem to work correctly (checkout works with and without externals, changes show up in the build, passing credentials work). Most of the builds in installation of my current company use SVN. And there are many externals in repos used.

          It would seem the workaround is a valid solution (as there has been no other solution present) and the exception is a false negative somehow... Could someone push the solution to the official repo and run some automated tests (if there are any for this one).

          Maciej Jaros added a comment - - edited I used advorsky73 solution from comment-246389 since January 2016. Didn't update Jenkins (still on 1.x), but 2.5.7 version of SVN plugin with that fix works fine. All features seem to work correctly (checkout works with and without externals, changes show up in the build, passing credentials work). Most of the builds in installation of my current company use SVN. And there are many externals in repos used. It would seem the workaround is a valid solution (as there has been no other solution present) and the exception is a false negative somehow... Could someone push the solution to the official repo and run some automated tests (if there are any for this one).

          Liyaa submitted a pull request to fix this issue:

          https://github.com/jenkinsci/subversion-plugin/pull/212

          Matt Grochowalski added a comment - Liyaa submitted a pull request to fix this issue: https://github.com/jenkinsci/subversion-plugin/pull/212

          Andrew Lucas added a comment -

          You closed JENKINS-31455 as a duplicate to this one. If this one ever gets worked, be sure to address that it is seen when using external svn references in a build. The first build fails with the authentication error, then the next completes. The cause of the build is lost to the second build, and two builds have to occur.

          31455 had some comments that might be useful to keep track of:

          smccants added a comment - 2018-02-13 13:59
          dimitkoto, as stated in JENKINS-32167, there is no owner or maintainer of this plugin.  There is a workaround provided in comments under JENKINS-32167jglick provided some better feedback code, but I don't think that has ever shipped.  I looked at it and wrote a test case demonstrating the problem, but solving it was too complicated for the time I could devote to it.

          I don't think anything has changed since then.   Wish someone would step up and fix it for us users, but I'm not expecting it until the SVN plugin is totally busted.

           

          Andrew Lucas added a comment - You closed JENKINS-31455 as a duplicate to this one. If this one ever gets worked, be sure to address that it is seen when using external svn references in a build. The first build fails with the authentication error, then the next completes. The cause of the build is lost to the second build, and two builds have to occur. 31455 had some comments that might be useful to keep track of: smccants added a comment - 2018-02-13 13:59 dimitkoto , as stated in  JENKINS-32167 , there is no owner or maintainer of this plugin.  There is a workaround provided in comments under JENKINS-32167 .  jglick provided some better feedback code, but I don't think that has ever shipped.  I looked at it and wrote a test case demonstrating the problem, but solving it was too complicated for the time I could devote to it. I don't think anything has changed since then.   Wish someone would step up and fix it for us users, but I'm not expecting it until the SVN plugin is totally busted.  

          I just wanted to point to https://issues.jenkins-ci.org/browse/JENKINS-45801 There are two simple bash scripts to reproduce the defect (or at least a variant of it).

          Please feel free to include theses scripts into your build system to verify the defect or it's fix.

          Jørgen von Bargen added a comment - I just wanted to point to https://issues.jenkins-ci.org/browse/JENKINS-45801 There are two simple bash scripts to reproduce the defect (or at least a variant of it). Please feel free to include theses scripts into your build system to verify the defect or it's fix.

          jjvbintec Did the latest version (2.10.6) resolve this one?

          Ivan Fernandez Calvo added a comment - jjvbintec Did the latest version (2.10.6) resolve this one?

          Edgars Batna added a comment -

          Installed the plugin yesterday and so far going strong. Thanks for the improvement! All jobs went from typically red to typically green/blue.

          Edgars Batna added a comment - Installed the plugin yesterday and so far going strong. Thanks for the improvement! All jobs went from typically red to typically green/blue.

          I can confirm, both

          now passes without error

          Jørgen von Bargen added a comment - I can confirm, both test scripts in JENKINS-45801 big real world project now passes without error

          great, I have to make a test based on those scripts.

          Ivan Fernandez Calvo added a comment - great, I have to make a test based on those scripts.

          Keith Yates added a comment -

          Nevermind the description doesn't match my issue.

          Keith Yates added a comment - Nevermind the description doesn't match my issue.

          Keith Yates added a comment -

          Similar to this issues JENKINS-37642

          Keith Yates added a comment - Similar to this issues  JENKINS-37642

            jglick Jesse Glick
            mariobros Mario Hercog
            Votes:
            65 Vote for this issue
            Watchers:
            79 Start watching this issue

              Created:
              Updated:
              Resolved: