Class CoverityBuildStep
- java.lang.Object
-
- hudson.tasks.BuildStepCompatibilityLayer
-
- hudson.tasks.Builder
-
- com.synopsys.integration.jenkins.coverity.extensions.buildstep.CoverityBuildStep
-
- All Implemented Interfaces:
hudson.ExtensionPoint,hudson.model.Describable<hudson.tasks.Builder>,hudson.tasks.BuildStep
public class CoverityBuildStep extends hudson.tasks.Builder
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCoverityBuildStep.DescriptorImpl
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringFIELD_CLEAN_UP_ACTIONstatic java.lang.StringFIELD_COVERITY_INSTANCE_URLstatic java.lang.StringFIELD_CREDENTIALS_IDstatic java.lang.StringFIELD_ON_COMMAND_FAILUREstatic java.lang.StringFIELD_OVERRIDE_CREDENTIALSstatic java.lang.StringFIELD_PROJECT_NAMEstatic java.lang.StringFIELD_STREAM_NAMEstatic java.lang.StringNESTED_DESCRIPTOR_CHECK_FOR_ISSUESstatic java.lang.StringNESTED_DESCRIPTOR_CONFIGURE_CHANGE_SET_PATTERNSstatic java.lang.StringNESTED_DESCRIPTOR_COVERITY_RUN_CONFIGURATION
-
Constructor Summary
Constructors Constructor Description CoverityBuildStep(java.lang.String coverityInstanceUrl, java.lang.String onCommandFailure, java.lang.String projectName, java.lang.String streamName, CheckForIssuesInView checkForIssuesInView, ConfigureChangeSetPatterns configureChangeSetPatterns, CoverityRunConfiguration coverityRunConfiguration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CheckForIssuesInViewgetCheckForIssuesInView()CleanUpActiongetCleanUpAction()ConfigureChangeSetPatternsgetConfigureChangeSetPatterns()java.lang.StringgetCoverityInstanceUrl()CoverityRunConfigurationgetCoverityRunConfiguration()java.lang.StringgetCredentialsId()CoverityBuildStep.DescriptorImplgetDescriptor()OnCommandFailuregetOnCommandFailure()java.lang.BooleangetOverrideDefaultCredentials()java.lang.StringgetProjectName()hudson.tasks.BuildStepMonitorgetRequiredMonitorService()java.lang.StringgetStreamName()booleanperform(hudson.model.AbstractBuild<?,?> build, hudson.Launcher launcher, hudson.model.BuildListener listener)voidsetCleanUpAction(CleanUpAction cleanUpAction)voidsetCredentialsId(java.lang.String credentialsId)voidsetOverrideDefaultCredentials(java.lang.Boolean overrideDefaultCredentials)
-
-
-
Field Detail
-
FIELD_COVERITY_INSTANCE_URL
public static final java.lang.String FIELD_COVERITY_INSTANCE_URL
- See Also:
- Constant Field Values
-
FIELD_PROJECT_NAME
public static final java.lang.String FIELD_PROJECT_NAME
- See Also:
- Constant Field Values
-
FIELD_STREAM_NAME
public static final java.lang.String FIELD_STREAM_NAME
- See Also:
- Constant Field Values
-
NESTED_DESCRIPTOR_CHECK_FOR_ISSUES
public static final java.lang.String NESTED_DESCRIPTOR_CHECK_FOR_ISSUES
- See Also:
- Constant Field Values
-
NESTED_DESCRIPTOR_CONFIGURE_CHANGE_SET_PATTERNS
public static final java.lang.String NESTED_DESCRIPTOR_CONFIGURE_CHANGE_SET_PATTERNS
- See Also:
- Constant Field Values
-
NESTED_DESCRIPTOR_COVERITY_RUN_CONFIGURATION
public static final java.lang.String NESTED_DESCRIPTOR_COVERITY_RUN_CONFIGURATION
- See Also:
- Constant Field Values
-
FIELD_ON_COMMAND_FAILURE
public static final java.lang.String FIELD_ON_COMMAND_FAILURE
- See Also:
- Constant Field Values
-
FIELD_CLEAN_UP_ACTION
public static final java.lang.String FIELD_CLEAN_UP_ACTION
- See Also:
- Constant Field Values
-
FIELD_OVERRIDE_CREDENTIALS
public static final java.lang.String FIELD_OVERRIDE_CREDENTIALS
- See Also:
- Constant Field Values
-
FIELD_CREDENTIALS_ID
public static final java.lang.String FIELD_CREDENTIALS_ID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CoverityBuildStep
@DataBoundConstructor public CoverityBuildStep(java.lang.String coverityInstanceUrl, java.lang.String onCommandFailure, java.lang.String projectName, java.lang.String streamName, CheckForIssuesInView checkForIssuesInView, ConfigureChangeSetPatterns configureChangeSetPatterns, CoverityRunConfiguration coverityRunConfiguration)
-
-
Method Detail
-
getCleanUpAction
public CleanUpAction getCleanUpAction()
-
setCleanUpAction
@DataBoundSetter public void setCleanUpAction(CleanUpAction cleanUpAction)
-
getCredentialsId
public java.lang.String getCredentialsId()
-
setCredentialsId
@DataBoundSetter public void setCredentialsId(java.lang.String credentialsId)
-
getOverrideDefaultCredentials
public java.lang.Boolean getOverrideDefaultCredentials()
-
setOverrideDefaultCredentials
@DataBoundSetter public void setOverrideDefaultCredentials(java.lang.Boolean overrideDefaultCredentials)
-
getCoverityInstanceUrl
public java.lang.String getCoverityInstanceUrl()
-
getOnCommandFailure
public OnCommandFailure getOnCommandFailure()
-
getConfigureChangeSetPatterns
public ConfigureChangeSetPatterns getConfigureChangeSetPatterns()
-
getCheckForIssuesInView
public CheckForIssuesInView getCheckForIssuesInView()
-
getProjectName
public java.lang.String getProjectName()
-
getStreamName
public java.lang.String getStreamName()
-
getCoverityRunConfiguration
public CoverityRunConfiguration getCoverityRunConfiguration()
-
getRequiredMonitorService
public hudson.tasks.BuildStepMonitor getRequiredMonitorService()
- Specified by:
getRequiredMonitorServicein interfacehudson.tasks.BuildStep- Overrides:
getRequiredMonitorServicein classhudson.tasks.Builder
-
getDescriptor
public CoverityBuildStep.DescriptorImpl getDescriptor()
- Specified by:
getDescriptorin interfacehudson.model.Describable<hudson.tasks.Builder>- Overrides:
getDescriptorin classhudson.tasks.Builder
-
perform
public boolean perform(hudson.model.AbstractBuild<?,?> build, hudson.Launcher launcher, hudson.model.BuildListener listener) throws java.io.IOException, java.lang.InterruptedException- Specified by:
performin interfacehudson.tasks.BuildStep- Overrides:
performin classhudson.tasks.BuildStepCompatibilityLayer- Throws:
java.io.IOExceptionjava.lang.InterruptedException
-
-