StarTeam

Summary

This plugin integrates Hudson with StarTeam, Borland's crossplatform SCM solution. The plugin allows a project to be associated with a given StarTeam folder, in a given view and project.

Plugin Information

Plugin ID starteam
Latest Release 0.6.8
Latest Release Date Mar 29, 2011
Sources Subversion
Support Eclipse Hudson Forum
Issue Tracking Eclipse Bugzilla

The plugin currently supports the following:

  • Checkout
  • Polling
  • Distributed Hudson

Plans for the future include:

  • Proper changelog handling
  • Labeling support

see SVN branch starteam-0.3-SNAPSHOT for changes included in HUDSON-2879 and in attched zip file.

Author: Ilkka Laukkanen

I'm no longer maintaining this plugin because I don't have the time. --Ilkka

Requirements

The plugin requires the StarTeam SDK, StarTeam extensions and jsafe libraries in Hudson's classpath. These files are included in the freely downloadable StarTeam SDK package from Borland (Micro Focus) , and may be installed by e.g. dropping them in Hudson's WEB-INF/lib directory.

Notes

The plugin currently always converts line endings to the host format on checkout.

Usage

There is no global configuration for this plugin. Instead, configure a project to use StarTeam SCM. The following option settings appear:

  • Hostname - the name of the StarTeam server
  • Port - the port number
  • Project - the name of the project in StarTeam
  • View - the name of the view inside the project (e.g. "VIEW1")
  • Folder - the name of the root folder of your project, including the view's root folder (e.g. the root folder of view "VIEW1" could be "ROOTFOLDER1". And if your project Root folder lies under this as say "RELEASE1", in this case the entry should be "ROOTFOLDER1\RELEASE1")
  • Label - name of the StarTeam label for checking out the project
  • Promotion State - is label actual label or StarTeam promotion state
  • Username
  • Password

Building and Passing Unit Tests

Please see the project README.  You will need to download some jar files from borland and configure your maven settings.

Version History

Version 0.7.x (No Schedule)

  • Update code for more recent Hudson version

Version 0.6.x (No Schedule)

  • Allow checkout/polling by labels

Version 0.6.4 (No Schedule)

  • Fix checkout on slaves

Version 0.6.3 (Aug 5, 2010)

  • Fix for checkout/polling by labels
  • Shows changes by labels correctly
  • Still in a testing stage

Version 0.6.2 (Jul 28, 2010)

  • Initial version for checkout/polling by labels

Version 0.5 (Jul 15, 2010)

  • Increase in test coverage
  • Incorporating code from HUDSON-2879
    • includes addition of change log

Version 0.4 (July 12, 2010)

  • Update code for more recent Hudson
  • Fix for HUDSON-6881

Version 0.2 (Feb 10, 2010)

  • Update code for more recent Hudson

Version 0.1.7 (Jul 13, 2009)

  • bug fixed:distributed build

Version 0.1 (Dec 11, 2007)

  • Initial release. Checkout and polling work.

Labels:

