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

SVN Publisher does not expand variables for target path

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Minor Minor
    • svnpublisher-plugin
    • None
    • Hudson 1.341, Windows Server 2003, SVN Publisher 0.1

      SVN Publisher 0.1 does not expand environment variables for the Target Path setting.

      Using a hardcoded path like

      C:\Documents and Settings\Administrator\hudson\jobs\Builder\workspace

      works, but ${WORKSPACE} does not. That gives the following info in the log.

      Jan 23, 2010 3:06:32 PM com.mtvi.plateng.subversion.SVNForceImport forceImport
      SEVERE: SVNForceImport Error: target Directory not accessable: ${WORKSPACE}
      Jan 23, 2010 3:06:32 PM com.mtvi.plateng.subversion.SVNForceImport forceImport
      INFO: null Name
      Jan 23, 2010 3:06:32 PM com.mtvi.plateng.subversion.SVNPublisher _perform
      SEVERE: Unable to import to svn.
      java.lang.NullPointerException
      at com.mtvi.plateng.subversion.SVNForceImport.matchFiles(SVNForceImport.java:348)
      at com.mtvi.plateng.subversion.SVNForceImport.forceImport(SVNForceImport.java:222)
      at com.mtvi.plateng.subversion.SVNPublisher$DescriptorImpl.svnImport(SVNPublisher.java:237)
      at com.mtvi.plateng.subversion.SVNPublisher._perform(SVNPublisher.java:123)
      at com.mtvi.plateng.subversion.SVNPublisher.perform(SVNPublisher.java:108)
      at hudson.plugins.promoted_builds.Promotion$RunnerImpl.build(Promotion.java:124)
      at hudson.plugins.promoted_builds.Promotion$RunnerImpl.doRun(Promotion.java:103)
      at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:416)
      at hudson.model.Run.run(Run.java:1193)
      at hudson.plugins.promoted_builds.Promotion.run(Promotion.java:75)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:122)

      (note that SVN Publisher is not available as a Component to select when creating an issue, so that should be created and then this can be re-assigned).

            brentsmith brentsmith
            chrisheller chrisheller
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: