Skip to content

Jenkins:Windows Server R2 2008 x64:StarTeam

October 20, 2011

Here is main points how install and configure Jenkins on Windows Server R2 2008 x64 and how to configure Borland StarTeam plugin for it .

Installation

1. Install Java x64

2. Define JAVA_HOME and JRE_HOME environment variables for installed Java (e.g. C:\Program Files\Java\jre6\bin and C:\Program Files\Java\jre6 correspondently)

3. Download Apache Tomcat and unzip to the root of system volume (e.g. C:\Tomcat)

4. Download Jenkins.war and place it to Tomcat webapps folder (e.g. C:\Tomcat\webapps)

5. Launch Tomcat (startup.bat) and wait for Jenkins to be installed

6. By default Tomcat launches on localhost:8080. Navigate to localhost:8080/jenkins/pluginManager/available throw Configuration and add StarTeam plugin. Restart Jenkins

Configuration

1. Create New job and select Borland StarTeam in Source Code Management block

2. Configure it properly for your StarTeam Server (e.g. see figure 1)

3. Save and before you can build job you need to copy Borland StarTeam SDK  lib folder for x64 (if you copy x86 there will be FATAL error and plugin will not be able to work with SDK) into Jenkins StarTeam WEB-INF folder (e.g.  C:\Program Files\Borland\Start Team SDK 11.0\lib folder content into C:\Users\%user%\.jenkins\plugins\starteam\WEB-INF\lib )

Faced issues:

1. Improper SDK (I used x64 for x86 Jenkins so it cause errors)

2. Installed Jenkins as windows service

3. Be sure to have the following file list:

4. It seems you need to run StarTeam Cross platform client to init connection for Jenkins plugin (otherwise you’ll get:

</pre>
Started by user anonymous
 FATAL: com/starbase/starteam/Folder
 java.lang.NoClassDefFoundError: com/starbase/starteam/Folder
 at hudson.plugins.starteam.StarTeamSCM.checkout(StarTeamSCM.java:127)
 at hudson.model.AbstractProject.checkout(AbstractProject.java:1193)
 at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:567)
 at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:455)
 at hudson.model.Run.run(Run.java:1404)
 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
 at hudson.model.ResourceController.execute(ResourceController.java:88)
 at hudson.model.Executor.run(Executor.java:230)
 Caused by: java.lang.ClassNotFoundException: com.starbase.starteam.Folder
 at java.net.URLClassLoader$1.run(Unknown Source)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(Unknown Source)
 at java.lang.ClassLoader.loadClass(Unknown Source)
 at java.lang.ClassLoader.loadClass(Unknown Source)
 … 8 more
<pre>
Advertisements

From → CI, Jenkins

3 Comments
  1. Started by user anonymous
    FATAL: com/starbase/starteam/Folder
    java.lang.NoClassDefFoundError: com/starbase/starteam/Folder
    at hudson.plugins.starteam.StarTeamSCM.checkout(StarTeamSCM.java:127)
    at hudson.model.AbstractProject.checkout(AbstractProject.java:1193)
    at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:567)
    at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:455)
    at hudson.model.Run.run(Run.java:1404)
    at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
    at hudson.model.ResourceController.execute(ResourceController.java:88)
    at hudson.model.Executor.run(Executor.java:230)
    Caused by: java.lang.ClassNotFoundException: com.starbase.starteam.Folder
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    … 8 more

  2. @Rod permalink

    You mentioned to copy the “Borland StarTeam SDK lib folder for x64” from the SDK 11.0, but there is only an x86 version for that version of the SDK. x64 SDK versions came out only with SDK 12.5 but the SDK structure has changed between 11.0 and 12.5

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: