• Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • subversion-plugin
    • None
    • Platform: All, OS: All

      the svn pooling is using a Date based decision to update/checkout from SVN,
      instead of using the HEAD revision.

      We need to be able to chhose for a build that he must use HEAD.

          [JENKINS-1241] force using HEAD SVN version for build

          avishayh created issue -

          avishayh added a comment -

          I've managed to patch this one, it's real easy, only one line of code change

          in Class: hudson.scm.SubversionSCM

          line 377:
          final SVNRevision revision = SVNRevision.create(timestamp);
          replace to:
          final SVNRevision revision = SVNRevision.HEAD;

          avishayh added a comment - I've managed to patch this one, it's real easy, only one line of code change in Class: hudson.scm.SubversionSCM line 377: final SVNRevision revision = SVNRevision.create(timestamp); replace to: final SVNRevision revision = SVNRevision.HEAD;

          avishayh added a comment -

          Created an attachment (id=169)
          The patched source file

          avishayh added a comment - Created an attachment (id=169) The patched source file

              • Issue 1263 has been marked as a duplicate of this issue. ***

          Kohsuke Kawaguchi added a comment - Issue 1263 has been marked as a duplicate of this issue. ***
          Kohsuke Kawaguchi made changes -
          Link New: This issue is duplicated by JENKINS-1263 [ JENKINS-1263 ]
          loweryr made changes -
          Link New: This issue depends on JENKINS-1481 [ JENKINS-1481 ]

          avishayh added a comment -

          As for Issue 1481, I agree its necessary sometime to be able to choose the
          Revision Number (or share it between builds), I think all these features should
          be optinal for each build.
          If i want a "HEAD build" or a "TimeStamp based build" I will need to specify it
          on the build itself.

          avishayh added a comment - As for Issue 1481, I agree its necessary sometime to be able to choose the Revision Number (or share it between builds), I think all these features should be optinal for each build. If i want a "HEAD build" or a "TimeStamp based build" I will need to specify it on the build itself.

          imjimmurphy added a comment -

          We've just been bit my this issue. We use a hosted SVN service and that server
          and our build machine time's drifted a few minutes - caused our build to do some
          funky stuff.

          Clearly the HEAD revision approach is the simplest and most deterministic, no? I
          would advocate for not having yet another config option - just change the way
          its done so its more likely to work out of the box.

          imjimmurphy added a comment - We've just been bit my this issue. We use a hosted SVN service and that server and our build machine time's drifted a few minutes - caused our build to do some funky stuff. Clearly the HEAD revision approach is the simplest and most deterministic, no? I would advocate for not having yet another config option - just change the way its done so its more likely to work out of the box.

          mdonohue added a comment -
              • Issue 2136 has been marked as a duplicate of this issue. ***

          mdonohue added a comment - Issue 2136 has been marked as a duplicate of this issue. ***
          mdonohue made changes -
          Link New: This issue is duplicated by JENKINS-2136 [ JENKINS-2136 ]

            Unassigned Unassigned
            avishayh avishayh
            Votes:
            41 Vote for this issue
            Watchers:
            38 Start watching this issue

              Created:
              Updated: