File D:\maven-qcr-plugin-testsunitaires\qcr4java\jenkins-master\target\site\qc\core\src\main\java\hudson\cli\SessionIdCommand.java.html

1 package hudson.cli;
2
3 import hudson.Extension;
4 import jenkins.model.Jenkins;
5
6 /**
7 * Prints the current session ID number (that changes for every run)
8 * to allow clients to reliably wait for a restart.
9 *
10 * @author Kohsuke Kawaguchi
11 */
12 @Extension
13 public class SessionIdCommand extends CLICommand {
14 @Override
15 public String getShortDescription() {
16 return "Outputs the session ID, which changes every time Jenkins restarts";
17 }
18
19 protected int run() {
20 stdout.println(Jenkins.SESSION_HASH);
21 return 0;
22 }
23 }
24
25