Package io.jenkins.plugins.levo
Class TestPlanBuilder
java.lang.Object
hudson.tasks.BuildStepCompatibilityLayer
hudson.tasks.Builder
io.jenkins.plugins.levo.TestPlanBuilder
- All Implemented Interfaces:
ExtensionPoint,Describable<Builder>,BuildStep,SimpleBuildStep
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface hudson.tasks.BuildStep
BuildStep.PublisherListNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudsonNested classes/interfaces inherited from interface jenkins.tasks.SimpleBuildStep
SimpleBuildStep.LastBuildAction, SimpleBuildStep.LastBuildActionFactory -
Field Summary
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the first non-empty value from theextraCLIArgslist.Returns the first non-null value from thegenerateJunitReportlist.getRunOn()Returns the first non-empty value from thesecretEnvironmentIdlist.Returns the first non-empty value from thetargetlist.voidvoidsetAppName(String appName) voidsetAppName(List<Object> appName) voidsetAppNameDataSource(String appNameDataSource) voidsetAppNameDataSource(List<Object> appNameDataSource) voidsetCategories(String categories) voidsetCategories(List<Object> categories) voidsetCategoryCheckbox(List<Object> value) voidsetDataSource(String dataSource) voidsetDataSource(List<Object> dataSource) voidsetEndpointPattern(String endpointPattern) voidsetEndpointPattern(List<Object> endpointPattern) voidsetEnvironment(String environment) voidsetEnvironment(List<Object> environment) voidsetExcludeEndpointPattern(String excludeEndpointPattern) voidsetExcludeEndpointPattern(List<Object> excludeEndpointPattern) voidsetExcludeMethods(String excludeMethods) voidsetExcludeMethods(List<Object> excludeMethods) voidsetExecutionMode(String executionMode) voidsetExtraCLIArgs(String extraCLIArgs) voidsetExtraCLIArgs(List<Object> extraCLIArgs) voidsetFailScope(String failScope) voidsetFailScope(List<Object> failScope) voidsetFailSeverity(String failSeverity) voidsetFailSeverity(List<Object> failSeverity) voidsetFailThreshold(String failThreshold) voidsetFailThreshold(List<Object> failThreshold) voidsetGenerateJunitReport(Boolean generateJunitReport) voidsetGenerateJunitReport(List<Object> generateJunitReport) voidsetHttpMethods(String httpMethods) voidsetHttpMethods(List<Object> httpMethods) voidsetIncludeUser(List<Object> value) voidsetLevoCredentialsId(String levoCredentialsId) voidvoidvoidsetSecretEnvironmentId(String secretEnvironmentId) voidsetSecretEnvironmentId(List<Object> secretEnvironmentId) voidvoidvoidsetTargetUrl(String targetUrl) voidsetTargetUrl(List<Object> targetUrl) voidsetTestPlan(String testPlan) voidsetTestUsers(String testUsers) voidsetTestUsers(List<Object> testUsers) Methods inherited from class hudson.tasks.Builder
all, getDescriptor, getRequiredMonitorService, prebuildMethods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectAction, getProjectActions, perform, perform, prebuildMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface hudson.tasks.BuildStep
getProjectAction, getProjectActions, getRequiredMonitorService, perform, prebuildMethods inherited from interface jenkins.tasks.SimpleBuildStep
perform, perform, requiresWorkspace
-
Constructor Details
-
TestPlanBuilder
@DataBoundConstructor public TestPlanBuilder()
-
-
Method Details
-
setCategoryCheckbox
-
setIncludeUser
-
setTarget
-
setTarget
-
setTestPlan
-
setLevoCredentialsId
-
setGenerateJunitReport
-
setGenerateJunitReport
-
setExtraCLIArgs
-
setExtraCLIArgs
-
setSecretEnvironmentId
-
setSecretEnvironmentId
-
setExecutionMode
-
setAppName
-
setAppName
-
setEnvironment
-
setEnvironment
-
setCategories
-
setCategories
-
setHttpMethods
-
setHttpMethods
-
setExcludeMethods
-
setExcludeMethods
-
setEndpointPattern
-
setEndpointPattern
-
setExcludeEndpointPattern
-
setExcludeEndpointPattern
-
setTestUsers
-
setTestUsers
-
setTargetUrl
-
setTargetUrl
-
setFailSeverity
-
setFailSeverity
-
setFailScope
-
setFailScope
-
setFailThreshold
-
setFailThreshold
-
getTarget
Returns the first non-empty value from thetargetlist. If the list is null or contains only empty entries, null is returned. This preserves backwards compatibility with earlier versions of this plugin that stored a single target as a scalar String. -
getTestPlan
-
getExtraCLIArgs
Returns the first non-empty value from theextraCLIArgslist. -
getSecretEnvironmentId
Returns the first non-empty value from thesecretEnvironmentIdlist. -
getLevoCredentialsId
-
getGenerateJunitReport
Returns the first non-null value from thegenerateJunitReportlist.Jenkins form submissions sometimes post duplicate values when multiple form sections define the same field. This method iterates over the collected values and returns the first non-null Boolean. If no value has been set (i.e. the list is
nullor contains onlynullentries), it returnsBoolean.FALSEinstead ofnull. Returning a default value avoids SpotBugs warnings (NP_BOOLEAN_RETURN_NULL) and makes the method safe for callers that expect a non-null result.- Returns:
- the configured value if present, otherwise
Boolean.FALSE
-
getExecutionMode
-
getAppName
-
getEnvironment
-
getCategories
-
getHttpMethods
-
getExcludeMethods
-
getEndpointPattern
-
getExcludeEndpointPattern
-
getTestUsers
-
getTargetUrl
-
getDataSource
-
setDataSource
-
setDataSource
-
getAppNameDataSource
-
setAppNameDataSource
-
setAppNameDataSource
-
getRunOn
-
setRunOn
-
setRunOn
-
getFailSeverity
-
getFailScope
-
getFailThreshold
-
perform
public void perform(@NonNull Run<?, ?> run, @NonNull FilePath workspace, @NonNull EnvVars env, @NonNull Launcher launcher, @NonNull TaskListener listener) throws InterruptedException, IOException- Specified by:
performin interfaceSimpleBuildStep- Throws:
InterruptedExceptionIOException
-