org.jenkinsci.plugins.buildcontextcapture.type.impl
Class CommandType

java.lang.Object
  extended by org.jenkinsci.plugins.buildcontextcapture.type.BuildContextCaptureType
      extended by org.jenkinsci.plugins.buildcontextcapture.type.impl.CommandType
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Describable<BuildContextCaptureType>, Serializable

public class CommandType
extends BuildContextCaptureType

Author:
Gregory Boissinot
See Also:
Serialized Form

Nested Class Summary
static class CommandType.CommandTypeDescriptor
           
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Constructor Summary
CommandType(String scriptContent, String filePath)
           
 
Method Summary
protected  void captureAndExport(hudson.model.AbstractBuild build, BuildContextLogger logger, File outputCaptureDir, String format)
           
 Map<String,? extends Object> getCapturedElements(hudson.model.AbstractBuild build, BuildContextLogger logger)
           
protected  String getFileName()
           
 String getFilePath()
           
 String getScriptContent()
           
 
Methods inherited from class org.jenkinsci.plugins.buildcontextcapture.type.BuildContextCaptureType
capture, getDescriptor, getSerializerFormat
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandType

@DataBoundConstructor
public CommandType(String scriptContent,
                                        String filePath)
Method Detail

getScriptContent

public String getScriptContent()

getFilePath

public String getFilePath()

captureAndExport

protected void captureAndExport(hudson.model.AbstractBuild build,
                                BuildContextLogger logger,
                                File outputCaptureDir,
                                String format)
                         throws BuildContextException
Overrides:
captureAndExport in class BuildContextCaptureType
Throws:
BuildContextException

getCapturedElements

public Map<String,? extends Object> getCapturedElements(hudson.model.AbstractBuild build,
                                                        BuildContextLogger logger)
                                                 throws BuildContextException
Specified by:
getCapturedElements in class BuildContextCaptureType
Throws:
BuildContextException

getFileName

protected String getFileName()
Specified by:
getFileName in class BuildContextCaptureType


Copyright © 2004-2012. All Rights Reserved.