Skip to end of metadata
Go to start of metadata

Version 1.0.0.59 of the StarTeam Jenkins plugin, released on December 12, 2018, may be obtained from MicroFocus Customer Support and/or from MicroFocus Supportline (supportline.microfocus.com).

This version of the plugin is distributed as part of the StarTeam SDK build version 16.0.3.56 or later. (StarTeam SDK 16.3 HF5). 

The plugin requires SDK 16.0.3.56 (or later) to be installed. It is not supported by earlier versions of the SDK, but runs successfully against all StarTeam Server versions 12.x to 16.x. 

The plugin is no longer available standalone from the microfocus community. Please visit the Microfocus Community Forum to find out more

Version 1.0.0.35 of the StarTeam Jenkins plugin, released on October 3, 2018, may be obtained from MicroFocus Customer Support and/or from MicroFocus Supportline (supportline.microfocus.com).

This version of the plugin is distributed as part of the StarTeam SDK build version 16.0.3.47 or later. (StarTeam SDK 16.3 HF3). 

The plugin requires SDK 16.0.3.47 (or later) to be installed. It is not supported by earlier versions of the SDK, but runs successfully against all StarTeam Server versions 12.x to 16.x. 

The plugin is no longer available standalone from the microfocus community. Please visit the Microfocus Community Forum to find out more

https://community.microfocus.com/borland/managetrack/starteam/m/mediagallery/472

https://community.microfocus.com/borland/managetrack/starteam/f/starteam_sdk/10739/sdk-16-0-3-47-cpc-16-0-3-99


Version 1.0.0.34 of the StarTeam Jenkins plugin, released on August 20, 2018, may be obtained from MicroFocus Customer Support and/or from MicroFocus Supportline (supportline.microfocus.com).

This version of the plugin is distributed as part of the StarTeam SDK build version 16.0.3.40 or later. (StarTeam SDK 16.3 HF2). 

The plugin requires SDK 16.0.3.40 (or later) to be installed. It is not supported by earlier versions of the SDK, but runs successfully against all StarTeam Server versions 12.x to 16.x. 

The plugin is no longer available standalone from the microfocus community. Please visit the Microfocus Community Forum to find out more

https://community.microfocus.com/borland/managetrack/starteam/m/mediagallery/472

https://community.microfocus.com/borland/managetrack/starteam/f/starteam_sdk/10739/sdk-16-0-3-40-cpc-16-0-3-89


Version 0.9.0.8 of the StarTeam Jenkins plugin, released in May 2017, may be obtained from MicroFocus Customer Support.

Please visit the MicroFocus Community Forum to find out more.  

http://community.microfocus.com/borland/managetrack/starteam/m/mediagallery/373

Please note that the release versions of the plugin (0.6.13 or earlier) as well as the open source code in the jenkins git archives are not endorsed, maintained or supported by MicroFocus.

The MicroFocus plugin is closed source maintained by StarTeam engineering and supported by MicroFocus Customer Support.

It uses the 'newer' com.starteam SDK namespace and has been fully tested against the 14.4, 15.1 & 16.x StarTeam servers, with corresponding SDK's available at MicroFocus Supportline. (https://supportline.microfocus.com/)

Summary

