I think I found the solution on that page:
https://jenkins.io/blog/2016/07/01/html-publisher-plugin/

publishHTML([allowMissing: true, alwaysLinkToLastBuild: false, keepAll: 
true, reportDir: 'x64\\Release\\FailedTestResult\\', reportFiles: 
'index.html', reportName: 'Failed Tests'])

should be

publishHTML(target:[allowMissing: true, alwaysLinkToLastBuild: false, 
keepAll: true, reportDir: 'x64\\Release\\FailedTestResult\\', reportFiles: 
'index.html', reportName: 'Failed Tests'])

notice the extra *target:*
I guess the pipeline syntaxe for publishHTML have a typo. I would rather 
have a web link to the full API outside Jenkins.


On Tuesday, July 12, 2016 at 12:10:35 PM UTC-4, jer...@bodycad.com wrote:
>
> Hi,
>
> I'm trying this into my piple Jenkinsfile:
>
> publishHTML([allowMissing: true, alwaysLinkToLastBuild: false, keepAll: 
> true, reportDir: 'x64\\Release\\FailedTestResult\\', reportFiles: 
> 'index.html', reportName: 'Failed Tests']);
>
> The directory is there and the index.html file exist too at that step. But 
> I get the following error:
>
> [Pipeline] publishHTML[Pipeline] }[Pipeline] // timestamps[Pipeline] 
> }[Pipeline] // node[Pipeline] End of PipelineERROR: Cannot publish the 
> report. Target is not specifiedFinished 
> <http://stacktrace.jenkins-ci.org/search?query=Finished>: FAILURE
>
>
> I generate my line with the pipeline syntax tools. My question is what is the 
> target and does it represent? Any place where we can find the API doc for all 
> those pipeline functions? 
>
>
> Thanks,
>
> Jerome
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/592333c4-e787-4fb8-842a-a80602ce6ab1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to