SVN Publisher

Plugin Information

Plugin ID svnpublisher
Latest Release 0.1
Latest Release Date Jan 10, 2010
Plugin Central Plugin Central 3.2
Sources Subversion
Support Eclipse Hudson Forum
Issue Tracking Eclipse Bugzilla
Hudson Core (latest) 3.3.3

This plugin allows you to upload artifacts to a subversion repository. This is done via a delete/import of the items requested.

 This plugin is in its infancy and should be used with caution.


SVN URL

The SVN URL is the location you wish to upload the items to.

Target Path

The target path is the location of the target directory in hudson, if the project is not a maven project this can be the root location for the items to be imported.

Import Items

Each import item consists of 3 parts:

  • Pattern: A java regular expression pattern used to match the item as is exists in the target directory.
  • Name: If name is not left blank the item will be renamed upon import.
  • Path: If the item is to be imported into a directory other then the one given by the SVN URL this field can be used, this should always end with a forwardslash and it is always based off the location given in the SVN URL.

POM Path

The pom path is, if using a maven project, the location of the project's pom.xml. This is required if the following variable are to be used.

_MAJOR_ / _MINOR_ / _PATCH_ Paths

The _MAJOR_, _MINOR_, and _PATCH_ variables all require paths to their values from within the pom.xml's project node.

These paths are given in dot notation with index values available.

<project>
<versionA>1</versionA>
<properties>
<minor>2</minor>
<deep>
<patchBuild>3.456</patchBuild>

</deep>

</properties>

</project>

Using the above example the following paths and their results could be used:

versionA  -> 1

properties.minor  -> 2

properties.deep.patchBuild[0]  -> 3

properties.deep.patchBuild[1] -> 456

Currently only dot separated version numbers can be indexed.

Change Log

Version 0.1 (Jan 10, 2010)
  • Initial release

Labels:

