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

SVN_URL and SVN_REVISION are not set when using @NNN in Subversion URL

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

      As in summary.

      The job is a free-style job, configured with an Subversion SCM repository of
      svn://hood/svnroot/product/trunk/buildtools@HEAD, and a single
      "Execute shell" build step:

      env | grep SVN
      

      The console output:

      13:24:05  Started by user anonymous
      13:24:05  Building on master
      13:24:05  Updating http://hood/svnroot/product/trunk/buildtools@HEAD
      13:24:05  At revision 187514
      13:24:06  no change for http://hood/svnroot/product/trunk/buildtools since the previous build
      13:24:06  [workspace] $ /bin/sh -xe /tmp/hudson7584077203075354172.sh
      13:24:06  + env
      13:24:06  + grep SVN
      13:24:06  Notifying upstream projects of job completion
      13:24:06  Finished: SUCCESS
      

      Without the @HEAD:

      13:52:22  Started by user anonymous
      13:52:22  Building on master
      13:52:22  Updating http://hood/svnroot/product/trunk/buildtools
      13:52:22  At revision 187517
      13:52:23  no change for http://hood/svnroot/product/trunk/buildtools since the previous build
      13:52:23  [workspace] $ /bin/sh -xe /tmp/hudson1084601171101888494.sh
      13:52:23  + env
      13:52:23  + grep SVN
      13:52:23  SVN_URL=http://hood/svnroot/spectrum/trunk/omneon/buildtools
      13:52:23  SVN_REVISION=187450
      13:52:23  Notifying upstream projects of job completion
      13:52:23  Finished: SUCCESS
      

      Jenkins v1.425, Subversion Plugin v1.31

          [JENKINS-10942] SVN_URL and SVN_REVISION are not set when using @NNN in Subversion URL

          dogfood added a comment -

          Integrated in plugins_subversion #106
          [FIXED JENKINS-10942] Local module directory contains @NNN when @NNN is used in Subversion repository URL.

          sogabe :
          Files :

          • /trunk/hudson/plugins/subversion/src/main/java/hudson/scm/SubversionSCM.java
          • /trunk/hudson/plugins/subversion/src/test/java/hudson/scm/SubversionSCMTest.java

          dogfood added a comment - Integrated in plugins_subversion #106 [FIXED JENKINS-10942] Local module directory contains @NNN when @NNN is used in Subversion repository URL. sogabe : Files : /trunk/hudson/plugins/subversion/src/main/java/hudson/scm/SubversionSCM.java /trunk/hudson/plugins/subversion/src/test/java/hudson/scm/SubversionSCMTest.java

          Code changed in jenkins
          User: sogabe
          Path:
          src/main/java/hudson/scm/SubversionSCM.java
          src/test/java/hudson/scm/SubversionSCMTest.java
          http://jenkins-ci.org/commit/subversion-plugin/94846dcc5c67c4a20dec6222355d639a0f4cba66
          Log:
          [FIXED JENKINS-10942] SVN_URL and SVN_REVISION are not set when using @NNN in Subversion URL.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: sogabe Path: src/main/java/hudson/scm/SubversionSCM.java src/test/java/hudson/scm/SubversionSCMTest.java http://jenkins-ci.org/commit/subversion-plugin/94846dcc5c67c4a20dec6222355d639a0f4cba66 Log: [FIXED JENKINS-10942] SVN_URL and SVN_REVISION are not set when using @NNN in Subversion URL.

          Code changed in jenkins
          User: sogabe
          Path:
          src/main/java/hudson/scm/SubversionSCM.java
          src/test/java/hudson/scm/SubversionSCMTest.java
          http://jenkins-ci.org/commit/subversion-plugin/94846dcc5c67c4a20dec6222355d639a0f4cba66
          Log:
          [FIXED JENKINS-10942] SVN_URL and SVN_REVISION are not set when using @NNN in Subversion URL.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: sogabe Path: src/main/java/hudson/scm/SubversionSCM.java src/test/java/hudson/scm/SubversionSCMTest.java http://jenkins-ci.org/commit/subversion-plugin/94846dcc5c67c4a20dec6222355d639a0f4cba66 Log: [FIXED JENKINS-10942] SVN_URL and SVN_REVISION are not set when using @NNN in Subversion URL.

          Code changed in jenkins
          User: sogabe
          Path:
          src/main/java/hudson/scm/SubversionSCM.java
          src/test/java/hudson/scm/SubversionSCMTest.java
          http://jenkins-ci.org/commit/subversion-plugin/d8df18b1f69fe62e77ad5ce73b555b0a4cd502f9
          Log:
          [FIXED JENKINS-10942] Local module directory contains @NNN when @NNN is used in Subversion repository URL.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: sogabe Path: src/main/java/hudson/scm/SubversionSCM.java src/test/java/hudson/scm/SubversionSCMTest.java http://jenkins-ci.org/commit/subversion-plugin/d8df18b1f69fe62e77ad5ce73b555b0a4cd502f9 Log: [FIXED JENKINS-10942] Local module directory contains @NNN when @NNN is used in Subversion repository URL.

          Code changed in jenkins
          User: sogabe
          Path:
          src/main/java/hudson/scm/SubversionSCM.java
          src/test/java/hudson/scm/SubversionSCMTest.java
          http://jenkins-ci.org/commit/subversion-plugin/d8df18b1f69fe62e77ad5ce73b555b0a4cd502f9
          Log:
          [FIXED JENKINS-10942] Local module directory contains @NNN when @NNN is used in Subversion repository URL.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: sogabe Path: src/main/java/hudson/scm/SubversionSCM.java src/test/java/hudson/scm/SubversionSCMTest.java http://jenkins-ci.org/commit/subversion-plugin/d8df18b1f69fe62e77ad5ce73b555b0a4cd502f9 Log: [FIXED JENKINS-10942] Local module directory contains @NNN when @NNN is used in Subversion repository URL.

          Oleg Nenashev added a comment -

          I see the issue in subversion-1.50 with Jenkins 1.509.4

          Oleg Nenashev added a comment - I see the issue in subversion-1.50 with Jenkins 1.509.4

          Oleg Nenashev added a comment -

          The issue also appears for subversion-1.53 (with @HEAD suffix)

          Oleg Nenashev added a comment - The issue also appears for subversion-1.53 (with @HEAD suffix)

          Oleg Nenashev added a comment - - edited

          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 x_X.
          So, it is definitely an another issue. I'll create another one

          Oleg Nenashev added a comment - - edited 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 x_X. So, it is definitely an another issue. I'll create another one

          Daniel Beck added a comment -

          Oleg, can this be resolved again?

          Daniel Beck added a comment - Oleg, can this be resolved again?

          Oleg Nenashev added a comment -

          Yes, I've forgot to close it.
          Just 4 history, the new issue has been fixed (JENKINS-20344)

          Oleg Nenashev added a comment - Yes, I've forgot to close it. Just 4 history, the new issue has been fixed ( JENKINS-20344 )

            Unassigned Unassigned
            ammon Ammon Riley
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: