Upload a file to a CollabNet release

To upload build results to a file release in CollabNet SourceForge Enterprise or CollabNet TeamForge, configure the file release component as a post-build action in Hudson.

Before you set up the CollabNet plugin, make sure that the CollabNet SorceForge or TeamForge project contains valid package and file release folders.
Note: All Hudson builds that succeed will get uploaded to the CollabNet file release. If you want to upload only promoted builds, install the Hudson Promoted Builds plugin as well.
  1. In the Hudson interface for the job, click Configure.
  2. In the Post-build Actions section, select CollabNet File Release.
  3. Enter the URL of the CollabNet site. For example, https://forge.collab.net.
  4. Enter the username and password of the CollabNet project member who will upload the files.
    Note: This user must have at least view permission for the package.
  5. Enter the name of the CollabNet project, the package and the file release where you want the build files added.
    Note: A package, and within that, a release, must exist before you can add individual files to that release.
  6. Specify whether you want existing files with the same name to be overwritten.
  7. Specify a file pattern so that files that match the pattern are uploaded. You may use Hudson environmental variables in your file patterns. For example, "pkg/subversion-r${SVN_REVISION}.tar.gz", in a job to build Subversion source code.
  8. Click Save.
When the build completes, the files are uploaded into the file release. Here's an example of the TeamForge View Release page.
Hudson build files uploaded to a file release
Note: To upload only specific, successful builds, you need to enter the CollabNet file release information as an action for the build promotion process.