Package io.jenkins.plugins.servicenow
Class InstanceScanBuilder
- java.lang.Object
-
- hudson.tasks.BuildStepCompatibilityLayer
-
- hudson.tasks.Builder
-
- io.jenkins.plugins.servicenow.ProgressBuilder
-
- io.jenkins.plugins.servicenow.InstanceScanBuilder
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<Builder>
,BuildStep
,SimpleBuildStep
public class InstanceScanBuilder extends ProgressBuilder
Build step responsible for instance scan as well as getting progress and results of runs. See API documentation: https://developer.servicenow.com/dev.do#!/reference/api/quebec/....
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
InstanceScanBuilder.CustomMessages
static class
InstanceScanBuilder.DescriptorImpl
-
Nested classes/interfaces inherited from interface hudson.tasks.BuildStep
BuildStep.PublisherList
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Nested classes/interfaces inherited from interface jenkins.tasks.SimpleBuildStep
SimpleBuildStep.LastBuildAction, SimpleBuildStep.LastBuildActionFactory
-
-
Field Summary
-
Fields inherited from class io.jenkins.plugins.servicenow.ProgressBuilder
workspace
-
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
-
-
Constructor Summary
Constructors Constructor Description InstanceScanBuilder(String credentialsId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getComboSysId()
String
getRequestBody()
String
getScanType()
String
getSuiteSysId()
String
getTargetRecordSysId()
String
getTargetTable()
protected boolean
perform(Run<?,?> run, TaskListener taskListener, Integer progressCheckInterval)
void
setComboSysId(String comboSysId)
void
setRequestBody(String requestBody)
void
setScanExecutions(Set<ScanAction> scanExecutions)
void
setScanType(String scanType)
void
setSuiteSysId(String suiteSysId)
void
setTargetRecordSysId(String targetRecordSysId)
void
setTargetTable(String targetTable)
protected void
setupBuilderParameters(EnvVars environment)
-
Methods inherited from class io.jenkins.plugins.servicenow.ProgressBuilder
buildErrorDetailFromFailedResponse, checkProgress, getApiVersion, getClientFactory, getCredentialsId, getGlobalSNParams, getRestClient, getUrl, getValue, perform, setApiVersion, setClientFactory, setCredentialsId, setRestClient, setupParametersAfterBuildStep, setUrl
-
Methods inherited from class hudson.tasks.Builder
all, getDescriptor, getRequiredMonitorService, prebuild
-
Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectAction, getProjectActions, perform, 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, getRequiredMonitorService, perform, prebuild
-
Methods inherited from interface jenkins.tasks.SimpleBuildStep
perform, perform, requiresWorkspace
-
-
-
-
Constructor Detail
-
InstanceScanBuilder
@DataBoundConstructor public InstanceScanBuilder(String credentialsId)
-
-
Method Detail
-
getScanType
public String getScanType()
-
setScanType
@DataBoundSetter public void setScanType(String scanType)
-
getTargetTable
public String getTargetTable()
-
setTargetTable
@DataBoundSetter public void setTargetTable(String targetTable)
-
getTargetRecordSysId
public String getTargetRecordSysId()
-
setTargetRecordSysId
@DataBoundSetter public void setTargetRecordSysId(String targetRecordSysId)
-
getComboSysId
public String getComboSysId()
-
setComboSysId
@DataBoundSetter public void setComboSysId(String comboSysId)
-
getSuiteSysId
public String getSuiteSysId()
-
setSuiteSysId
@DataBoundSetter public void setSuiteSysId(String suiteSysId)
-
getRequestBody
public String getRequestBody()
-
setRequestBody
@DataBoundSetter public void setRequestBody(String requestBody)
-
setScanExecutions
@Inject public void setScanExecutions(Set<ScanAction> scanExecutions)
-
setupBuilderParameters
protected void setupBuilderParameters(EnvVars environment)
- Overrides:
setupBuilderParameters
in classProgressBuilder
-
perform
protected boolean perform(Run<?,?> run, @NonNull TaskListener taskListener, Integer progressCheckInterval)
- Specified by:
perform
in classProgressBuilder
-
-