RTC 3 and Jenkins
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
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
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
Comments
Hi Eric,
I don't think there's a requirement to use the same VM for Jenkins and RTC. My guess is that the newer JRE shipped with Jenkins got added to the start of your PATH when you installed it, and that's causing a problem for RTC 3. You can probably reset the PATH to find the older JRE first, and then use the Jenkins system configuration tools in your Jenkins console to select the best JDK for your builds.
I hope that helps,
John
John,
Hi Eric,
The source control here is happening within the context of the build, so you will need to tell Jenkins the appropriate VM to use in order to execute those classes. You can define multiple VMs within Jenkins console (using a browser). It's described on one third party site here: http://my.safaribooksonline.com/book/software-engineering-and-development/ide/9781449311155/configuring-your-jenkins-server/sect-configuration-jdks.
Regards,
John
Hi John,
Hi Eric,
I haven't used this plugin personally, but it looks like it might be what you're looking for:
https://wiki.jenkins-ci.org/display/JENKINS/JDK+Parameter+Plugin
John
Hi John,
Anyway, I tested it isn't working: