Jenkins could not generate HTML Report folder on slave-machine

4.9k Views Asked by At

I am trying to generate HTML reports(Protractor Test) through Jenkins but it says "ERROR: Specified HTML directory 'x/y/z/Reports' does not exist". but when i run on the slave reports were generated. What do i need to do on the Jenkins Configuration, please help on this.
*Path is correct but it could not generate "Reports" folder on the slave. I am using- "protractor-html-screenshot-reporter"

2

There are 2 best solutions below

0
On

This is the solution:

  1. Click on Workspace Button and navigate until the HTML report folder appears.
  2. Copy the full path (Even though it looks like it's before the project):

enter image description here

  1. Paste the full path as is in the Publish HTML report plugin:

enter image description here

Remember! Location path / configuration on Bash script field (even running: cd /././. etc.) Does not affect the rest of the configuration settings on the Jenkins page.

This is why a full path is needed.

0
On

You need specify the path like "\x\y\z\Reports\", and make sure those folders is existing on your slave-machine