|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.tasks.BuildStepCompatibilityLayer
hudson.tasks.Builder
hudson.plugins.ccm.CCMBuilder
public class CCMBuilder
When the user configures the project and enables this builder,
CCMBuilderDescriptor#newInstance(StaplerRequest) is invoked
and a new CcmBuilder is created. The created
instance is persisted to the project configuration XML by using
XStream, so this allows you to use instance fields (like ccmName)
to remember the configuration.
When a build is performed, the BuildStepCompatibilityLayer.perform(Build, Launcher, BuildListener) method
will be invoked.
| Nested Class Summary |
|---|
| 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 java.lang.String |
CCM_CONFIG_FILE
Name of generated config file for CCM. |
static java.lang.String |
CCM_RESULT_FILE
Name of generated result file of CCM. |
static java.lang.Integer |
DEFAULT_NUMBER_OF_METRICS
Default number of metrics. |
static CCMBuilderDescription |
DESCRIPTOR
|
| Fields inherited from interface hudson.tasks.BuildStep |
|---|
BUILDERS, PUBLISHERS |
| Constructor Summary | |
|---|---|
CCMBuilder(java.lang.String ccmName,
java.lang.String srcFolder,
java.lang.Boolean recursive,
java.lang.Boolean outputXml,
java.lang.String numMetrics)
|
|
| Method Summary | |
|---|---|
CCMBuilderInstallation |
getCCM()
Even though we may have many installations of the CCM in Hudson, CCM Plugin grabs the first one that it finds. |
java.lang.String |
getCcmName()
|
hudson.model.Descriptor<hudson.tasks.Builder> |
getDescriptor()
|
java.lang.String |
getNumMetrics()
|
java.lang.Boolean |
getRecursive()
|
java.lang.String |
getSrcFolder()
|
java.lang.Boolean |
isOutputXml()
|
java.lang.Boolean |
isRecursive()
|
boolean |
perform(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener)
Called when the job is executed. |
| 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 |
|---|
@Extension public static final CCMBuilderDescription DESCRIPTOR
public static final java.lang.String CCM_CONFIG_FILE
public static final java.lang.String CCM_RESULT_FILE
public static final java.lang.Integer DEFAULT_NUMBER_OF_METRICS
| Constructor Detail |
|---|
@DataBoundConstructor
public CCMBuilder(java.lang.String ccmName,
java.lang.String srcFolder,
java.lang.Boolean recursive,
java.lang.Boolean outputXml,
java.lang.String numMetrics)
| Method Detail |
|---|
public java.lang.String getCcmName()
public java.lang.String getSrcFolder()
public java.lang.Boolean isRecursive()
public java.lang.Boolean getRecursive()
public java.lang.Boolean isOutputXml()
public java.lang.String getNumMetrics()
public hudson.model.Descriptor<hudson.tasks.Builder> getDescriptor()
getDescriptor in interface hudson.model.Describable<hudson.tasks.Builder>getDescriptor in class hudson.tasks.Builderpublic CCMBuilderInstallation getCCM()
Even though we may have many installations of the CCM in Hudson, CCM Plugin grabs the first one that it finds.
CCMBuilderInstallation containing details of the
CCM installed.
public boolean perform(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener)
throws java.lang.InterruptedException,
java.io.IOException
Called when the job is executed.
It calls the CCM.exe executable passing the config xml file created using the inputs provided by the user. Then it redirects the output of the command (using >) to a new file (overwriting it if already created).
Later this output xml if processed by another extension point, the
CCMPublisher.
perform in interface hudson.tasks.BuildStepperform in class hudson.tasks.BuildStepCompatibilityLayerjava.lang.InterruptedException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||