hudson.tasks
Class Shell

java.lang.Object
  extended by hudson.tasks.BuildStepCompatibilityLayer
      extended by hudson.tasks.Builder
          extended by hudson.tasks.CommandInterpreter
              extended by hudson.tasks.Shell
All Implemented Interfaces:
ExtensionPoint, Describable<Builder>, BuildStep

public class Shell
extends CommandInterpreter

Executes a series of commands by using a shell.

Author:
Kohsuke Kawaguchi

Nested Class Summary
static class Shell.DescriptorImpl
           
 
Nested classes/interfaces inherited from interface hudson.tasks.BuildStep
BuildStep.PublisherList
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
 
Fields inherited from class hudson.tasks.CommandInterpreter
command
 
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
 
Constructor Summary
Shell(String command)
           
 
Method Summary
 String[] buildCommandLine(FilePath script)
           
protected  String getContents()
           
 Shell.DescriptorImpl getDescriptor()
          Gets the descriptor for this instance.
protected  String getFileExtension()
           
 
Methods inherited from class hudson.tasks.CommandInterpreter
createScriptFile, getCommand, perform, perform
 
Methods inherited from class hudson.tasks.Builder
all, getRequiredMonitorService, prebuild
 
Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectAction, getProjectActions, perform, prebuild
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface hudson.tasks.BuildStep
getProjectAction, getProjectActions, prebuild
 

Constructor Detail

Shell

@DataBoundConstructor
public Shell(String command)
Method Detail

buildCommandLine

public String[] buildCommandLine(FilePath script)
Specified by:
buildCommandLine in class CommandInterpreter

getContents

protected String getContents()
Specified by:
getContents in class CommandInterpreter

getFileExtension

protected String getFileExtension()
Specified by:
getFileExtension in class CommandInterpreter

getDescriptor

public Shell.DescriptorImpl getDescriptor()
Description copied from interface: Describable
Gets the descriptor for this instance.

Descriptor is a singleton for every concrete Describable implementation, so if a.getClass()==b.getClass() then a.getDescriptor()==b.getDescriptor() must hold.

Specified by:
getDescriptor in interface Describable<Builder>
Overrides:
getDescriptor in class Builder


Copyright © 2004-2013. All Rights Reserved.