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

Updating to specific revision doesn't work

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • subversion-plugin
    • None
    • Windows 7 x86_64, Jenkins 1.470, Subversion plugin 1.40

      Suppose we have SVN repository https://svnserver/rep1 with HEAD=3.

      Test case:
      1. Create Jenkins job (free-style build)
      2. Check "This build is parameterized", add String parameter "REVISION"
      3. Select "Source Code Management" = "Subversion", specify Repository URL = https://svnserver/rep1/trunk@${REVISION}
      4. Save configuration, click "Build now", specify REVISION parameter with value=HEAD
      5. Wait for build finish (it should succeed), click "Build now" again, specify REVISION parameter with value=2

      Expected result:
      Build succeeds with working copy in workspace at revision 2.

      Actual results:
      Build fails on working copy update step (full log attached):
      Updating https://svnserver/rep1/trunk@2
      U Test.java
      At revision 2
      hudson.util.IOException2: revision check failed on https://svnserver/rep1/trunk
      at hudson.scm.SubversionChangeLogBuilder.buildModule(SubversionChangeLogBuilder.java:170)
      at hudson.scm.SubversionChangeLogBuilder.run(SubversionChangeLogBuilder.java:112)
      at hudson.scm.SubversionSCM.calcChangeLog(SubversionSCM.java:563)
      at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:710)
      at hudson.model.AbstractProject.checkout(AbstractProject.java:1242)
      at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:589)
      at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88)
      at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:494)
      at hudson.model.Run.execute(Run.java:1460)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:239)
      Caused by: org.tmatesoft.svn.core.SVNException: svn: E160006: No such revision 4
      svn: E175002: REPORT of '/rep1/!svn/bc/3/trunk': 500 Internal Server Error (https://svnserver)
      at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:64)
      ...

      Error is reproduced with different versions of Jenkins, Subversion plugin and different values of "Check-out Strategy" parameter.

            kutzi kutzi
            dmitry_kholodilov Dmitry Kholodilov
            Votes:
            2 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: