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 class
CoverityBuildStep.DescriptorImpl
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
FIELD_CLEAN_UP_ACTION
static java.lang.String
FIELD_COVERITY_INSTANCE_URL
static java.lang.String
FIELD_CREDENTIALS_ID
static java.lang.String
FIELD_ON_COMMAND_FAILURE
static java.lang.String
FIELD_OVERRIDE_CREDENTIALS
static java.lang.String
FIELD_PROJECT_NAME
static java.lang.String
FIELD_STREAM_NAME
static java.lang.String
NESTED_DESCRIPTOR_CHECK_FOR_ISSUES
static java.lang.String
NESTED_DESCRIPTOR_CONFIGURE_CHANGE_SET_PATTERNS
static java.lang.String
NESTED_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 CheckForIssuesInView
getCheckForIssuesInView()
CleanUpAction
getCleanUpAction()
ConfigureChangeSetPatterns
getConfigureChangeSetPatterns()
java.lang.String
getCoverityInstanceUrl()
CoverityRunConfiguration
getCoverityRunConfiguration()
java.lang.String
getCredentialsId()
CoverityBuildStep.DescriptorImpl
getDescriptor()
OnCommandFailure
getOnCommandFailure()
java.lang.Boolean
getOverrideDefaultCredentials()
java.lang.String
getProjectName()
hudson.tasks.BuildStepMonitor
getRequiredMonitorService()
java.lang.String
getStreamName()
boolean
perform(hudson.model.AbstractBuild<?,?> build, hudson.Launcher launcher, hudson.model.BuildListener listener)
void
setCleanUpAction(CleanUpAction cleanUpAction)
void
setCredentialsId(java.lang.String credentialsId)
void
setOverrideDefaultCredentials(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:
getRequiredMonitorService
in interfacehudson.tasks.BuildStep
- Overrides:
getRequiredMonitorService
in classhudson.tasks.Builder
-
getDescriptor
public CoverityBuildStep.DescriptorImpl getDescriptor()
- Specified by:
getDescriptor
in interfacehudson.model.Describable<hudson.tasks.Builder>
- Overrides:
getDescriptor
in 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:
perform
in interfacehudson.tasks.BuildStep
- Overrides:
perform
in classhudson.tasks.BuildStepCompatibilityLayer
- Throws:
java.io.IOException
java.lang.InterruptedException
-
-