Jenkins + TFS 2010 CI build issue

94 views
Skip to first unread message

Chetan Dabade

unread,
Dec 26, 2016, 6:25:27 AM12/26/16
to Jenkins Users
Greetings to all,

Merry Christmas and Happy New Year in advance!!

Jenkins Version: 1.649

I have setup Jenkins across different geo-graphical locations. I have setup master Jenkins and configured slave instances.

I have created Jenkins job as part of CI which will communicate to TFS 2010 (TFS is residing on remote machine where salve has been configured)  and eventually will get latest, build, compile and perform unit test case executions.

The created job have been configured to run at specific time daily.

However when the job is triggered i am getting following error output from salve. As part of work around i have tomanually disconnect and connect the salve instances back to master Jenkins instance every time.

Please help.

Started by timer
Building remotely on Jenkins177 (BuildSln) in workspace D:\JN\workspace\CI
FATAL: java.io.IOException: Remote call on Jenkins177 failed
java.lang.RuntimeException: java.io.IOException: Remote call on Jenkins177 failed
	at hudson.plugins.tfs.model.Server.execute(Server.java:226)
	at hudson.plugins.tfs.model.Project.extractChangesetNumber(Project.java:272)
	at hudson.plugins.tfs.model.Project.getRemoteChangesetVersion(Project.java:268)
	at hudson.plugins.tfs.model.Project.getRemoteChangesetVersion(Project.java:284)
	at hudson.plugins.tfs.TeamFoundationServerScm.recordWorkspaceChangesetVersion(TeamFoundationServerScm.java:359)
	at hudson.plugins.tfs.TeamFoundationServerScm.checkout(TeamFoundationServerScm.java:308)
	at hudson.model.AbstractProject.checkout(AbstractProject.java:1269)
	at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:607)
	at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529)
	at hudson.model.Run.execute(Run.java:1738)
	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
	at hudson.model.ResourceController.execute(ResourceController.java:98)
	at hudson.model.Executor.run(Executor.java:410)
Caused by: java.io.IOException: Remote call on Jenkins177 failed
	at hudson.remoting.Channel.call(Channel.java:789)
	at hudson.plugins.tfs.model.Server.execute(Server.java:222)
	... 13 more
Caused by: java.lang.UnsatisfiedLinkError: com.microsoft.tfs.jni.internal.platformmisc.NativePlatformMisc.nativeGetEnvironmentVariable(Ljava/lang/String;)Ljava/lang/String;
	at com.microsoft.tfs.jni.internal.platformmisc.NativePlatformMisc.nativeGetEnvironmentVariable(Native Method)
	at com.microsoft.tfs.jni.internal.platformmisc.NativePlatformMisc.getEnvironmentVariable(NativePlatformMisc.java:121)
	at com.microsoft.tfs.jni.PlatformMiscUtils.getEnvironmentVariable(PlatformMiscUtils.java:47)
	at com.microsoft.tfs.core.persistence.VersionedVendorFilesystemPersistenceStore.makeDirectoryForVendorApplicationVersion(VersionedVendorFilesystemPersistenceStore.java:96)
	at com.microsoft.tfs.core.persistence.VersionedVendorFilesystemPersistenceStore.<init>(VersionedVendorFilesystemPersistenceStore.java:60)
	at com.microsoft.tfs.core.config.persistence.DefaultPersistenceStoreProvider.<clinit>(DefaultPersistenceStoreProvider.java:42)
	at hudson.plugins.tfs.model.Server.<init>(Server.java:114)
	at hudson.plugins.tfs.commands.AbstractCallableCommand.createServer(AbstractCallableCommand.java:43)
	at hudson.plugins.tfs.commands.RemoteChangesetVersionCommand.call(RemoteChangesetVersionCommand.java:55)
	at hudson.plugins.tfs.commands.RemoteChangesetVersionCommand.call(RemoteChangesetVersionCommand.java:33)
	at hudson.remoting.UserRequest.perform(UserRequest.java:120)
	at hudson.remoting.UserRequest.perform(UserRequest.java:48)
	at hudson.remoting.Request$2.run(Request.java:326)
	at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
	at java.util.concurrent.FutureTask.run(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at hudson.remoting.Engine$1$1.run(Engine.java:62)
	at java.lang.Thread.run(Unknown Source)
	at ......remote call to Jenkins177(Native Method)
	at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1416)
	at hudson.remoting.UserResponse.retrieve(UserRequest.java:220)
	at hudson.remoting.Channel.call(Channel.java:781)
	... 14 more
Email was triggered for: Always
Sending email for trigger: Always
Request made to compress build log
Sending email to: ad...@build.com
Finished: FAILURE

Chetan Dabade

unread,
Dec 28, 2016, 3:11:41 AM12/28/16
to Jenkins Users


Hi all,

I tried the approach mentioned in the below link


The above approach will run Groovy script under Jenkins console.This script can monitor and restart offline nodes if they are not disconnected manually.

How ever the scheduled job is getting failed saying the following error:
Thanks,
Chetan
Reply all
Reply to author
Forward
0 new messages