plugin-scm plugin-scm Delete
Enter labels to add to this page:
Wait Image 
Looking for a label? Just start typing.
  1. Nov 20, 2007

    Anonymous says:

    It's worth noting in the Usage section that once you have installed the plugin (...

    It's worth noting in the Usage section that once you have installed the plugin (and ensured that the required StarTeam related JARs are in Hudson's classpath), there is no system-wide configuration for this plugin.  This confused me at first -- I went to the System Configuration page and saw a blank section for StarTeam SCM and figured it didn't have all the necessary JARs.

    Reading the Usage section more carefully now I see that it states that you configure a project to use it, but it might be worth noting that no system-wide configuration is required.

    Thanks for taking the time to make this plugin.  I've been dying to get our team off of CruiseControl for a while and Hudson may be the ticket thanks to this plugin. 

    Eric Broyles 

    1. Nov 20, 2007

      Kohsuke Kawaguchi says:

      I committed the change in CVS so as not to display a confusing empty entry in th...

      I committed the change in CVS so as not to display a confusing empty entry in the system config screen. This change will be in 0.2. Thanks for the feedback.

  2. Jan 14, 2008

    Kevin Ketchum says:

    This is looking very promising to me - however, I'm having a problem determining...

    This is looking very promising to me - however, I'm having a problem determining which StadTeam SDK files need to be put in the WEB-INF/lib directory.  I've resorted to putting all files from the in the --StarTeam SDK/lib directory into WEB-INF/lib.  I've got this setup on a Windows machine and I'm getting this error when I attempt a build:

    ================================================================= 

    started
    FATAL: null
    java.lang.ExceptionInInitializerError
    at com.borland.starteam.impl.ClientContext.<init>(ClientContext.java:119)
    at com.borland.starteam.impl.Server.<init>(Server.java:101)
    at com.starbase.starteam.Server.<init>(Server.java:274)
    at hudson.plugins.starteam.StarTeamConnection.initialize(StarTeamConnection.java:106)
    at hudson.plugins.starteam.StarTeamCheckoutActor.invoke(StarTeamCheckoutActor.java:60)
    at hudson.plugins.starteam.StarTeamCheckoutActor.invoke(StarTeamCheckoutActor.java:18)
    at hudson.FilePath.act(FilePath.java:291)
    at hudson.plugins.starteam.StarTeamSCM.checkout(StarTeamSCM.java:77)
    at hudson.model.AbstractProject.checkout(AbstractProject.java:558)
    at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:223)
    at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:189)
    at hudson.model.Run.run(Run.java:656)
    at hudson.model.Build.run(Build.java:102)
    at hudson.model.ResourceController.execute(ResourceController.java:70)
    at hudson.model.Executor.run(Executor.java:65)
    Caused by: com.borland.starteam.impl.SDKRuntimeException: The native library "Borland.StarTeam.FileAccess.dll" was not found. Please verify that the StarTeam SDK is properly installed.
    at com.borland.starteam.impl.util.NativeFileAccess.init(NativeFileAccess.java:36)
    at com.borland.starteam.impl.util.NativeFileAccess.<init>(NativeFileAccess.java:24)
    at com.borland.starteam.impl.util.Platform.<clinit>(Platform.java:68)
    ... 15 more
    Caused by: java.lang.UnsatisfiedLinkError: no Borland.StarTeam.FileAccess in java.library.path
    at java.lang.ClassLoader.loadLibrary(Unknown Source)
    at java.lang.Runtime.loadLibrary0(Unknown Source)
    at java.lang.System.loadLibrary(Unknown Source)
    at com.borland.starteam.impl.util.NativeFileAccess.init(NativeFileAccess.java:33)
    ... 17 more
    =================================================================The Borland.StarTeam.FileAccess.dll is located in the same directory as the StarTeam jar files. I wonder if I'm running a to-new version, as these are St 2006 jars and dlls.
     
    Running on 2005 or 2005R2, I get this error:
    =======================================================================
    started
    FATAL: tried to access method com.starbase.starteam.ServerInfo.<init>()V from class hudson.plugins.starteam.StarTeamConnection
    java.lang.IllegalAccessError: tried to access method com.starbase.starteam.ServerInfo.<init>()V from class hudson.plugins.starteam.StarTeamConnection
    at hudson.plugins.starteam.StarTeamConnection.<init>(StarTeamConnection.java:69)
    at hudson.plugins.starteam.StarTeamCheckoutActor.<init>(StarTeamCheckoutActor.java:44)
    at hudson.plugins.starteam.StarTeamSCM.checkout(StarTeamSCM.java:74)
    at hudson.model.AbstractProject.checkout(AbstractProject.java:558)
    at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:223)
    at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:189)
    at hudson.model.Run.run(Run.java:656)
    at hudson.model.Build.run(Build.java:102)
    at hudson.model.ResourceController.execute(ResourceController.java:70)
    at hudson.model.Executor.run(Executor.java:65)
    ========================================================================= I'd appreciate anyhelp you can give. Thanks, Kevin Ketchum

    1. Jan 14, 2008

      Kevin Ketchum says:

      Looks as if I've figured this out. If your running StarTeam 2006, you need to p...

      Looks as if I've figured this out.

      If your running StarTeam 2006, you need to put starteam90.jar into [basehudsonpath]\data\plugins\hudson-starteam-plugin\WEB-INF\lib and Borland.StarTeam.FileAccess.dll in [basehudsonpath]\lib.  Or at least that worked for me

      1. Aug 24, 2010

        Pavel Nesterenko says:

        Hi. I got the same error that described earlier. But don't have folder like Unk...

        Hi. I got the same error that described earlier. But don't have folder like

        Unknown macro: {basehudsonpath}

        \lib. Where I have to put this .dll. I tried to put it everyvere (even in system32 folder), but hot the same error. I used StarTeam 2005 R2.

        Could you please help me. Thank you!

  3. Jan 15, 2008

    Kevin Ketchum says:

    I am able to get files to check out of StarTeam when running with the plugin on ...

    I am able to get files to check out of StarTeam when running with the plugin on the master machine.

    However, when I attempt the same build on a slave machine, I get the following errors:started
    Building remotely on kdk
    FATAL: remote file operation failed
    hudson.util.IOException2: remote file operation failed
    at hudson.FilePath.act(FilePath.java:287)
    at hudson.plugins.starteam.StarTeamSCM.checkout(StarTeamSCM.java:77)
    at hudson.model.AbstractProject.checkout(AbstractProject.java:558)
    at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:223)
    at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:189)
    at hudson.model.Run.run(Run.java:656)
    at hudson.model.Build.run(Build.java:102)
    at hudson.model.ResourceController.execute(ResourceController.java:70)
    at hudson.model.Executor.run(Executor.java:65)
    Caused by: java.io.IOException: Unable to serialize hudson.FilePath$FileCallableWrapper@1ec306b
    at hudson.remoting.UserRequest.serialize(UserRequest.java:103)
    at hudson.remoting.UserRequest.<init>(UserRequest.java:37)
    at hudson.remoting.Channel.call(Channel.java:389)
    at hudson.FilePath.act(FilePath.java:284)
    ... 8 more
    Caused by: java.io.NotSerializableException: hudson.plugins.starteam.StarTeamConnection
    at java.io.ObjectOutputStream.writeObject0(Unknown Source)
    at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
    at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
    at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
    at java.io.ObjectOutputStream.writeObject0(Unknown Source)
    at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
    at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
    at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
    at java.io.ObjectOutputStream.writeObject0(Unknown Source)
    at java.io.ObjectOutputStream.writeObject(Unknown Source)
    at hudson.remoting.UserRequest.serialize(UserRequest.java:100)
    ... 11 more

    I suspect it has to do with the possibility that the StarTeam plugin is not in place on the slave.  I messed around with that possibility a bit but I didn't have much luck.   

     Does anyoine have any suggestions?

     Thanks, Kevin

    1. Apr 08, 2009

      Dave Silk says:

      Kevin - did you ever work this out?  I am setting up a slave now and this w...

      Kevin - did you ever work this out?  I am setting up a slave now and this was the first error I received.

      1. Apr 08, 2009

        Dave Silk says:

        It turns out some version of the StarTeam plugin did not have the StarTeamConnec...

        It turns out some version of the StarTeam plugin did not have the StarTeamConnection class implement Serializable.  Making this simple change fixed this error and allowed things to work on the slave host.

  4. Mar 27, 2008

    InstallGal says:

    Hello, I am wondering if there's a way to detect files that are not in view (ie...

    Hello,

    I am wondering if there's a way to detect files that are not in view (ie. files deleted from starteam but still existing on the build machine) and have them deleted during a build?

    Thanks,

    Bila 

    1. Apr 10, 2008

      Eric Broyles says:

      This would definitely be a useful feature.

      This would definitely be a useful feature.

    2. Apr 08, 2009

      Dave Silk says:

      I use a build step that runs the StarTeam command line command: stcmd delete-lo...

      I use a build step that runs the StarTeam command line command:

      stcmd delete-local -p user@starteamsvr:port/project/view/sourcefolder -fp ${WORKSPACE} -filter N -is

      Do this before running any build commands and it should work beautifully.

  5. Apr 10, 2008

    Eric Broyles says:

    Is anyone having problems with the reporting of changes by this plugin?  I ...

    Is anyone having problems with the reporting of changes by this plugin?  I was using the original 0.1 release and it never reported changes and it seemed that beyond the initial build it never even checked for changes.  The newer 0.1.6 build is now checking for changes upon each build and correctly gets them, however the Changes report for the build does not show any changes.  Is that only updated by the polling mechanism?  I think it should report changes whether they're discovered by polling or an actual build (regardless of how it is triggered).

    I want to personally thank Ilkka for this pluginas it has enabled the use of Hudson on a project that desperately needed it.

  6. Apr 10, 2008

    Kohsuke Kawaguchi says:

    Please use the issue tracker for reporting problems and filing RFEs. Comment sec...

    Please use the issue tracker for reporting problems and filing RFEs. Comment section of Wiki is for discussing about documentation.

  7. Jul 11, 2008

    Eric Broyles says:

    I've modified the StarTeam plugin to implement some basic changelog functionalit...

    I've modified the StarTeam plugin to implement some basic changelog functionality but I don't have access to the codebase so I've submitted my source code to Ilkka.  He's pretty busy, so if anyone needs it in the meantime please feel free to contact me.

    Features include:

    • Project level build changes displays the changes in each build including these details per file
      • the name of the file
      • the revision of the file after the change
      • the name of the user who changed the file
      • the commit comment for the file
    • Build level status page shows a summary of changes including the details identified above plus the time the file was changed
    • Build level changes page shows the same as above
    • Can take advantage of the Hudson post-build task to send separate emails to users who failed the build
    • Failed build emails display a summary of changes including the name of the user and the commit comment (unfortunately the file name is not shown)

    I am no longer working on a project that uses StarTeam SCM so I will likely not have occasion to update this plugin anytime soon, but this bit of information alone has proven very useful on my previous project that used StarTeam. I hope it will be helpful for anyone else out there who is using StarTeam.

    1. Apr 08, 2009

      Dave Silk says:

      Thanks to Eric for providing the changelog enhancement.  Its still not in t...

      Thanks to Eric for providing the changelog enhancement.  Its still not in the official hudson plugin but I was able to take it and make good use of it.  There are some implementation tweaks I plan to make, but overall out of the box, this worked great.

    2. May 05, 2009

      Jean-Francois Croteau says:

      Hi Eric,     I really need this, please, contact me. Jeff

      Hi Eric,

          I really need this, please, contact me.

      Jeff

  8. Sep 17, 2008

    A.D. says:

    Just spent a few hours trying to make Hudson check-out from my StarTeam server. ...

    Just spent a few hours trying to make Hudson check-out from my StarTeam server. After some trial and error I got to the point where I just don't understand the meaning of the parameter "Folder".

    Setting it to:

    empty

    /Viewname

    /Project/Viewname

    .

    /

    All return the same:started
    Couldn't find folder <one of the above here> in view <myview>
    StarTeam checkout failed
    FATAL: null
    java.lang.NullPointerException
    at hudson.plugins.starteam.StarTeamConnection.close(StarTeamConnection.java:427)
    at hudson.plugins.starteam.StarTeamCheckoutActor.dispose(StarTeamCheckoutActor.java:79)
    at hudson.plugins.starteam.StarTeamSCM.checkout(StarTeamSCM.java:84)
    at hudson.model.AbstractProject.checkout(AbstractProject.java:634)
    at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:260)
    at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:234)
    at hudson.model.Run.run(Run.java:793)
    at hudson.matrix.MatrixBuild.run(MatrixBuild.java:100)
    at hudson.model.ResourceController.execute(ResourceController.java:70)
    at hudson.model.Executor.run(Executor.java:88) ================

    I'm completely stack. Is there a location in the native starteam gui or a command line that can give me a definitive value I need to put in the "Folder" parameter? Moreover, why is it mandatory at all? I want to checkout the whole view (except maybe a folder or two).

    Any help will be appreciated. 

  9. Nov 03, 2008

    cava says:

    I have the same probleme than A.D. starteam 2006R2 starteam SDK 93 hudson 1.2...

    I have the same probleme than A.D.

    starteam 2006R2

    starteam SDK 93

    hudson 1.257

    I'm not sure about the starteam jars to add on the classpath: I've added  starteam93.jar, starteam-extensions.jar and jsafe.jar to D:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\hudson\WEB-INF\lib.

    Where can I show the defects  for starteam plugin? I didnt see any starteam subcomponent in the issue tracker?

    thanks for the help

  10. Nov 07, 2008

    Man says:

    I kept having a logon error: FATAL: com/starbase/starteam/LogonException java.l...

    I kept having a logon error:

    FATAL: com/starbase/starteam/LogonException
    java.lang.NoClassDefFoundError: com/starbase/starteam/LogonException
    at hudson.plugins.starteam.StarTeamCheckoutActor.<init>(StarTeamCheckoutActor.java:44)
    at hudson.plugins.starteam.StarTeamSCM.checkout(StarTeamSCM.java:74)
    at hudson.model.AbstractProject.checkout(AbstractProject.java:667)

    It went away when I placed the latest jar (starteam104.jar) from "C:\Program Files\Borland\StarTeam SDK 10.4\Lib" in Hudson WEB-INF (C:\apache-tomcat-6.0.18\webapps\Hudson\WEB-INF\lib)

    =================================

  11. Nov 08, 2008

    cava says:

    Ok thanks to Ilkka I've found the problem about the error: Couldn't find folder ...

    Ok thanks to Ilkka I've found the problem about the error: Couldn't find folder thefolder in view View

    First if your folderName is your viewName without /, it works because the function checks if the folder equals the view name.

    But if you want to checkout a subfolder, you have to set folder name to: view_root_folder/your_folder without ending "/"

    view_root_folder which is different than the view name. In my case it is equals to the root view name.

    1. Feb 10, 2010

      Levi Bakker says:

      But what about if I want it to check out my entire view?  view_root_folder/...

      But what about if I want it to check out my entire view?  view_root_folder/your_folder works, but I want view_root_folder to be the top level.

      UPDATED:

      So I found a decompiler and took a look at the code.  Turns out that in order to get your checkout to check out the full view, you have to put the view name as the folder name, even though the view name is not the same as the root folder name.

  12. Apr 01, 2009

    Dave Silk says:

    I seem to have found a bug where the plugin will not remove files that were dele...

    I seem to have found a bug where the plugin will not remove files that were deleted from the view in StarTeam or where refactoring happened (i.e. files moved).  The code is not proplerly handling these files.  I am submitting a bug and will attempt a fix myself.  If I can work it out sufficiently, will do what I can to make that available.  I also want to see the account password use the new capability to store it encrypted on disk and not in clear text.  Our info security folks seem to frown on that.

    Cheers,

    Dave

    1. Apr 08, 2009

      Dave Silk says:

      So it seems no one is looking at this.  A workaround is to have the first b...

      So it seems no one is looking at this.  A workaround is to have the first build step (before calling Ant or Maven) be a StarTeam command line call:

      stcmd delete-local -p user@starteamsvr:port/project/view/sourcefolder -fp ${WORKSPACE} -filter N -is

      This basically tells starteam to remove any files in the workspace that are not in the starteam repository.

  13. Apr 30, 2009

    Jean-Francois Croteau says:

    Hi everyone,    I really  need the extension that Eric Broyles d...

    Hi everyone,

       I really  need the extension that Eric Broyles did. I'm looking very much to get the changes working. Anyone has a working implementation?

    Thank you.

  14. Aug 11, 2009

    Nick Redshaw says:

    Hi Can anyone tell me if and when the enhancements made by Eric Broyles will en...

    Hi

    Can anyone tell me if and when the enhancements made by Eric Broyles will end up in the official release of the plugin?

    Thanks

  15. Nov 30, 2009

    Nick Redshaw says:

    I've taken Eric and Tim's version and fixed the memory leak associated with the ...

    I've taken Eric and Tim's version and fixed the memory leak associated with the polling actor as well as wiring up the change log check to the polling. I'll post the code to the wiki when I get a chance. If you need a quick fix to get rid of the memory leak simply comment out the finalize call inthe StarTeamConnection class.

  16. Dec 09, 2009

    Tobias W says:

    Hi, I've the same problem as Dave Silk. I want to build with a clean workspace....

    Hi,

    I've the same problem as Dave Silk. I want to build with a clean workspace. Because of the small size of my project it would be good if there would be an option to delete the workspace before every new build.

    At the moment I've created two Jobs. The first job deletes my workspace and then calls the second job which checks the project out from starteam and builds it.

    Is there any plan to implement this feature in future releases of the starteam plugin for hudson?

    1. Dec 10, 2009

      Nick Redshaw says:

      Hi I don't have any plans to touch the plugin again now that I've fixed the pol...

      Hi

      I don't have any plans to touch the plugin again now that I've fixed the polling memory leak and polling change set changed detection bug.

      Regarding your requiremet could you use  'ant clean' or 'mvn clean' depending on the build system you are using?

      Nick

  17. Dec 10, 2009

    Nick Redshaw says:

    I've attached the Java source containing the modifications that I made to fix th...

    I've attached the Java source containing the modifications that I made to fix the memory leak and the bug which prevented polling from detecting changes in the change set. I've only zipped up the Java source files here so you'll need to drop these into Eric or Tim's maven project in order to build it.

    Incidently the memory leak was inside the Borland API classes not the plugin code.

  18. Dec 23, 2009

    Eyal Edri says:

    Error running starteam plugin: i've setup the plugin according to he instructio...

    Error running starteam plugin:

    i've setup the plugin according to he instructions:

    • install the starteam.hpi
    • untarred StarTeam SDK 2009 to /var/lib/hudson/plugins/starteam/WEB-INF/lib/sdk
    • install (via gui) the StarTeam Extensions and linked it to /var/lib/hudson/plugins/starteam/WEB-INF/lib/sdk/StarFlow Extensions -> /root/StarFlow Extensions/
    • didnt find where to get jsafe
    • added /var/lib/hudson to CLASSPATH: export CLASSPATH=/usr/java/jdk1.6.0_16/lib:/usr/java/sqljdbc_2.0/enu/:/usr/lib/ctch/java:/var/lib/hudson
    • configured a test build

    all my builds are failing with the following error:

    Started by user anonymous
    FATAL: com/starbase/starteam/DuplicateServerListEntryException
    java.lang.NoClassDefFoundError: com/starbase/starteam/DuplicateServerListEntryException
    at hudson.plugins.starteam.StarTeamCheckoutActor.invoke(StarTeamCheckoutActor.java:67)
    at hudson.plugins.starteam.StarTeamCheckoutActor.invoke(StarTeamCheckoutActor.java:18)
    at hudson.FilePath.act(FilePath.java:676)
    at hudson.FilePath.act(FilePath.java:660)
    at hudson.plugins.starteam.StarTeamSCM.checkout(StarTeamSCM.java:72)
    at hudson.model.AbstractProject.checkout(AbstractProject.java:1013)
    at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:486)
    at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:412)
    at hudson.model.Run.run(Run.java:1179)
    at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:304)
    at hudson.model.ResourceController.execute(ResourceController.java:88)
    at hudson.model.Executor.run(Executor.java:122)
    Caused by: java.lang.ClassNotFoundException: com.starbase.starteam.DuplicateServerListEntryException
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
    ... 12 more

    any idea what i'm missing?

    1. Dec 23, 2009

      Nick Redshaw says:

      Hi Looking at your stack trace you're missing the DuplicateServerListEntryExcep...

      Hi

      Looking at your stack trace you're missing the DuplicateServerListEntryException class. You need to copy the starteam jar to the Hudson classpath. I put my starteam93.jar in <TOMCAT_HOME>/webapps/hudson/WEB-INF/lib

      Note your starteam jar may have a different number in it filename.

      Generally speaking I'd advise everyone to stay away from starteam and use Subversion or Git instead.

      Cheers,

      Nick

      1. Dec 23, 2009

        Eyal Edri says:

        i wish i could replace starteam.. it's giving me quite a headace... after putin...

        i wish i could replace starteam.. it's giving me quite a headace...

        after puting these jar in /var/lib/hudson/plugins/starteam/WEB-INF/lib/: (with starteam110.jar)

        -rwxr-xr-x 1 root root 1013286 2009-12-23 15:19 admintool.jar
        -rwxr-xr-x 1 root root   36068 2009-12-23 15:19 cpc-extensions-1.0.1.jar
        -rwxr-xr-x 1 root root  265213 2009-12-23 15:19 guicomponents.jar
        -rwxr-xr-x 1 root root  114580 2009-12-23 15:19 java-icons.jar
        drwxrwxrwx 4 root root    4096 2009-06-17 02:42 native
        drwxrwxrwx 8 root root    4096 2009-06-17 02:42 sdk
        -rwx------ 1 root root  210572 2009-06-17 02:40 ss.jar
        -rwxr-xr-x 1 root root  395291 2009-12-23 15:19 starflow-extensions.jar
        -rwxrwxrwx 1 root root 2856038 2009-06-17 02:41 starteam110.jar
        -rwxrwxrwx 1 root root  396415 2009-06-17 02:40 starteam110-resources.jar
        -rwxr-xr-x 1 root root  793259 2009-12-23 15:18 starteam-extensions.jar
        -rwxr-xr-x 1 root root 2232566 2009-12-23 15:19 starteam-gui.jar
        -rwxr-xr-x 1 root root  594073 2009-12-23 15:19 streplicate.jar
        -rwx------ 1 root root 2420388 2009-06-17 02:40 swingall.jar
        -rwxr-xr-x 1 root root   24881 2009-12-23 15:19 tool.jar
        -rwxr-xr-x 1 root root   12834 2009-12-23 15:19 toollocator.jar

        i get the following error:Started by user anonymous
        FATAL: com/starbase/starteam/LogonException
        java.lang.NoClassDefFoundError: com/starbase/starteam/LogonException
        at hudson.plugins.starteam.StarTeamCheckoutActor.<init>(StarTeamCheckoutActor.java:44)
        at hudson.plugins.starteam.StarTeamSCM.checkout(StarTeamSCM.java:74)
        at hudson.model.AbstractProject.checkout(AbstractProject.java:1013)
        at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:486)
        at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:412)
        at hudson.model.Run.run(Run.java:1179)
        at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:304)
        at hudson.model.ResourceController.execute(ResourceController.java:88)
        at hudson.model.Executor.run(Executor.java:122)
        Caused by: java.lang.ClassNotFoundException: com.starbase.starteam.LogonException
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
        ... 9 more

        i'm using a valid user/pass since i can login via a starteam client...

        i'm lost here...

        i'm using latest plugin ver and starteam 2009.

        1. Dec 23, 2009

          Nick Redshaw says:

          Is the LogonException class in the starteam jar that you've deployed? Have you ...

          Is the LogonException class in the starteam jar that you've deployed?

          Have you re-started Tomcat?

          Nick

          1. Dec 23, 2009

            Eyal Edri says:

            i restared hudson (don't use tomcat), i installed hudson via yum. i check the s...

            i restared hudson (don't use tomcat), i installed hudson via yum.

            i check the starteam110.jar and it does contain the LogonException.clas:

            #[lib] ll com/starbase/starteam/LogonException.class
            -rw-r-r- 1 root root 1331 2009-06-16 16:41 com/starbase/starteam/LogonException.class

            i'm attaching screenshots of the hudson configuraton, hopefully it will assist... :(

  19. Dec 23, 2009

    Nick Redshaw says:

    You need to find a way of getting the startteam jar onto Hudson's classpath. You...

    You need to find a way of getting the startteam jar onto Hudson's classpath. You could do this with the -cp switch on the java command if you're launching it that way

    something like this maybe

    java -cp starteam.jar hudson.war

    More details here http://java.sun.com/j2se/1.3/docs/tooldocs/win32/classpath.html

    Nick

  20. Jan 04, 2010

    Piyusa Panda says:

    Hi, I want to checkout multiple folders from the starteam. But in the Source C...

    Hi,

    I want to checkout multiple folders from the starteam. But in the Source Code Management section of this plugin i am able to just specify a single folder name. How can i checkout multiple folders? Does anyone have any inputs?

    1. Jan 11, 2011

      Ilya Furmanov says:

      Hey, Anyone got any update here? Is it possible to checkout multuple views for a...

      Hey,
      Anyone got any update here? Is it possible to checkout multuple views for a single build?

      1. Jan 11, 2011

        Jan Ruzicka says:

        It isn't possible to checkout multiple views within a single build at this time....

        It isn't possible to checkout multiple views within a single build at this time.

        It also isn't possible to checkout multiple folder roots within a single build at this time.

        There are some suggested within HUDSON-2879 with additional folders ... they were not folded to the trunk.

        They are also in SVN branches/starteam-0.3-SNAPSHOT ...

        I was planning to work on that after bringing the Starteam plugin up to date on SCM interface.

        My issue was interface inconsistency and how would the multiple views/folders tie into SCM history.

        ... don't have time to work on this project now :-( ... help is welcome ....

  21. Mar 16, 2010

    ju cheng says:

    I have copyed 2006 SDK libs into war\WEB-INF\lib, and also update the classpath....

    I have copyed 2006 SDK libs into war\WEB-INF\lib, and also update the classpath. Then I got errors like this:

    FATAL: null

    java.lang.ExceptionInInitializerError
    at com.borland.starteam.impl.ClientContext.<init>(ClientContext.java:119)
    at com.borland.starteam.impl.Server.<init>(Server.java:103)
    at com.starbase.starteam.Server.<init>(Server.java:274)
    at hudson.plugins.starteam.StarTeamConnection.initialize(StarTeamConnection.java:122)
    at hudson.plugins.starteam.StarTeamCheckoutActor.invoke(StarTeamCheckoutActor.java:71)
    at hudson.plugins.starteam.StarTeamCheckoutActor.invoke(StarTeamCheckoutActor.java:18)
    at hudson.FilePath.act(FilePath.java:747)
    at hudson.FilePath.act(FilePath.java:729)
    at hudson.plugins.starteam.StarTeamSCM.checkout(StarTeamSCM.java:74)
    at hudson.model.AbstractProject.checkout(AbstractProject.java:1040)
    at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:479)
    at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:411)
    at hudson.model.Run.run(Run.java:1240)
    at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
    at hudson.model.ResourceController.execute(ResourceController.java:88)
    at hudson.model.Executor.run(Executor.java:122)
    Caused by: com.borland.starteam.impl.SDKRuntimeException: The native library "Borland.StarTeam.FileAccess.dll" was not found. Please verify that the StarTeam SDK is properly installed.
    at com.borland.starteam.impl.util.NativeFileAccess.init(NativeFileAccess.java:36)
    at com.borland.starteam.impl.util.NativeFileAccess.<init>(NativeFileAccess.java:24)
    at com.borland.starteam.impl.util.Platform.<clinit>(Platform.java:68)
    ... 16 more

    Caused by: java.lang.UnsatisfiedLinkError: C:\Program Files (x86)\Borland\StarTeam SDK 2006\Lib\Borland.StarTeam.FileAccess.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform

    at java.lang.ClassLoader$NativeLibrary.load(Native Method)

    at java.lang.ClassLoader.loadLibrary0(Unknown Source)

    at java.lang.ClassLoader.loadLibrary(Unknown Source)

    at java.lang.Runtime.loadLibrary0(Unknown Source)

    at java.lang.System.loadLibrary(Unknown Source)

    at com.borland.starteam.impl.util.NativeFileAccess.init(NativeFileAccess.java:33)

    ... 18 more

    Then click build again, the error changes to this:

    FATAL: Could not initialize class com.borland.starteam.impl.util.Platform

    java.lang.NoClassDefFoundError: Could not initialize class com.borland.starteam.impl.util.Platform
    at com.borland.starteam.impl.ClientContext.<init>(ClientContext.java:119)
    at com.borland.starteam.impl.Server.<init>(Server.java:103)
    at com.starbase.starteam.Server.<init>(Server.java:274)
    at hudson.plugins.starteam.StarTeamConnection.initialize(StarTeamConnection.java:122)
    at hudson.plugins.starteam.StarTeamCheckoutActor.invoke(StarTeamCheckoutActor.java:71)
    at hudson.plugins.starteam.StarTeamCheckoutActor.invoke(StarTeamCheckoutActor.java:18)
    at hudson.FilePath.act(FilePath.java:747)
    at hudson.FilePath.act(FilePath.java:729)
    at hudson.plugins.starteam.StarTeamSCM.checkout(StarTeamSCM.java:74)
    at hudson.model.AbstractProject.checkout(AbstractProject.java:1040)
    at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:479)
    at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:411)
    at hudson.model.Run.run(Run.java:1240)
    at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
    at hudson.model.ResourceController.execute(ResourceController.java:88)
    at hudson.model.Executor.run(Executor.java:122)

    Does anyone have suggestions?

    here is my system properties

    awt.toolkit sun.awt.windows.WToolkit
    executable-war D:\ci\hudson.war
    file.encoding GBK
    file.encoding.pkg sun.io
    file.separator \
    hudson.diyChunking true
    HUDSON_HOME data
    java.awt.graphicsenv sun.awt.Win32GraphicsEnvironment
    java.awt.headless true
    java.awt.printerjob sun.awt.windows.WPrinterJob
    java.class.path .\hudson.war
    java.class.version 50.0
    java.endorsed.dirs C:\Program Files\Java\jre6\lib\endorsed
    java.ext.dirs C:\Program Files\Java\jre6\lib\ext;C:\Windows\Sun\Java\lib\ext
    java.home C:\Program Files\Java\jre6
    java.io.tmpdir C:\Users\smith\AppData\Local\Temp\
    java.library.path C:\Windows\system32;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;%SystemRoot%\system32\WindowsPowerShell\v1.0\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;D:\prog\Python26;D:\prog\Ruby19\bin;D:\prog\MinGW\bin;D:\prog\GunWin32\bin;D:\prog\grep\bin;D:\prog\vim72;C:\Program Files (x86)\Gemplus\GemSafe Libraries\BIN\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn;C:\Program Files (x86)\Java\jre6\bin;D:\prog\TortoiseSVN\bin;C:\Program Files (x86)\Common Files\Thunder Network\KanKan\Codecs;C:\Program Files (x86)\Borland\StarTeam SDK 2006\Lib;C:\Program Files (x86)\Borland\StarTeam SDK 2006\Bin;D:\prog\ActiveState Komodo Edit 5\;C:\Program Files (x86)\Haskell\bin;E:\prog\ghc\ghc-6.10.4\bin;D:\proj\google\gae\C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin;D:\prog\Mono-2.4.2.3\bin;C:\Program Files (x86)\Borland\StarTeam 2005;C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE;D:\proj\npp;D:\prog\Ruby19\bin;D:\prog\Python26\Scripts;D:\prog\ironruby\bin;D:\prog\ironpython;D:\prog\OpenXmlViewer\Cmd;D:\proj\dlr\sdl-sdk\bin;D:\prog\sysinternal;
    java.runtime.name Java(TM) SE Runtime Environment
    java.runtime.version 1.6.0_16-b01
    java.specification.name Java Platform API Specification
    java.specification.vendor Sun Microsystems Inc.
    java.specification.version 1.6
    java.vendor Sun Microsystems Inc.
    java.vendor.url http://java.sun.com/
    java.vendor.url.bug http://java.sun.com/cgi-bin/bugreport.cgi
    java.version 1.6.0_16
    java.vm.info mixed mode
    java.vm.name Java HotSpot(TM) 64-Bit Server VM
    java.vm.specification.name Java Virtual Machine Specification
    java.vm.specification.vendor Sun Microsystems Inc.
    java.vm.specification.version 1.0
    java.vm.vendor Sun Microsystems Inc.
    java.vm.version 14.2-b01
    line.separator
    os.arch amd64
    os.name Windows 7
    os.version 6.1
    path.separator ;
    sun.arch.data.model 64
    sun.boot.class.path C:\Program Files\Java\jre6\lib\resources.jar;C:\Program Files\Java\jre6\lib\rt.jar;C:\Program Files\Java\jre6\lib\sunrsasign.jar;C:\Program Files\Java\jre6\lib\jsse.jar;C:\Program Files\Java\jre6\lib\jce.jar;C:\Program Files\Java\jre6\lib\charsets.jar;C:\Program Files\Java\jre6\classes
    sun.boot.library.path C:\Program Files\Java\jre6\bin
    sun.cpu.endian little
    sun.cpu.isalist amd64
    sun.desktop windows
    sun.io.unicode.encoding UnicodeLittle
    sun.java.launcher SUN_STANDARD
    sun.jnu.encoding GBK
    sun.management.compiler HotSpot 64-Bit Server Compiler
    sun.os.patch.level
    svnkit.ssh2.persistent false
    user.country CN
    user.dir D:\ci
    user.home C:\Users\smith
    user.language zh
    user.name smith
    user.timezone Asia/Shanghai
    user.variant
    Environment Variables
    Name ↓ Value
    =:: ::\
    =D: D:\ci
    ALLUSERSPROFILE C:\ProgramData
    APPDATA C:\Users\smith\AppData\Roaming
    CLASSPATH .;C:\Program Files\Java\jdk1.6.0_16\jre\lib;C:\Program Files\Java\jdk1.6.0_16\lib\tools.jar;C:\Program Files (x86)\Borland\StarTeam SDK 2006\Lib;C:\Program Files (x86)\Borland\StarTeam SDK 2006\bin;
    COMPUTERNAME SMITH-PC
    ComSpec C:\Windows\system32\cmd.exe
    CommonProgramFiles C:\Program Files\Common Files
    CommonProgramFiles(x86) C:\Program Files (x86)\Common Files
    CommonProgramW6432 C:\Program Files\Common Files
    ERLANG_HOME D:\prog\erl5.7.4
    ERRORLOGPATH C:\Program Files\WIN7TS\Logging
    FP_NO_HOST_CHECK NO
    GTK_BASEPATH C:\Program Files (x86)\GtkSharp\2.12\
    HOME D:\me
    HOMEDRIVE C:
    HOMEPATH \Users\smith
    LANG en_EN
    LOCALAPPDATA C:\Users\smith\AppData\Local
    LOGONSERVER
    SMITH-PC
    NLOG_GLOBAL_CONFIG_FILE C:\Program Files\WIN7TS\AverIdLog.config
    NUMBER_OF_PROCESSORS 2
    OS Windows_NT
    PATHEXT .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.RB;.RBW
    PROCESSOR_ARCHITECTURE AMD64
    PROCESSOR_IDENTIFIER Intel64 Family 6 Model 23 Stepping 6, GenuineIntel
    PROCESSOR_LEVEL 6
    PROCESSOR_REVISION 1706
    PROMPT $P$G
    PSModulePath C:\Users\smith\Documents\WindowsPowerShell\Modules;C:\Windows\system32\WindowsPowerShell\v1.0\Modules\
    PUBLIC C:\Users\Public
    PYTHONPATH D:\proj\python;
    Path %SystemRoot%\system32\WindowsPowerShell\v1.0\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;D:\prog\Python26;D:\prog\Ruby19\bin;D:\prog\MinGW\bin;D:\prog\GunWin32\bin;D:\prog\grep\bin;D:\prog\vim72;C:\Program Files (x86)\Gemplus\GemSafe Libraries\BIN\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn;C:\Program Files (x86)\Java\jre6\bin;D:\prog\TortoiseSVN\bin;C:\Program Files (x86)\Common Files\Thunder Network\KanKan\Codecs;C:\Program Files (x86)\Borland\StarTeam SDK 2006\Lib;C:\Program Files (x86)\Borland\StarTeam SDK 2006\Bin;D:\prog\ActiveState Komodo Edit 5\;C:\Program Files (x86)\Haskell\bin;E:\prog\ghc\ghc-6.10.4\bin;D:\proj\google\gae\C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin;D:\prog\Mono-2.4.2.3\bin;C:\Program Files (x86)\Borland\StarTeam 2005;C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE;D:\proj\npp;D:\prog\Ruby19\bin;D:\prog\Python26\Scripts;D:\prog\ironruby\bin;D:\prog\ironpython;D:\prog\OpenXmlViewer\Cmd;D:\proj\dlr\sdl-sdk\bin;D:\prog\sysinternal;
    ProgramData C:\ProgramData
    ProgramFiles C:\Program Files
    ProgramFiles(x86) C:\Program Files (x86)
    ProgramW6432 C:\Program Files
    RABBITMQ_BASE D:\data\rabbitmq
    ROOT d:\
    RUBYOPT -rubygems
    SESSIONNAME Console
    StarTeamApp C:\Program Files (x86)\Borland\StarTeam 2005
    SystemDrive C:
    SystemRoot C:\Windows
    TEMP C:\Users\smith\AppData\Local\Temp
    TMP C:\Users\smith\AppData\Local\Temp
    TVT C:\Program Files (x86)\Lenovo
    USERDOMAIN smith-PC
    USERNAME smith
    USERPROFILE C:\Users\smith
    VS90COMNTOOLS C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\Tools\
    windir C:\Windows

  22. Jun 09, 2010

    Jasper Vandaele says:

    The unofficial version of this plugin is very nice. We have now a list of all fi...

    The unofficial version of this plugin is very nice. We have now a list of all files that were changed since the last build. Big up to those making this possible!
    But, just like our clients, we always want more For some reason, the mail notifier does not find the users that broke a build. If I put a fixed list of email addresses, the mail is send, but without any information of the last changes in it.
    I have 2 questions:
    1) Does anyone know if this just doesn't work (so I don't have to search any further)?
    2) If it should work, is there a way to have more logging about the mailing process?

    Thanks

    1. Oct 27, 2010

      Rob Wissmann says:

      When I build the plugin I get this error message, which may be instructive for y...

      When I build the plugin I get this error message, which may be instructive for you:

      Computing change set WARNING: Looks like this user does not have the permission to access UserAccounts on the StarTeam Server!
      WARNING: Please contact your administrator and ask to be given the permission "Administer User Accounts" on the server.
      WARNING: Defaulting to just using User Full Names which breaks the ability to send email to the individuals who break the build in Hudson!

      1. Nov 01, 2010

        Jan Ruzicka says:

        The issue is two fold. 1) e-mail is expected to be read from te StarTeam server...

        The issue is two fold.

        1) e-mail is expected to be read from te StarTeam server setup.
                (user checking out project source code needs to be account administrator and administrator has to set the e-mails correctly for all StarTeam users).

        2) in case the 1) fails, default name is constructed as first letter of firstname concatenated with lastname

        StarTeamConnection.getUsername()

        The warning is from 1) failing.

  23. Jul 18, 2011

    Sandeepkumar says:

    I want to check out multiple folders from starteam. Is this functionality availa...

    I want to check out multiple folders from starteam. Is this functionality available in any version? I was not able to find it and though to modify the code.

    But I came across http://issues.hudson-ci.org/browse/HUDSON-2879 This link specifies that the multi-folder checkout functionality is available. But when I took code from that link, it is not building up properly. Is this code merged back into main source code and all latest releases are taken care?

    Also from where I can get the latest Starteam Plug-in source code?

  24. Feb 08, 2012

    Lee Fox says:

    I just downloaded the latest version of Jenkins, 1.450. I've installed the late...

    I just downloaded the latest version of Jenkins, 1.450. I've installed the latest version of the StarTeam plugin, v 0.6.7. After trying to configure a job to pull source code from StarTeam, I ran across a NoClassDefFoundError calling for com/starbase/starteam/Folder. Seems like a fairly common issue according to Google and the issue was easy to resolve...by reading the plugin instructions and including the StarTeam jars in the right place. However, it's still not fixed. I just noticed, though, that the plugin is looking for com/starbase/starteam/Folder. When I look at my starteam jars, I see that Folder is com/starteam/Folder.

    So, I think I've got a versioning issue. What version of StarTeam is the plugin compatible with?

    I've got jar files for versions 12.0 and 11.36 of StarTeam.