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.FlexibleBuildContextCaptureType
          extended by org.jenkinsci.plugins.buildcontextcapture.type.impl.CommandType
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Describable<BuildContextCaptureType>

public class CommandType
extends FlexibleBuildContextCaptureType

Author:
Gregory Boissinot

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
 void captureAndExport(hudson.model.AbstractBuild build, hudson.FilePath outputDir, BuildContextLogger logger)
           
 hudson.FilePath getExportedFilePath(hudson.model.AbstractBuild build, BuildContextLogger logger)
           
 String getFilePath()
           
 String getScriptContent()
           
 
Methods inherited from class org.jenkinsci.plugins.buildcontextcapture.type.FlexibleBuildContextCaptureType
capture
 
Methods inherited from class org.jenkinsci.plugins.buildcontextcapture.type.BuildContextCaptureType
getDescriptor, getExportedDir
 
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

public void captureAndExport(hudson.model.AbstractBuild build,
                             hudson.FilePath outputDir,
                             BuildContextLogger logger)
                      throws BuildContextException
Specified by:
captureAndExport in class FlexibleBuildContextCaptureType
Throws:
BuildContextException

getExportedFilePath

public hudson.FilePath getExportedFilePath(hudson.model.AbstractBuild build,
                                           BuildContextLogger logger)
                                    throws BuildContextException
Specified by:
getExportedFilePath in class BuildContextCaptureType
Throws:
BuildContextException


Copyright © 2004-2012. All Rights Reserved.