Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-22251

Executing tf using the TFS Plugin throws an IO exception

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • tfs-plugin
    • None
    • Jenkins master is Linux. Slave node is Windows 7 machine.

      When executing the TFS Plugin from a Linux master to a Windows 7 slave I am getting the following error:

      17:00:52 [EnvInject] - Loading node environment variables.
      17:00:53 Building remotely on VMWAYQA09 in workspace C:\jenkins-slave\workspace\AUT-Geb-Demo
      17:00:53 [AUT-Geb-Demo] $ tf workspaces -format:brief -server:http://<server>:8080/tfs/2x ********
      17:00:53 java.io.IOException: Cannot run program "tf" (in directory "C:\jenkins-slave\workspace\AUT-Geb-Demo"): CreateProcess error=2, The system cannot find the file specified
      17:00:53 at java.lang.ProcessBuilder.start(ProcessBuilder.java:460)
      17:00:53 at hudson.Proc$LocalProc.<init>(Proc.java:244)
      17:00:53 at hudson.Proc$LocalProc.<init>(Proc.java:216)
      17:00:53 at hudson.Launcher$LocalLauncher.launch(Launcher.java:773)
      17:00:53 at hudson.Launcher$ProcStarter.start(Launcher.java:353)
      17:00:53 at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:998)
      17:00:53 at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:965)
      17:00:53 at hudson.remoting.UserRequest.perform(UserRequest.java:118)
      17:00:53 at hudson.remoting.UserRequest.perform(UserRequest.java:48)
      17:00:53 at hudson.remoting.Request$2.run(Request.java:328)
      17:00:53 at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
      17:00:53 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      17:00:53 at java.util.concurrent.FutureTask.run(FutureTask.java:138)
      17:00:53 at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
      17:00:53 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
      17:00:53 at hudson.remoting.Engine$1$1.run(Engine.java:63)
      17:00:53 at java.lang.Thread.run(Thread.java:662)
      17:00:53 Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
      17:00:53 at java.lang.ProcessImpl.create(Native Method)
      17:00:53 at java.lang.ProcessImpl.<init>(ProcessImpl.java:81)
      17:00:53 at java.lang.ProcessImpl.start(ProcessImpl.java:30)
      17:00:53 at java.lang.ProcessBuilder.start(ProcessBuilder.java:453)
      17:00:53 ... 16 more
      17:00:53 Finished: FAILURE

            renuc Renu Chudamani
            renuc Renu Chudamani
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: