public class TerminalSessionAction
extends hudson.model.Environment
implements hudson.model.Action
Action
that attach to AbstractBuild
to show the "interactive terminal" option in the UI.
Also an Environment
to make the build hang while the terminal is active.Modifier and Type | Field and Description |
---|---|
static hudson.security.Permission |
ACCESS |
static hudson.security.PermissionGroup |
PERMISSIONS |
Constructor and Description |
---|
TerminalSessionAction(hudson.model.AbstractBuild build,
hudson.Launcher launcher,
hudson.model.BuildListener listener) |
Modifier and Type | Method and Description |
---|---|
void |
associate(DiagnoseCommand cmd) |
org.kohsuke.stapler.HttpResponse |
doKill()
Interrupts the all pending SSH commands and terminate them all.
|
org.kohsuke.stapler.HttpResponse |
doRestartSession()
Relaunches a terminal session, even if one is live.
|
org.kohsuke.stapler.HttpResponse |
doStartSession()
Starts a new terminal session if non exists.
|
void |
doU(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
Handles ajaxterm update.
|
String |
getDisplayName() |
static TerminalSessionAction |
getFor(hudson.model.AbstractBuild<?,?> build) |
String |
getIconFileName() |
String |
getUrlName() |
boolean |
hasSession() |
boolean |
tearDown(hudson.model.AbstractBuild build,
hudson.model.BuildListener listener) |
void |
unassociate(DiagnoseCommand cmd) |
public static final hudson.security.PermissionGroup PERMISSIONS
public static final hudson.security.Permission ACCESS
public TerminalSessionAction(hudson.model.AbstractBuild build, hudson.Launcher launcher, hudson.model.BuildListener listener)
public boolean tearDown(hudson.model.AbstractBuild build, hudson.model.BuildListener listener) throws IOException, InterruptedException
tearDown
in class hudson.model.Environment
IOException
InterruptedException
public String getIconFileName()
getIconFileName
in interface hudson.model.Action
public String getDisplayName()
getDisplayName
in interface hudson.model.Action
getDisplayName
in interface hudson.model.ModelObject
public String getUrlName()
getUrlName
in interface hudson.model.Action
public boolean hasSession()
public org.kohsuke.stapler.HttpResponse doStartSession() throws IOException, InterruptedException
IOException
InterruptedException
public org.kohsuke.stapler.HttpResponse doRestartSession() throws IOException, InterruptedException
IOException
InterruptedException
public void doU(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) throws IOException, InterruptedException
IOException
InterruptedException
public void associate(DiagnoseCommand cmd)
public void unassociate(DiagnoseCommand cmd)
public org.kohsuke.stapler.HttpResponse doKill()
public static TerminalSessionAction getFor(hudson.model.AbstractBuild<?,?> build)
Copyright © 2004-2013. All Rights Reserved.