plugin-upload plugin-upload Delete
plugin-scm-related plugin-scm-related Delete
tier3-hudson-plugin tier3-hudson-plugin Delete
Enter labels to add to this page:
Wait Image 
Looking for a label? Just start typing.
  1. Mar 31, 2009

    Jeff Heckel says:

    Has anyone used this plugin? I am new to Hudson but am wanting to have my artifa...

    Has anyone used this plugin? I am new to Hudson but am wanting to have my artifacts from a Hudson build to be checked into Subversion afterwards. I am unclear if I should try using this plug in or use an ant task to check in to Subversion. Any thoughts or suggestions? I also don't see where this can be downloaded from.

  2. Jul 08, 2009

    Nathan Craddock says:

    You're going to think this is incredibly stupid. Where can I actually download t...

    You're going to think this is incredibly stupid. Where can I actually download this plugin?

    1. Jan 10, 2010

      Alan Harder says:

      Not stupid at all.. looks like no release of this plugin was ever done. I'll rel...

      Not stupid at all.. looks like no release of this plugin was ever done.
      I'll release the "0.1" version now, so you can at least try out the work that was completed. Look for it soon in Manage Hudson / Manage Plugins / Available.

  3. Feb 19, 2010

    Augie C Coder says:

    Sorry if this question has an obvious answer.  How do I go about using the ...

    Sorry if this question has an obvious answer.  How do I go about using the WORKSPACE or other Hudson environment variables in the "Target path" field?  I've tried $WORKSPACE and ${WORKSPACE} and can't get favorable results.

    1. May 10, 2010

      Axel Heider says:

      Yes, this would help much.

      Yes, this would help much.

      1. May 25, 2010

        Tomasz Wszelaki says:

        Exactly, I've even tried to put full path "by hand" and it still returned the sa...

        Exactly, I've even tried to put full path "by hand" and it still returned the same error:"SVN Publisher: Error: target Directory not accessable:"

        1. Sep 07, 2010

          Shadow X says:

          I got the same error - SVN Publisher: Error: target Directory not accessable F...

          I got the same error -
          SVN Publisher: Error: target Directory not accessable

          For example, let my test svn repository be

          http://mysource/svn/test/trunk

          under trunk I have two main directory:
          +src
          +bin

          all my source file are in src directory, the source files build by hudson, and the result executable file (named mybin) will be in bin directory.

          I've tried several setup like follows,

          SVN URL: http://mysource/svn/test/trunk
          Target Path: _WORKSPACE_/bin
          Pattern: mybin

          all the configuration I've tried result the "target Directory not accessable" messages.
          What is the right configuration for this case ?
          Thanks

          1. Nov 16, 2010

            awe says:

            I also got the very same error message: "SVN Publisher: Error: target Directory...

            I also got the very same error message:

            "SVN Publisher: Error: target Directory not accessable"

            This is happening using either the _WORKSPACE_ variable or hard coding the path.

            Did someone find a way to set the target directory?

            Thanks

  4. May 27, 2010

    bokc says:

    This project is alive? I m very interesting by this plugin.

    This project is alive? I m very interesting by this plugin.

  5. Jul 12, 2010

    Dirk Möbius says:

    @Augie: You can use _WORKSPACE_ instead of $WORKSPACE or ${WORKSPACE}. ...

    @Augie: You can use _WORKSPACE_ instead of $WORKSPACE or ${WORKSPACE}.

    Another problem:

    When I use ".*\.zip" as Item Pattern and I have the following matching zip files in my workspace:
      fileA.zip, fileB.zip, fileC.zip, ...
    on svn import/commit they will be renamed to:
      fileA.zip, 1fileB.zip, 2fileC.zip, ...

    Looking from the source code (http://fisheye.hudson-ci.org/browse/Hudson/trunk/hudson/plugins/svnpublisher/src/main/java/com/mtvi/plateng/subversion/SVNForceImport.java?r=HEAD) method forceImport(), there's no way to circumvent that other than not to use patterns that match more than one file.

  6. Aug 27, 2010

    aeryn says:

    It would be great if there was the ability to provide a check-in comment.  ...

    It would be great if there was the ability to provide a check-in comment.  That way you can use the comment in conjunction with "Excluded Commit Messages" of subversion plugin to avoid triggering a build by hudson doing a check-in via this plug-in.  Bonus, if it can have some variables like build number, etc.

  7. Sep 13, 2010

    santhoshb says:

    Is this plugin used by any one. I am giving the username and password for the "H...

    Is this plugin used by any one. I am giving the username and password for the "Hudson Management" console, but the authentication for the repo is still failing with the below error.  Any input on the same?

    13 Sep, 2010 7:51:26 PM com.mtvi.plateng.subversion.SVNForceImport forceImport
    SEVERE: *SVNForceImport Error: svn: Authentication required for '<http://aa.aa.aa.aa:80> CollabNet Subversion Repository'

    1. Dec 19, 2010

      Yossi Zach says:

      Just spent 2 hours trying to solve this issue... Here is the solution: Subversi...

      Just spent 2 hours trying to solve this issue... Here is the solution:

      Subversion credentials for SVN Publisher should be specified in Manage Hudson -> Configure System page.

  8. Jan 20, 2011

    Bjørn Grønbæk says:

    No matter how I configure my project I keep having an authentication problem - "...

    No matter how I configure my project I keep having an authentication problem - "Authentication required for https://reponame". I have fillede the username and password in the Hudson main configuration, but this does not help me. Do you guys have any ideas? Is it a problem that the repo is httpS rather than http? The certificate is self signed, could that be a problem?

  9. Apr 21, 2011

    Bergaoui Rim says:

    Hi, I want to publish my artefacts in two different SVN repositories, is it pos...

    Hi,
    I want to publish my artefacts in two different SVN repositories, is it possible to do that by using this plugin? or by using an other Hudson plugin?

    Regards,

  10. Feb 21, 2012

    Sushma Joshi says:

    Hi, While using this plugin, I am getting  SEVERE: SVNForceImport Error: ...

    Hi,

    While using this plugin, I am getting 

    SEVERE: SVNForceImport Error: target Directory not accessable

    Any idea on how to solve this?

    Thanks.

  11. Feb 23, 2012

    jin-hwan.choi says:

    Hi, Linux not support? Thanks.

    Hi,

    Linux not support?

    Thanks.