public class OPlugin extends Builder implements SimpleBuildStep, OParameters
| Modifier and Type | Class and Description |
|---|---|
static class |
OPlugin.DescriptorImpl
Descriptor class for Build step.
|
SimpleBuildStep.LastBuildAction, SimpleBuildStep.LastBuildActionFactoryBuildStep.PublisherListExtensionPoint.LegacyInstancesAreScopedToHudsonBUILDERS, PUBLISHERS| Constructor and Description |
|---|
OPlugin(String filePath,
String title,
String plan,
String platform,
boolean waitForResults,
int waitMinutes,
boolean breakBuildOnScore,
RiskInfo.RISK riskThreshold)
Instantiates a new O plugin.
|
| Modifier and Type | Method and Description |
|---|---|
Secret |
getApiKey()
Gets api key.
|
String |
getApiUrl()
Gets api url.
|
String |
getFilePath()
Gets file name.
|
String |
getPlan()
Gets plan.
|
String |
getPlatform()
Gets platform.
|
RiskInfo.RISK |
getRiskThreshold()
Gets risk threshold.
|
String |
getTitle()
Gets title.
|
int |
getWaitMinutes()
Gets wait minutes.
|
boolean |
isBreakBuildOnScore()
Is break build on score boolean.
|
boolean |
isWaitingForResults()
Is wait for results boolean.
|
void |
perform(Run<?,?> run,
FilePath workspace,
Launcher launcher,
TaskListener listener) |
void |
setApiKey(String apiKey)
Sets api key.
|
void |
setBreakBuildOnScore(boolean breakBuildOnScore)
Sets break build on score.
|
void |
setFilePath(String filePath)
Sets file name.
|
void |
setPlan(String plan)
Sets plan.
|
void |
setPlatform(String platform)
Sets platform.
|
void |
setScoreThreshold(RiskInfo.RISK riskThreshold)
Sets score threshold.
|
void |
setTitle(String title)
Sets title.
|
void |
setWaitingForResults(boolean waitForResults)
Sets wait for results.
|
void |
setWaitMinutes(int waitMinutes)
Sets wait minutes.
|
all, getDescriptor, getRequiredMonitorService, prebuildgetProjectAction, getProjectAction, getProjectActions, perform, perform, prebuildclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetProjectAction, getProjectActions, getRequiredMonitorService, perform, prebuild@DataBoundConstructor public OPlugin(String filePath, String title, String plan, String platform, boolean waitForResults, int waitMinutes, boolean breakBuildOnScore, RiskInfo.RISK riskThreshold)
filePath - the mobile application file pathtitle - the scan titleplan - the scan plan to useplatform - the application platformwaitForResults - Boolean to wait for the scan results before finishing the jobwaitMinutes - the number of minutes to wait before resuming the jobbreakBuildOnScore - Boolean to break build if the risk is higher than the thresholdriskThreshold - the risk thresholdpublic Secret getApiKey()
public void setApiKey(String apiKey)
apiKey - the api keypublic String getApiUrl()
OParametersgetApiUrl in interface OParameters@Nonnull public String getFilePath()
OParametersgetFilePath in interface OParameters@DataBoundSetter public void setFilePath(@Nonnull String filePath)
filePath - the file namepublic String getTitle()
OParametersgetTitle in interface OParameters@DataBoundSetter public void setTitle(String title)
title - the titlepublic boolean isWaitingForResults()
OParametersisWaitingForResults in interface OParameters@DataBoundSetter public void setWaitingForResults(boolean waitForResults)
waitForResults - the wait for resultspublic int getWaitMinutes()
OParametersgetWaitMinutes in interface OParameters@DataBoundSetter public void setWaitMinutes(int waitMinutes)
waitMinutes - the wait minutespublic String getPlan()
OParametersgetPlan in interface OParameters@DataBoundSetter public void setPlan(String plan)
plan - the planpublic String getPlatform()
OParametersgetPlatform in interface OParameters@DataBoundSetter public void setPlatform(String platform)
platform - the platformpublic boolean isBreakBuildOnScore()
OParametersisBreakBuildOnScore in interface OParameters@DataBoundSetter public void setBreakBuildOnScore(boolean breakBuildOnScore)
breakBuildOnScore - the break build on scorepublic RiskInfo.RISK getRiskThreshold()
OParametersgetRiskThreshold in interface OParameters@DataBoundSetter public void setScoreThreshold(RiskInfo.RISK riskThreshold)
riskThreshold - the risk thresholdpublic void perform(Run<?,?> run, @NonNull FilePath workspace, @NonNull Launcher launcher, @NonNull TaskListener listener) throws InterruptedException, IOException
perform in interface SimpleBuildStepInterruptedExceptionIOExceptionCopyright © 2016–2020. All rights reserved.