简体   繁体   中英

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. 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?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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