Discussion:
[pipeline] publishHtml failed with file present
j***@bodycad.com
2016-07-12 16:10:34 UTC
Permalink
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+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/9af45f1e-cc4d-4852-bb35-3093214522bc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
j***@bodycad.com
2016-07-12 16:15:48 UTC
Permalink
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.
Post by j***@bodycad.com
Hi,
'index.html', reportName: 'Failed Tests']);
The directory is there and the index.html file exist too at that step. But
[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+***@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.
Thomas Zoratto
2016-07-12 17:09:31 UTC
Permalink
Hi,

this bug is already reported here : https://issues.jenkins-ci.org/browse/JENKINS-29711 <https://issues.jenkins-ci.org/browse/JENKINS-29711>

publishHTML is not the only step impacted
https://jenkins.io/blog/2016/07/01/html-publisher-plugin/ <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'])
I guess the pipeline syntaxe for publishHTML have a typo. I would rather have a web link to the full API outside Jenkins.
Hi,
publishHTML([allowMissing: true, alwaysLinkToLastBuild: false, keepAll: true, reportDir: 'x64\\Release\\FailedTestResult\\', reportFiles: 'index.html', reportName: 'Failed Tests']);
[Pipeline] publishHTML
[Pipeline] }
[Pipeline] // timestamps
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
ERROR: Cannot publish the report. Target is not specified
Finished <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 view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/592333c4-e787-4fb8-842a-a80602ce6ab1%40googlegroups.com <https://groups.google.com/d/msgid/jenkinsci-users/592333c4-e787-4fb8-842a-a80602ce6ab1%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout <https://groups.google.com/d/optout>.
--
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+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/1B5D1C01-C0B1-41F1-9E07-7BE0FB828F67%40gmail.com.
For more options, visit https://groups.google.com/d/optout.
Jérôme Godbout
2016-07-12 18:08:26 UTC
Permalink
Ok, thanks, get inline with what I observed. You say not the only step
impacted, but how one fetch those name? any link to API or doc somewhere? I
was lucky to find an example into the a plugin that showed it, but for
other I'm a little lost to find those API naming (I'm totaly new to Groovy
language and I'm not a Java programmer, C/C++/Python/Qml/C#).

How stable can we assume this API to be exactly? If I make my Jenkinsfile
now, can I assume it will still work for any Jenkins 2.x version? Just to
give myself an idea of the API stability at this point? In my case I need
to be able to rebuild any software release for 10 years (medical
regulation). So I can wait to push this into production until it get stable
no problems (this burden is on my end ;-) but I would appreciate if anyone
can point me to some information on this, so I don't end up having 14
version of Jenkins to maintain into the long run.

Thanks,
Jerome
Post by Thomas Zoratto
Hi,
https://issues.jenkins-ci.org/browse/JENKINS-29711
publishHTML is not the only step impacted
https://jenkins.io/blog/2016/07/01/html-publisher-plugin/
'index.html', reportName: 'Failed Tests'])
should be
publishHTML(target:[allowMissing: true, alwaysLinkToLastBuild: false,
'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.
Post by j***@bodycad.com
Hi,
'index.html', reportName: 'Failed Tests']);
The directory is there and the index.html file exist too at that step.
[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
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/592333c4-e787-4fb8-842a-a80602ce6ab1%40googlegroups.com
<https://groups.google.com/d/msgid/jenkinsci-users/592333c4-e787-4fb8-842a-a80602ce6ab1%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the
Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/jenkinsci-users/ZqXpxEPtRfE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/1B5D1C01-C0B1-41F1-9E07-7BE0FB828F67%40gmail.com
<https://groups.google.com/d/msgid/jenkinsci-users/1B5D1C01-C0B1-41F1-9E07-7BE0FB828F67%40gmail.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
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+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAKmu%2Be0wnXoqsujoSxSdhdUTRj-WV49%2BC-dEUZKLCc4cvN2L0w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Antonio Muñiz
2016-07-20 16:07:49 UTC
Permalink
If I make my Jenkinsfile now, can I assume it will still work for any
Jenkins 2.x version? Just to give myself an idea of the API stability at
this point?
I believe so. Backward compatibility is taken very seriously by
Pipeline developers, it's broken only when there is no other option.
--
Antonio Muñiz
Software Engineer
CloudBees, Inc.
--
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+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAJc7kzR6gyT3wnfz8FPt%3D2kW08GAJ%3D8iVDa%2BPODQpwACtQpa1Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Loading...