java - Jenkins got error while getting the source from Team Foundation Server -
jenkins got error while getting source team foundation server
building in workspace \custom_workspace [custom_workspace] $ tf workspaces -format:brief -server:http://:8080/tfs/********
java.io.ioexception: cannot run program "tf" (in directory " <workspacepath>\custom_workspace"): createprocess error=2, system cannot find file specified @ java.lang.processbuilder.start(processbuilder.java:1042) @ hudson.proc$localproc.<init>(proc.java:244) @ hudson.proc$localproc.<init>(proc.java:216) @ hudson.launcher$locallauncher.launch(launcher.java:816) @ hudson.launcher$procstarter.start(launcher.java:382) @ hudson.plugins.tfs.tftool.execute(tftool.java:99) @ hudson.plugins.tfs.model.server.execute(server.java:120) @ hudson.plugins.tfs.model.workspaces.getlistfromserver(workspaces.java:38) @ hudson.plugins.tfs.model.workspaces.populatemapfromserver(workspaces.java:50) @ hudson.plugins.tfs.model.workspaces.exists(workspaces.java:76) @ hudson.plugins.tfs.actions.checkoutaction.checkout(checkoutaction.java:36) @ hudson.plugins.tfs.teamfoundationserverscm.checkout(teamfoundationserverscm.java:176) @ hudson.model.abstractproject.checkout(abstractproject.java:1280) @ hudson.model.abstractbuild$abstractbuildexecution.defaultcheckout(abstractbuild.java:610) @ jenkins.scm.scmcheckoutstrategy.checkout(scmcheckoutstrategy.java:86) @ hudson.model.abstractbuild$abstractbuildexecution.run(abstractbuild.java:532) @ hudson.model.run.execute(run.java:1744) @ hudson.maven.mavenmodulesetbuild.run(mavenmodulesetbuild.java:529) @ hudson.model.resourcecontroller.execute(resourcecontroller.java:98) @ hudson.model.executor.run(executor.java:374) caused by: java.io.ioexception: createprocess error=2, system cannot find file specified @ java.lang.processimpl.create(native method) @ java.lang.processimpl.<init>(processimpl.java:288) @ java.lang.processimpl.start(processimpl.java:133) @ java.lang.processbuilder.start(processbuilder.java:1023) ... 19 more finished: failure
i had same issue. fixed giving absolute path(c:\tee-clc-12.0.2\tf.exe) in team foundation server in jenkins system configuration.
Comments
Post a Comment