Expose session ID.

This value changes every time Jenkins starts, which allows HTTP clients to reliably wait for Jenkins restart.
This commit is contained in:
Kohsuke Kawaguchi committed 2012-08-30 14:20:40 -07:00
1 parent a3e57dafab
commit 4bd0696347
1 file changed
+1
@@ -80,6 +80,7 @@ THE SOFTWARE.
<j:if test="${request.servletPath=='/' || request.servletPath==''}">
<st:header name="X-Hudson" value="1.395"/>
<st:header name="X-Jenkins" value="${servletContext.getAttribute('version')}"/>
<st:header name="X-Jenkins-Session" value="${app.SESSION_HASH}"/>
<j:if test="${app.tcpSlaveAgentListener!=null}">
<!-- advertise the CLI TCP port -->
<st:header name="X-Hudson-CLI-Port" value="${app.tcpSlaveAgentListener.port}"/>