RTC 3 and Jenkins
Eric Lemes (1●2●3)
| asked Oct 18 '13, 8:46 a.m.
retagged Oct 18 '13, 8:53 a.m. by Laura W. Hinson (161●2●6)
I'm having trouble trying to setup the Jenkins CI server with RTC 3.
First, I tried the last version of Jenkins (1.529) and the plugin didn't work because of these issues:
https://jazz.net/forum/questions/123459/jenkinshudson-rtc-plugin-can-not-connect-to-rtc-server
Then, I tried to downgrade Jenkins to 1.526, and I'm still in pain. Now, I can test the connection to the repository, but having build errors when the build is triggered. Here follows the stack trace:
Started by user Jenkins Admin Building in workspace D:\jenkins\workspace RTC : checkout... RTC Checkout : Source control setup RTC Checkout : Accepting changes into workspace "ws_jenkins_AA7_trunk" ... RTC Checkout : Fetching files to fetch destination "D:\Jenkins\workspace" ... FATAL: RTC : checkout failure: Could not initialize class com.ibm.team.filesystem.client.internal.ManagedFileStore java.lang.NoClassDefFoundError: Could not initialize class com.ibm.team.filesystem.client.internal.ManagedFileStore at com.ibm.team.filesystem.client.internal.FileStorageWrapper.getFileStore(FileStorageWrapper.java:336) at com.ibm.team.filesystem.client.internal.FileStorageWrapper.exists(FileStorageWrapper.java:366) at com.ibm.team.filesystem.client.internal.Shareable.exists(Shareable.java:667) at com.ibm.team.filesystem.client.internal.operations.HierarchicalLoadEvaluator.checkForCollision(HierarchicalLoadEvaluator.java:667) at com.ibm.team.filesystem.client.internal.operations.HierarchicalLoadEvaluator.getElementsToLoad(HierarchicalLoadEvaluator.java:329) at com.ibm.team.filesystem.client.internal.operations.HierarchicalLoadEvaluator.doEvaluation(HierarchicalLoadEvaluator.java:178) at com.ibm.team.filesystem.client.internal.operations.LoadEvaluator.evaluateLoadRequests(LoadEvaluator.java:90) at com.ibm.team.filesystem.client.internal.operations.LoadOperation.evaluateLoadRequests(LoadOperation.java:447) at com.ibm.team.filesystem.client.internal.operations.LoadOperation$1.run(LoadOperation.java:590) at com.ibm.team.filesystem.client.internal.SharingManager.runWithinFileSystemLock(SharingManager.java:802) at com.ibm.team.filesystem.client.internal.operations.FileSystemOperation.runWithinFileSystemLock(FileSystemOperation.java:164) at com.ibm.team.filesystem.client.internal.operations.FileSystemOperation.runWithinFileSystemLock(FileSystemOperation.java:144) at com.ibm.team.filesystem.client.internal.operations.LoadOperation.execute(LoadOperation.java:624) at com.ibm.team.filesystem.client.internal.operations.FileSystemOperation.run(FileSystemOperation.java:89) at com.ibm.team.build.internal.scm.SourceControlUtility.updateFileCopyArea(SourceControlUtility.java:619) at com.ibm.team.build.internal.hjplugin.rtc.RepositoryConnection.checkout(RepositoryConnection.java:407) at com.ibm.team.build.internal.hjplugin.rtc.RTCFacade.checkout(RTCFacade.java:387) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.ibm.team.build.internal.hjplugin.RTCFacadeFactory$RTCFacadeWrapper.invoke(RTCFacadeFactory.java:92) at com.ibm.team.build.internal.hjplugin.RTCCheckoutTask.invoke(RTCCheckoutTask.java:107) at com.ibm.team.build.internal.hjplugin.RTCCheckoutTask.invoke(RTCCheckoutTask.java:31) at hudson.FilePath.act(FilePath.java:906) at hudson.FilePath.act(FilePath.java:879) at com.ibm.team.build.internal.hjplugin.RTCScm.checkout(RTCScm.java:843) at hudson.model.AbstractProject.checkout(AbstractProject.java:1406) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:676) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:581) at hudson.model.Run.execute(Run.java:1597) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:247) ERROR: RTC : checkout failure: Could not initialize class com.ibm.team.filesystem.client.internal.ManagedFileStore Finished: FAILURE
The envirnonment:
Jenkins default installation, version 1.526
Team concert plugin: 1.0.7
Server OS: Windows 2013
Build Toolkit: RTC-BuildSystem-Toolkit-Win-3.0.1.2 |
3 answers
Upgrading the plugin to 1.0.11:
Started by user Jenkins Admin Building in workspace D:\jenkins\workspace RTC : checkout... RTC Checkout : Source control setup RTC Checkout : Accepting changes into workspace "ws_jenkins_AA7_trunk" ... RTC Checkout : Fetching files to fetch destination "D:\Jenkins\workspace" ... FATAL: RTC : checkout failure: java.nio.file.FileSystem.getPath(Ljava/lang/String;)Ljava/nio/file/Path; java.lang.NoSuchMethodError: java.nio.file.FileSystem.getPath(Ljava/lang/String;)Ljava/nio/file/Path; at com.ibm.team.filesystem.client.internal.Java17SymLinkHelper.<init>(Java17SymLinkHelper.java:41) at com.ibm.team.filesystem.client.internal.Java17SymLinkHelper.newInstance(Java17SymLinkHelper.java:34) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.ibm.team.filesystem.client.internal.ManagedFileStore.getJava17SymLinkHelper(ManagedFileStore.java:116) at com.ibm.team.filesystem.client.internal.ManagedFileStore.<clinit>(ManagedFileStore.java:146) at com.ibm.team.filesystem.client.internal.FileStorageWrapper.getFileStore(FileStorageWrapper.java:336) at com.ibm.team.filesystem.client.internal.FileStorageWrapper.exists(FileStorageWrapper.java:366) at com.ibm.team.filesystem.client.internal.Shareable.exists(Shareable.java:667) at com.ibm.team.filesystem.client.internal.operations.HierarchicalLoadEvaluator.checkForCollision(HierarchicalLoadEvaluator.java:667) at com.ibm.team.filesystem.client.internal.operations.HierarchicalLoadEvaluator.getElementsToLoad(HierarchicalLoadEvaluator.java:329) at com.ibm.team.filesystem.client.internal.operations.HierarchicalLoadEvaluator.doEvaluation(HierarchicalLoadEvaluator.java:178) at com.ibm.team.filesystem.client.internal.operations.LoadEvaluator.evaluateLoadRequests(LoadEvaluator.java:90) at com.ibm.team.filesystem.client.internal.operations.LoadOperation.evaluateLoadRequests(LoadOperation.java:447) at com.ibm.team.filesystem.client.internal.operations.LoadOperation$1.run(LoadOperation.java:590) at com.ibm.team.filesystem.client.internal.SharingManager.runWithinFileSystemLock(SharingManager.java:802) at com.ibm.team.filesystem.client.internal.operations.FileSystemOperation.runWithinFileSystemLock(FileSystemOperation.java:164) at com.ibm.team.filesystem.client.internal.operations.FileSystemOperation.runWithinFileSystemLock(FileSystemOperation.java:144) at com.ibm.team.filesystem.client.internal.operations.LoadOperation.execute(LoadOperation.java:624) at com.ibm.team.filesystem.client.internal.operations.FileSystemOperation.run(FileSystemOperation.java:89) at com.ibm.team.build.internal.scm.SourceControlUtility.updateFileCopyArea(SourceControlUtility.java:619) at com.ibm.team.build.internal.hjplugin.rtc.RepositoryConnection.checkout(RepositoryConnection.java:429) at com.ibm.team.build.internal.hjplugin.rtc.RTCFacade.checkout(RTCFacade.java:410) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.ibm.team.build.internal.hjplugin.RTCFacadeFactory$RTCFacadeWrapper.invoke(RTCFacadeFactory.java:96) at com.ibm.team.build.internal.hjplugin.RTCCheckoutTask.invoke(RTCCheckoutTask.java:110) at com.ibm.team.build.internal.hjplugin.RTCCheckoutTask.invoke(RTCCheckoutTask.java:31) at hudson.FilePath.act(FilePath.java:906) at hudson.FilePath.act(FilePath.java:879) at com.ibm.team.build.internal.hjplugin.RTCScm.checkout(RTCScm.java:898) at hudson.model.AbstractProject.checkout(AbstractProject.java:1406) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:676) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:581) at hudson.model.Run.execute(Run.java:1597) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:247) ERROR: RTC : checkout failure: java.nio.file.FileSystem.getPath(Ljava/lang/String;)Ljava/nio/file/Path; Finished: FAILURE |
Hi Eric,
I don't this that this is directly related to Jenkins. The same errors have been seen before using JRE 1.7. RTC 3 doesn't support that version of JRE, so you would have to use JRE 1.6 instead. This link describes the support environments: https://jazz.net/library/article/632 Regards, John |
Hi John,
I'll need to make Jenkins run on and older VM, right?
I hope I don't have any other side effects doing this.
Regards,
Eric
Comments
John Carolan
commented Oct 18 '13, 9:50 a.m.
Hi Eric,
Eric Lemes
commented Oct 18 '13, 9:57 a.m.
John,
There are no JVM's inside my path:
Path=C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\SCOM\
In the Jenkins jenkins.xml file, I can specify an jvm (the default is Jenkins jre)
<executable>%BASE%\jre\bin\java</executable>
I don't think I can specify an specific jvm version to check source control. If you have any idea on how to do this on Jenkins, please, let me know.
Regards,
Eric
John Carolan
commented Oct 18 '13, 10:13 a.m.
Hi Eric,
Eric Lemes
commented Oct 18 '13, 10:42 a.m.
Hi John,
I configured the JDK 1.6 as suggested by your link. Do you know where I can tell the build that it needs to run with a specific version of JDK, previously registered in Jenkins?
Regards,
Eric
John Carolan
commented Oct 18 '13, 10:47 a.m.
Hi Eric,
Eric Lemes
commented Oct 18 '13, 1:15 p.m.
Hi John,
I tried this plugin. This is useful to specify a JDK on a Build, not in a project. You need to choose the SDK for each execution of the build. It isn't what I'm looking for.
Eric Lemes
commented Oct 18 '13, 1:16 p.m.
Anyway, I tested it isn't working:
FATAL: RTC : checkout failure: java.nio.file.FileSystem.getPath(Ljava/lang/String;)Ljava/nio/file/Path;
Eric Lemes
commented Oct 18 '13, 1:16 p.m.
I'll do more tests to make sure the right JDK is being executed.
showing 5 of 8
show 3 more comments
|
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.