Search code examples
testingjenkinsruntime-errorjobs

Move Jenkins jobs give error during jobs execution "File or Folder no found"


If I move a job in Jenkins (From Review), from the default directory to a Folder I have created, i get an error:

File or folder not found

I have some Selenium tests that use a file to read mock data. If I run the job from the default directory is everything ok, but if i move the job inside another folder, then i get the message that the file or folder not found.

I see that the name of the folder will be added to the path of the file. This is the reason why the file cannont be found.

Is there any configuration to resolve this issue.


Solution

  • I found the problem myself.

    The name of the subfolder in Jenkins must not include spaces:

    incorrect: "Sub Foler Name"

    correct: "Sub-Folder-Name"