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

          Ammon Riley created issue -

          OHTAKE Tomohiro added a comment - https://github.com/jenkinsci/subversion-plugin/pull/4
          OHTAKE Tomohiro made changes -
          Attachment New: pullreq-4.patch [ 20832 ]

          Piotr Czachur added a comment -

          I'm experiencing similar situation (no SVN_* env vars), but I don't have "@..." at the end of url.

          Jenkins ver. 1.430
          Jenkins Subversion Plug-in 1.31

          Piotr Czachur added a comment - I'm experiencing similar situation (no SVN_* env vars), but I don't have "@..." at the end of url. Jenkins ver. 1.430 Jenkins Subversion Plug-in 1.31

          dogfood added a comment -

          Integrated in plugins_subversion #105
          [FIXED JENKINS-10942] SVN_URL and SVN_REVISION are not set when using @NNN in Subversion 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 #105 [FIXED JENKINS-10942] SVN_URL and SVN_REVISION are not set when using @NNN in Subversion 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
          sogabe made changes -
          Assignee New: sogabe [ sogabe ]
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]

          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.

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

              Created:
              Updated:
              Resolved: