Reputation: 143
I accidentally removed the file htmlpublisher-wrapper.html
.
I have the HTML Publisher plugin installed.
How can I get this file back?
Can I copy paste its content from somewhere?
Upvotes: 0
Views: 1344
Reputation: 111585
Despite the lack of details in your question, I assume you're talking about the htmlpublisher-wrapper.html
file that is generated and stored in $JENKINS_HOME/jobs/<job_name>/htmlreports/<report_name>/htmlpublisher-wrapper.html
, for Jenkins builds that have the HTML Publisher plugin enabled.
The easiest thing to do would be to just build the job again, which will cause the HTML report wrapper file to be generated again.
Otherwise, you could copy the file from another job that uses the HTML Publisher plugin and update the job and report names in the HTML.
You could also take the file from a backup.
Finally, you could create the file yourself by taking the header.html
and the footer.html
files from the plugin source code, and putting the original content in the middle, which should look similar to this:
<li id="tab1" class="unselected" onclick="updateBody('tab1');" value="index.html">index</li>
<script type="text/javascript">document.getElementById("hudson_link").innerHTML="Back to [job_name]";</script>
<script type="text/javascript">document.getElementById("hudson_link").href="http://[jenkins_url]/job/[job_name]/";</script>
<script type="text/javascript">document.getElementById("zip_link").href="*zip*/[report_name].zip";</script>
Upvotes: 3