Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jenkins publish HTML from docker container

I recently switched to using docker containers in my Jenkins pipelines and it seems that the jenkins HTML publisher plugin doesn't seem to work from within the container.

What I mean by that, is that after the build an HTML file is generated, which I wish to be published. I am using the HTML publisher plugin for that which worked perfectly fine until switching to building with containers.

Should the HTML publisher plugin work from within the container? If not are there any alternatives to publishing the HTML from within the container?

Thank you.

like image 786
FanFan Avatar asked Nov 24 '16 12:11

FanFan


1 Answers

The publisher plugin will work inside of the container, but not if you are trying to access an area inside the container. This means if you need to access something like the /etc of the container, you will not be able to because the plugin will actually be accessing the /etc of the Jenkins host. You can the workspace though inside of the container though.

like image 132
Ven Avatar answered Sep 29 '22 19:09

Ven