jenkins.plugins.clangscanbuild
Class ClangScanBuildBuilder

java.lang.Object
  extended by hudson.tasks.BuildStepCompatibilityLayer
      extended by hudson.tasks.Builder
          extended by jenkins.plugins.clangscanbuild.ClangScanBuildBuilder
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Describable<hudson.tasks.Builder>, hudson.tasks.BuildStep

public class ClangScanBuildBuilder
extends hudson.tasks.Builder

This builder provides a new build step for freestyle jobs. Users can execute Clang scan-build against their XCode projects

Author:
Joshua Kennedy

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 ClangScanBuildDescriptor DESCRIPTOR
           
 
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
 
Constructor Summary
ClangScanBuildBuilder(String target, String targetSdk, String config, String clangInstallationName, String xcodeProjectSubPath, String workspace, String scheme)
           
 
Method Summary
 String getClangInstallationName()
           
 String getConfig()
           
 ClangScanBuildDescriptor getDescriptor()
           
 String getScheme()
           
 String getTarget()
           
 String getTargetSdk()
           
 String getWorkspace()
           
 String getXcodeProjectSubPath()
          Removing slashes here in case the user adds a starting slash to the path.
 boolean perform(hudson.model.AbstractBuild build, hudson.Launcher launcher, hudson.model.BuildListener listener)
          This method is invoked when a job is actually 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

DESCRIPTOR

@Extension
public static final ClangScanBuildDescriptor DESCRIPTOR
Constructor Detail

ClangScanBuildBuilder

@DataBoundConstructor
public ClangScanBuildBuilder(String target,
                                                  String targetSdk,
                                                  String config,
                                                  String clangInstallationName,
                                                  String xcodeProjectSubPath,
                                                  String workspace,
                                                  String scheme)
Method Detail

getClangInstallationName

public String getClangInstallationName()

getTarget

public String getTarget()

getTargetSdk

public String getTargetSdk()

getConfig

public String getConfig()

getWorkspace

public String getWorkspace()

getScheme

public String getScheme()

getXcodeProjectSubPath

public String getXcodeProjectSubPath()
Removing slashes here in case the user adds a starting slash to the path.


perform

public boolean perform(hudson.model.AbstractBuild build,
                       hudson.Launcher launcher,
                       hudson.model.BuildListener listener)
This method is invoked when a job is actually executed. It is the magic method.

Specified by:
perform in interface hudson.tasks.BuildStep
Overrides:
perform in class hudson.tasks.BuildStepCompatibilityLayer
Returns:
boolean - if 'false', build will be aborted

getDescriptor

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


Copyright © 2004-2011. All Rights Reserved.