Class DockerContainerConsoleAction
- java.lang.Object
-
- hudson.model.AbstractModelObject
-
- hudson.model.TaskAction
-
- org.jenkinsci.plugins.dockerbuildstep.action.DockerContainerConsoleAction
-
- All Implemented Interfaces:
Action
,ModelObject
,SearchableModelObject
,SearchItem
,Serializable
public class DockerContainerConsoleAction extends TaskAction implements Serializable
Jenkins action to add a 'Console Output' like page for the Docker container output. Container output is gathered using theAttachContainerCmd
.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
DockerContainerConsoleAction.DockerLogWorkerThread
-
Field Summary
-
Fields inherited from class hudson.model.TaskAction
log, workerThread
-
-
Constructor Summary
Constructors Constructor Description DockerContainerConsoleAction(AbstractBuild<?,?> build, String containerId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ACL
getACL()
String
getBuildStatusUrl()
String
getDisplayName()
String
getFullDisplayName()
String
getIconFileName()
File
getLogFile()
InputStream
getLogInputStream()
AbstractBuild<?,?>
getOwner()
protected Permission
getPermission()
String
getUrlName()
boolean
isLogUpdated()
AnnotatedLargeText
obtainLog()
void
setContainerName(String containerName)
DockerContainerConsoleAction
start()
void
stop()
void
writeLogTo(long offset, org.apache.commons.jelly.XMLOutput out)
-
Methods inherited from class hudson.model.TaskAction
doClearError, doProgressiveHtml, doProgressiveLog, getLog, getSearchUrl, getWorkerThread
-
Methods inherited from class hudson.model.AbstractModelObject
getSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError
-
-
-
-
Constructor Detail
-
DockerContainerConsoleAction
public DockerContainerConsoleAction(AbstractBuild<?,?> build, String containerId)
-
-
Method Detail
-
getIconFileName
public String getIconFileName()
- Specified by:
getIconFileName
in interfaceAction
- Specified by:
getIconFileName
in classTaskAction
-
getDisplayName
public String getDisplayName()
- Specified by:
getDisplayName
in interfaceAction
- Specified by:
getDisplayName
in interfaceModelObject
-
getFullDisplayName
public String getFullDisplayName()
-
getUrlName
public String getUrlName()
- Specified by:
getUrlName
in interfaceAction
-
getOwner
public AbstractBuild<?,?> getOwner()
-
getPermission
protected Permission getPermission()
- Specified by:
getPermission
in classTaskAction
-
getACL
protected ACL getACL()
- Specified by:
getACL
in classTaskAction
-
getBuildStatusUrl
public String getBuildStatusUrl()
-
setContainerName
public void setContainerName(String containerName)
-
getLogFile
public File getLogFile()
-
obtainLog
public AnnotatedLargeText obtainLog()
- Overrides:
obtainLog
in classTaskAction
-
isLogUpdated
public boolean isLogUpdated()
-
getLogInputStream
public InputStream getLogInputStream() throws IOException
- Throws:
IOException
-
writeLogTo
public void writeLogTo(long offset, org.apache.commons.jelly.XMLOutput out) throws IOException
- Throws:
IOException
-
start
public DockerContainerConsoleAction start() throws IOException
- Throws:
IOException
-
stop
public void stop()
-
-