Package com.loadfocus.jenkins
Class LoadPublisher
java.lang.Object
hudson.tasks.BuildStepCompatibilityLayer
hudson.tasks.Publisher
hudson.tasks.Notifier
com.loadfocus.jenkins.LoadPublisher
- All Implemented Interfaces:
ExtensionPoint,Describable<Publisher>,BuildStep,SimpleBuildStep
Runs a LoadFocus JMeter load test in the cloud and marks the build from its results.
Freestyle: post-build action. Pipeline:
JMeterLoadTestStep (loadfocusJMeterTest).-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic final classWhat a run produced; returned to Pipeline scripts by the JMeter step.Nested classes/interfaces inherited from class hudson.tasks.Publisher
Publisher.DescriptorExtensionListImplNested 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
FieldsFields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetP95Ms()getP99Ms()Deprecated.intbooleanbooleanisTagRun()booleanvoidperform(Run<?, ?> run, EnvVars env, TaskListener listener) protected ObjectBuilds saved before timeoutMinutes existed load it as 0.booleanrunTest(Run<?, ?> run, EnvVars env, TaskListener listener) Launches the test, waits for it and evaluates it.voidsetCredentialsId(String credentialsId) voidsetErrorFailedThreshold(Integer value) voidsetErrorRatePct(Double errorRatePct) voidsetErrorUnstableThreshold(Integer value) voidvoidvoidvoidsetReleaseTag(String releaseTag) voidvoidvoidsetShareReport(boolean shareReport) voidsetTagRun(boolean tagRun) voidvoidsetTimeoutMinutes(int timeoutMinutes) voidsetUseVerdict(boolean useVerdict) Methods inherited from class hudson.tasks.Publisher
all, getProjectAction, needsToRunAfterFinalized, prebuildMethods inherited from class hudson.tasks.BuildStepCompatibilityLayer
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, perform, prebuildMethods inherited from interface jenkins.tasks.SimpleBuildStep
perform, perform
-
Field Details
-
DEFAULT_TIMEOUT_MINUTES
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public static final int DEFAULT_TIMEOUT_MINUTES- See Also:
-
-
Constructor Details
-
LoadPublisher
-
-
Method Details
-
requiresWorkspace
public boolean requiresWorkspace()- Specified by:
requiresWorkspacein interfaceSimpleBuildStep
-
perform
public void perform(@NonNull Run<?, ?> run, @NonNull EnvVars env, @NonNull TaskListener listener) throws InterruptedException, IOException- Specified by:
performin interfaceSimpleBuildStep- Throws:
InterruptedExceptionIOException
-
runTest
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public LoadPublisher.Outcome runTest(Run<?, ?> run, EnvVars env, TaskListener listener) throws InterruptedException, IOExceptionLaunches the test, waits for it and evaluates it. Throws AbortException on any FAILURE, after recording the results link, so a Pipeline stops at this gate and catchError can handle it.- Throws:
InterruptedExceptionIOException
-
getRequiredMonitorService
- Specified by:
getRequiredMonitorServicein interfaceBuildStep
-
getCredentialsId
-
setCredentialsId
-
getTestId
-
setTestId
-
getTestName
Deprecated. -
getErrorFailedThreshold
-
setErrorFailedThreshold
-
getErrorUnstableThreshold
-
setErrorUnstableThreshold
-
getResponseTimeFailedThreshold
-
setResponseTimeFailedThreshold
-
getResponseTimeUnstableThreshold
-
setResponseTimeUnstableThreshold
-
isUseVerdict
public boolean isUseVerdict() -
setUseVerdict
@DataBoundSetter public void setUseVerdict(boolean useVerdict) -
getTimeoutMinutes
public int getTimeoutMinutes() -
setTimeoutMinutes
@DataBoundSetter public void setTimeoutMinutes(int timeoutMinutes) -
isTagRun
public boolean isTagRun() -
setTagRun
@DataBoundSetter public void setTagRun(boolean tagRun) -
getReleaseTag
-
setReleaseTag
-
getP95Ms
-
setP95Ms
-
getP99Ms
-
setP99Ms
-
getErrorRatePct
-
setErrorRatePct
-
getMinRps
-
setMinRps
-
readResolve
Builds saved before timeoutMinutes existed load it as 0. -
getDescriptor
- Specified by:
getDescriptorin interfaceDescribable<Publisher>- Overrides:
getDescriptorin classNotifier
-