简体   繁体   English

在詹金斯奴隶上运行构建

[英]Running a build on Jenkins Slave

I have done the following 我做了以下

  1. Create a slave Node 创建一个从节点
  2. In the Labels field added Test 在标签字段中添加测试
  3. Save the node configuration 保存节点配置
  4. Created a new Job 创建了一个新工作
  5. Selected the options Restrict where this project can run 选择选项“限制此项目可以在哪里运行”
  6. In the Label expression field added Test 在标签表达式字段中添加测试
  7. Save the job 保存工作

When i build the job, i get the error 当我建立工作时,我得到了错误

java.io.FileNotFoundException: C:\Users\Administrator\Test\src\test\java\test\data\Project Suites.xlsx (The system cannot find the path specified)

Not Sure whats wrong, The folder does not exist in the slave machine but exist in the Master machine. 不知道怎么了,该文件夹在从属计算机中不存在,但在主计算机中存在。

But if i run it using the master it works fine. 但是,如果我使用主控器运行它,则效果很好。

Hmm I dont understand the problem - you said it yourself, the file does not exist in the slave machine, and you're running jenkins on the slave. 嗯,我不明白这个问题-您自己说过,该文件在从属计算机中不存在,并且您正在从属计算机上运行jenkins。 So of course its not going to find the file? 因此,当然不会找到该文件了吗?

Just move the file to the slave machine and run the job on the slave? 只需将文件移动到从属计算机并在从属计算机上运行作业?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM