Hide side-panel from Jenkins View

854 views
Skip to first unread message

Martin B.

unread,
Jul 12, 2011, 10:26:53 AM7/12/11
to jenkins...@googlegroups.com
Hi all!

The Build Pipeline Plugin hides the side-panel (the column on the left
side with the available tasks, buildQueue and executors).

Is this also possible with any other View? (Dashboard, ... ?)

cheers,
Martin

Martin B.

unread,
Jul 12, 2011, 10:51:14 AM7/12/11
to jenkins...@googlegroups.com

I have found a workaround/hack. Each View allows for a description. When
I add the following code to the description, the side-panel will be
dynamically removed. (Pretty horrible IMHO.)

- - - -
<p style="text-align:right; color:LightGrey">(Note: Description contains
custom JS!)</p>
<script>
var sidePanelTD=document.getElementById('side-panel');
if(sidePanelTD) {
sidePanelTD.parentNode.removeChild(sidePanelTD);
}
</script>
- - - -

cheers,
Martin

Martin B.

unread,
Jul 19, 2011, 6:44:33 AM7/19/11
to jenkins...@googlegroups.com

I have now found another workaround. (Display is not as good, as the
side panel is still shown, but it is less "hacky".)

If I only care about the links in the side-panel not being displayed,
then I can use a [Dashboard View][1] portlet of type "Jenkins job list"
and then show this portlet in full-screen (via
.../portlet/dashboard_portlet_#/) the side-panel is still displayed, but
doesn't contain any links.

Any feedback appreciated.

cheers,
Martin

[1] : https://wiki.jenkins-ci.org/display/JENKINS/Dashboard+View

Maheshwaran A N

unread,
Aug 22, 2017, 5:43:26 AM8/22/17
to Jenkins Users
Hi Martin,

Good idea of achieving it through JS. But, this isn't working for me :( Am I missing any imports? 

Regards,
Mahesh
Reply all
Reply to author
Forward
0 new messages