Jenkins could not generate HTML Report folder on s

2020-02-15 04:32发布

问题:

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"

回答1:

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



回答2:

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):

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

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.