This plugin integrates Jenkins with StarTeam, a Borland (MicroFocus0 cross-platform SCM solution.The plugin allows a jenkins project to be associated with a given StarTeam folder, in a given view and project.

Plugin Information

View StarTeam on the plugin site for more information.

The plugin currently supports the following:

  • Checkout
  • Polling
  • Distributed Jenkins
  • Labeling support

Original author: Ilkka Laukkanen

Currently maintained by MicroFocus StarTeam R&D

Requirements

The plugin requires the StarTeam SDK libraries in Jenkin's classpath. These files are included in the StarTeam SDK installers which may be downloaded from Borland (Micro Focus)  support line, and may be installed by e.g. dropping them in Jenkin's WEB-INF/lib directory.

Notes

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

Usage (v.1.0.0.59)

The version of the plugin supports polling multiple pipe lining. Builds are triggered if the checked in file changes are attached to or detached from the label, or have changed at the tip since the last build. 

Building and Passing Unit Tests

* To build the code currently checked into Github, please see the project README.  You will need to download the 11.0 SDK jars files from (Borland) MicroFocus Supportline and configure your maven settings. Please bear in mind that this code uses an old, unsupported SDK, with deprecated api's.

* On the other hand, a pre-packaged, closed source, jenkins plugin using the 16.3 HF2+ SDK, (and distributed with it)  may be obtained from (Borland) MicroFocus Customer Support or the MicroFocus Support Line.

Version History

Version 1.0.0.59 (December 2018)

  • Support polling multiple pipelines, 

Version 1.0.0.35 (October 2018)

  • Ignore changes (file checkins) caused by excluded (e.g. build) users, 
  • plugin does not crash if not generating changelog, 

Version 1.0.0.34 (August 2018)

  • Full support for pipe lining, 
  • checkouts from rolled back configurations (historical snapshots) based on labels or promotion states, 
  • builds triggered if files are attached to or detached from labels.
  • incremental workspace updates on change
  • checks for changes since last build.
  • optional use of cache agent for optimized file checkouts

Version 0.9.0.8 (May 2017)

  • Builds are only triggered if the checked in file changes are attached to the label. 

Version 0.9.0.4 (March 2017)

  • Checkout by label is now fully supported 

Version 0.9.0.1 (November 2016)

  • An option to create empty folders (i.e. folders without files in them) is now supported 

Version 0.8.2 (September 2016)

  • Sub folder checkouts are now supported
  • Parameterized Query Values are now supported 

Version 0.7.2 (June 2015)

  • The latest release plugin may be obtained from Borland/MicroFocus Customer Support or StarTeam R&D Engineering
  • The latest supported version of the StarTeam SDK may be downloaded from MicroFocus Supportline 
  • The plugin has been tested using SDK version 14.0.4.50 against Jenkins version 1.568. It will not work using 13.0 or older SDK versions.

Version 0.6.11 (May 21, 2013)

  • Allow a build label to be created and then checked out.
  • Allow StarTeam NetMonitor logging based on st.netmon.out system property
  • Some optimizations

Version 0.6.10 (February 15, 2013)

  • Fix author in the change log

Version 0.6.9 (December 12, 2012)

  • Fix checkout by labels
  • Allow polling on slave

Version 0.6.8 (July 18, 2012)

  • Explicit License update
  • Added ClientAppplication information for ST server (Thanks pauldawg)

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 JENKINS-2879
  • includes addition of change log

Version 0.4 (July 12, 2010)

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.

50 Comments

  1. Anonymous

    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. 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. 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. 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. Unknown User (aganemon)

        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. 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. Unknown User (dsilk@verisign.com)

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

      1. Unknown User (dsilk@verisign.com)

        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. Unknown User (bilabee)

    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. Unknown User (ebroyles)

      This would definitely be a useful feature.

    2. Unknown User (dsilk@verisign.com)

      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. Unknown User (ebroyles)

    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. Please use the issue tracker for reporting problems and filing RFEs. Comment section of Wiki is for discussing about documentation.

  7. Unknown User (ebroyles)

    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. Unknown User (dsilk@verisign.com)

      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. Unknown User (j.croteau@cgi.com)

      Hi Eric,

          I really need this, please, contact me.

      Jeff

  8. Unknown User (linuxn@hotmail.com)

    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. Unknown User (capitaine.banane@gmail.com)

    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. 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. Unknown User (capitaine.banane@gmail.com)

    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. Unknown User (bakkeld)

      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. Unknown User (dsilk@verisign.com)

    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. Unknown User (dsilk@verisign.com)

      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. Unknown User (j.croteau@cgi.com)

    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. 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. Unknown User (retroredge)

    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. 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. Unknown User (retroredge)

      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. Unknown User (retroredge)

    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. Unknown User (eyal.edri@gmail.com)

    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 (sad)
    • 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. Unknown User (retroredge)

      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. Unknown User (eyal.edri@gmail.com)

        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. Unknown User (retroredge)

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

          Have you re-started Tomcat?

          Nick

          1. Unknown User (eyal.edri@gmail.com)

            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. Unknown User (retroredge)

    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. 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. Unknown User (furious)

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

      1. 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 JENKINS-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. Unknown User (wolvever@hotmail.com)

    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. Unknown User (jazzper)

    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 (smile) 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. 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. 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. Hi,

    This plugin is compatible with an instance of Hudson 3.0.0? The version available on the Hudson Manager is 0.6.8, which is no longer supported.

    Tanks.

  24. Hi,

        I’m a user of Jenkins. Our SCM Tool is Starteam. Nice to get your plugin “starteam-plugin”  to help us getting source code easily. However, when we use this plugin, we get into trouble in some particular situation. If we set libel name that is a revision  label in Starteam, it report error (see the attached “error”image) .if the  label name is just a view  label , it will checkout the correct source code.

        Now, we don’t have the development environment of Mavent . We need your help to solve this problem.

        Look forward to your reply

    Sincerely

                 My Email:42640211@qq.com

    Error image

  25. Hi

    Would you please help me describe on how to set the label of StarTeam from this plugin? I intent to set the build time as the label and also tried something like jenkins-%

    Unknown macro: {x}

    but looked like the BUILD_ID could not be identified at all...

    would you please show me any hints?

    THanks

  26. Hi,
        Does it support `Pipeline` ?

        When I use  `Snippet Generator ` to  generate `checkout` code, But it cannot generate correctly.

    So , I'm not sure how to use it in `pipeline`

    Starteam-plugin Version 0.6.13. 

    Jenkins Version 2.89.3

     

    Thanks~

  27. Hullo Cheng JingTao,

     the versions of the plugin (0.6.13 or earlier) as well as the open source code in the jenkins git archives are not endorsed, maintained or supported by MicroFocus.

    The latest supported version of the plugin is 0.9.0.8, which may be downloaded from the Microfocus Community Forum.

    https://community.microfocus.com/borland/managetrack/starteam/

     

    It is a closed source solution, which requires the latest supported StarTeam SDK obtained through MicroFocus supportline

    (https://supportline.microfocus.com/)

    The 0.9.0.8 version of the plugin is fully maintained and supported by Microfocus R&D engineering.

    Take care

    Anil

     

     

    1. Thanks for your apply.

      I  tried the latest version (0.9.0.8) that download from Microfocus Community Forum. it works well. 

      Thank you  so much ~

       

  28. Good Morning,

    Jenkins plugin v 1.0.0.34 is now available from microfocus supportline, distributed as part of the StarTeam SDK 16.0.3.40 (16.3 HF2)

    The plugin cannot use any older version of the SDK. However, SDK version 16.0.3.40 supports all versions of the StarTeam Server from 12.5 to 16.3.

    Please visit the MicroFocus Community Forum or contact MicroFocus Support for further details.

    Take care

    Anil Peres-da-Silva

  29. Good Morning,

    Jenkins plugin v 1.0.0.59 is now available from microfocus supportline, distributed as part of the StarTeam SDK 16.0.3.56 (16.3 HF5)

    The plugin cannot use any older version of the SDK. However, SDK version 16.0.3.56 supports all versions of the StarTeam Server from 12.5 to 16.3.

    Please visit the MicroFocus Community Forum or contact MicroFocus Support for further details.

    Take care

    Anil Peres-da-Silva