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

SVN_REVISION is not exported if server url end by / with further @HEAD suffix

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • subversion-plugin
    • None
    • subversion-1.50

      Server URL in config:

      • $PATH_TO_SCM/@HEAD

      Debug info (SubversionSCM.java:613):

      • Key in the "revisions" container: $PATH_TO_SCM
      • Value to be got in revisions.get() $PATH_TO_SCM/

      The issue is slash in the end.

          [JENKINS-20344] SVN_REVISION is not exported if server url end by / with further @HEAD suffix

          Oleg Nenashev created issue -
          Oleg Nenashev made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Oleg Nenashev made changes -
          Assignee New: Oleg Nenashev [ oleg_nenashev ]

          Oleg Nenashev added a comment -

          Oleg Nenashev added a comment - PR: https://github.com/jenkinsci/subversion-plugin/pull/54
          Oleg Nenashev made changes -
          Link New: This issue is related to JENKINS-12113 [ JENKINS-12113 ]

          Code changed in jenkins
          User: Oleg Nenashev
          Path:
          src/main/java/hudson/scm/subversion/SvnHelper.java
          src/test/java/hudson/scm/SvnHelperTest.java
          http://jenkins-ci.org/commit/subversion-plugin/f74ea686fcb68aab0b3ff9730f4754cb0af02d27
          Log:
          [FIXED JENKINS-20344] - SVN_REVISION is not exported if server url end by / with further @HEAD suffix
          SvnHelper function also truncates ending slashes => hash search works correctly. Also added some tests...

          Resolves https://issues.jenkins-ci.org/browse/JENKINS-20344

          Signed-off-by: Oleg Nenashev <nenashev@synopsys.com>

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Oleg Nenashev Path: src/main/java/hudson/scm/subversion/SvnHelper.java src/test/java/hudson/scm/SvnHelperTest.java http://jenkins-ci.org/commit/subversion-plugin/f74ea686fcb68aab0b3ff9730f4754cb0af02d27 Log: [FIXED JENKINS-20344] - SVN_REVISION is not exported if server url end by / with further @HEAD suffix SvnHelper function also truncates ending slashes => hash search works correctly. Also added some tests... Resolves https://issues.jenkins-ci.org/browse/JENKINS-20344 Signed-off-by: Oleg Nenashev <nenashev@synopsys.com>
          SCM/JIRA link daemon made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: In Progress [ 3 ] New: Resolved [ 5 ]

          Code changed in jenkins
          User: Christoph Kutzinski
          Path:
          src/main/java/hudson/scm/subversion/SvnHelper.java
          src/test/java/hudson/scm/SvnHelperTest.java
          http://jenkins-ci.org/commit/subversion-plugin/3e941d8dc920ab26cb1fdc2eef05f906a95f46ad
          Log:
          Merge pull request #54 from synopsys-arc-oss/jenkins_20344_fix

          [FIXED JENKINS-20344] - SVN_REVISION is not exported if server url ends ...

          Compare: https://github.com/jenkinsci/subversion-plugin/compare/a486adfb5c21...3e941d8dc920

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Christoph Kutzinski Path: src/main/java/hudson/scm/subversion/SvnHelper.java src/test/java/hudson/scm/SvnHelperTest.java http://jenkins-ci.org/commit/subversion-plugin/3e941d8dc920ab26cb1fdc2eef05f906a95f46ad Log: Merge pull request #54 from synopsys-arc-oss/jenkins_20344_fix [FIXED JENKINS-20344] - SVN_REVISION is not exported if server url ends ... Compare: https://github.com/jenkinsci/subversion-plugin/compare/a486adfb5c21...3e941d8dc920
          Oleg Nenashev made changes -
          Link New: This issue is related to JENKINS-20447 [ JENKINS-20447 ]
          Chris Tobey made changes -
          Link Original: This issue is related to JENKINS-20447 [ JENKINS-20447 ]

            oleg_nenashev Oleg Nenashev
            oleg_nenashev Oleg Nenashev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: