Running a build on Jenkins Slave

时间:2015-11-12 10:49:48

标签: jenkins selenium-webdriver

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.

1 个答案:

答案 0 :(得分:0)

嗯,我不明白这个问题 - 你自己说,奴隶机器中不存在文件,你在奴隶上运行jenkins。所以当然它不会找到文件?

只需将文件移动到从机并在从机上运行作业吗?