在詹金斯奴隶上运行Windows批处理作业
我是jenkins的新手,正在尝试在Jenkins奴隶中运行Windows批处理作业.我可以看到所有svn代码都在工作的工作区,但是当我尝试从工作区文件夹访问命令时,却收到未指定的错误路径.这是因为Jenkins主服务器的工作空间路径为[工作空间]/[工作名称],而在从属服务器中,工作空间路径为[工作名称]/[工作空间].我如何在jenkins master中标识工作空间路径并从slave运行.请帮忙!
I am a newbie to the jenkins and trying to run a windows batch job in Jenkins slave. I can see the workspace with all the svn code in job but when am trying to access the command from the workspace folder , i am getting an error path not specified. this is because the Jenkins master is having workspace path as [workspace]/[jobname] where as in slave it is [jobname]/[workspace]. How can i identify the workspace path in jenkins master and run from the slave . please help!
您不应该在主服务器上工作.您需要使用agent{ label 's1'}
块告诉您要处理哪个从站.之后,请查看代码段生成器并检查您的svn请求的Checkout功能.
Your not supposed to work on the master. You need to tell which slave your working on with the agent{ label 's1'}
block. After, go see the Snippet Generator and check the Checkout function for your svn request.