Jenkins .bat文件的位置

时间:2014-04-03 10:07:27

标签: jenkins jenkins-plugins

当我在Windows 7上运行Windows批处理命令时,bat文件放在C:\Windows\Temp中。我尝试使用ENVInject插件设置TEMP和TMP变量,并尝试在windows batch命令中设置路径。但这不会改变.bat文件的位置。我希望该位置为C:\Users\xxxxxxx\AppData\Local\Temp but it is C:\Windows\Temp

请建议。

1 个答案:

答案 0 :(得分:1)

您必须使用此命令行参数启动jenkins:

-Djava.io.tmpdir=C:\Users\xxxxxxx\AppData\Local\Temp

http://jenkins-ci.361315.n4.nabble.com/Change-java-io-tmpdir-on-master-node-version-1-482-td4643854.html

相关问题