com.michelin.cio.hudson.plugins.wasbuilder
Class WASBuildStep

java.lang.Object
  extended by hudson.tasks.BuildStepCompatibilityLayer
      extended by hudson.tasks.Builder
          extended by com.michelin.cio.hudson.plugins.wasbuilder.WASBuildStep
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Describable<hudson.tasks.Builder>, hudson.tasks.BuildStep

public class WASBuildStep
extends hudson.tasks.Builder

This builder uses wsadmin to run commands (or scripts) on WAS.

Please refer to http://publib.boulder.ibm.com/infocenter/wasinfo/v7r0/index.jsp?topic=/com.ibm.websphere.nd.doc/info/ae/ae/rxml_commandline.html to get a full description of wsadmin options.

Author:
Romain Seguy (http://openromain.blogspot.com)

Nested Class Summary
static class WASBuildStep.DescriptorImpl
           
 
Nested classes/interfaces inherited from interface hudson.tasks.BuildStep
hudson.tasks.BuildStep.PublisherList
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
static String[] LANG
           
static String LANG_JACL
           
static String LANG_JYTHON
           
 
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
 
Constructor Summary
WASBuildStep(String additionalClasspath, boolean appendTrace, String commands, String javaOptions, String jobId, String language, String profileScriptFiles, String propertiesFiles, String runIf, String scriptFile, String scriptParameters, String traceFile, String wasServerName, String user, String password)
           
 
Method Summary
 String getAdditionalClasspath()
           
 String getCommands()
           
 WASBuildStep.DescriptorImpl getDescriptor()
           
 String getJavaOptions()
           
 String getJobId()
           
 String getLanguage()
           
 String getPassword()
           
 String getProfileScriptFiles()
           
 String getPropertiesFiles()
           
 String getRunIf()
           
 String getScriptFile()
           
 String getScriptParameters()
           
 String getTraceFile()
           
 String getUser()
           
 WASServer getWasServer()
          Returns the WASServer to use when the build takes place (null if none has been set).
 String getWasServerName()
           
 boolean isAppendTrace()
           
 boolean perform(hudson.model.AbstractBuild<?,?> build, hudson.Launcher launcher, hudson.model.BuildListener listener)
           
 
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
 

Field Detail

LANG_JACL

public static final String LANG_JACL
See Also:
Constant Field Values

LANG_JYTHON

public static final String LANG_JYTHON
See Also:
Constant Field Values

LANG

public static final String[] LANG
Constructor Detail

WASBuildStep

@DataBoundConstructor
public WASBuildStep(String additionalClasspath,
                                         boolean appendTrace,
                                         String commands,
                                         String javaOptions,
                                         String jobId,
                                         String language,
                                         String profileScriptFiles,
                                         String propertiesFiles,
                                         String runIf,
                                         String scriptFile,
                                         String scriptParameters,
                                         String traceFile,
                                         String wasServerName,
                                         String user,
                                         String password)
Method Detail

getAdditionalClasspath

public String getAdditionalClasspath()

isAppendTrace

public boolean isAppendTrace()

getCommands

public String getCommands()

getDescriptor

public WASBuildStep.DescriptorImpl getDescriptor()
Specified by:
getDescriptor in interface hudson.model.Describable<hudson.tasks.Builder>
Overrides:
getDescriptor in class hudson.tasks.Builder

getJavaOptions

public String getJavaOptions()

getJobId

public String getJobId()

getLanguage

public String getLanguage()

getPassword

public String getPassword()

getProfileScriptFiles

public String getProfileScriptFiles()

getPropertiesFiles

public String getPropertiesFiles()

getRunIf

public String getRunIf()

getScriptFile

public String getScriptFile()

getScriptParameters

public String getScriptParameters()

getTraceFile

public String getTraceFile()

getUser

public String getUser()

getWasServer

public WASServer getWasServer()
Returns the WASServer to use when the build takes place (null if none has been set).


getWasServerName

public String getWasServerName()

perform

public boolean perform(hudson.model.AbstractBuild<?,?> build,
                       hudson.Launcher launcher,
                       hudson.model.BuildListener listener)
                throws InterruptedException,
                       IOException
Specified by:
perform in interface hudson.tasks.BuildStep
Overrides:
perform in class hudson.tasks.BuildStepCompatibilityLayer
Throws:
InterruptedException
IOException


Copyright © 2004-2011. All Rights Reserved.