在詹金斯奴隶上运行Windows批处理作业 [英] Run a windows batch job on jenkins slave

查看:58
本文介绍了在詹金斯奴隶上运行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.

这篇关于在詹金斯奴隶上运行Windows批处理作业的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