<?xml version='1.0' encoding='UTF-8'?>
<hudson.plugins.sidebar__link.SidebarLinkPlugin plugin="sidebar-link@1.7">
  <links>

{% set jenkins_http_port = pillar['system_features']['configure_jenkins']['jenkins_http_port'] %}
{% set jenkins_master_hostname = pillar['system_hosts'][pillar['system_host_roles']['jenkins_master_role']['assigned_hosts'][0]]['hostname'] %}

    <hudson.plugins.sidebar__link.LinkAction>
      <!--
        NOTE: Instead of guessing absolute linke (with schema, hostname, port),
              specify relative URL.
      -->
      <url>/quietDown</url>
      <text>Block builds</text>
      <!--
        NOTE: Set image to some known resource shipped with Jenkins.
      -->
      <icon>/images/24x24/lock.png</icon>
    </hudson.plugins.sidebar__link.LinkAction>
  </links>
</hudson.plugins.sidebar__link.SidebarLinkPlugin>


<?xml version='1.0' encoding='UTF-8'?>
<hudson.plugins.sidebar__link.SidebarLinkPlugin plugin="sidebar-link@1.7">
  <links>

{% set jenkins_http_port = pillar['system_features']['configure_jenkins']['jenkins_http_port'] %}
{% set jenkins_master_hostname = pillar['system_hosts'][pillar['system_host_roles']['jenkins_master_role']['assigned_hosts'][0]]['hostname'] %}

    <!--
        This brings "Quiet Down" action from
        "Manage Jenkins" -> "Prepare for Shutdown" to
        the sidebar on the main page.
    -->
    <hudson.plugins.sidebar__link.LinkAction>
      <!--
        NOTE: Instead of guessing absolute linke (with schema, hostname, port),
              specify relative URL.
      -->
      <url>/quietDown</url>
      <text>Block builds</text>
      <!--
        NOTE: Set image to some known resource shipped with Jenkins.
      -->
      <icon>/images/24x24/lock.png</icon>
    </hudson.plugins.sidebar__link.LinkAction>

    <!--
        This link only shows project_name on its title
        to quickly distinguish Jenkins instances.
    -->
    <hudson.plugins.sidebar__link.LinkAction>
      <url>/</url>
      <text>project_name: {{ pillar['project_name'] }}</text>
      <!--
        NOTE: Set image to some known resource shipped with Jenkins.
      -->
      <icon>/images/24x24/attribute.png</icon>
    </hudson.plugins.sidebar__link.LinkAction>

  </links>
</hudson.plugins.sidebar__link.SidebarLinkPlugin>


Add sidebar link to display project_name
Add sidebar link to display project_name
