public class NeoBuildAction extends hudson.tasks.CommandInterpreter implements NeoLoadPluginOptions
This class also holds the settings chosen by the user for the plugin.
| Modifier and Type | Class and Description |
|---|---|
static class |
NeoBuildAction.DescriptorImpl
The type Descriptor.
|
| Constructor and Description |
|---|
NeoBuildAction(String executable,
String projectType,
String reportType,
String localProjectFile,
String sharedProjectName,
String scenarioName,
String htmlReport,
String xmlReport,
String pdfReport,
String junitReport,
boolean scanAllBuilds,
boolean displayTheGUI,
String testResultName,
String testDescription,
String licenseType,
String licenseVUCount,
String licenseDuration,
String customCommandLineOptions,
boolean publishTestResults,
ServerInfo sharedProjectServer,
NTSServerInfo licenseServer,
boolean showTrendAverageResponse,
boolean showTrendErrorRate,
List<GraphOptionsInfo> graphOptionsInfo,
int maxTrends)
This method and the annotation @DataBoundConstructor are required for jenkins 1.393 even if no params are passed in.
|
| Modifier and Type | Method and Description |
|---|---|
String[] |
buildCommandLine(hudson.FilePath script)
Build command line string [ ].
|
protected String |
getContents()
Gets contents.
|
String |
getCustomCommandLineOptions()
Gets custom command line options.
|
hudson.model.Descriptor<hudson.tasks.Builder> |
getDescriptor()
Gets descriptor.
|
String |
getExecutable()
Gets executable.
|
protected String |
getFileExtension()
Gets file extension.
|
List<GraphOptionsInfo> |
getGraphOptionsInfo()
Gets graph options info.
|
String |
getHtmlReport()
Gets html report.
|
String |
getHTMLReportArtifactPath()
Gets html report artifact path.
|
String |
getJunitReport()
Gets junit report.
|
String |
getLicenseDuration()
Gets license duration.
|
ServerInfo |
getLicenseServer()
Gets license server.
|
String |
getLicenseType()
Gets license type.
|
String |
getLicenseVUCount()
Gets license vu count.
|
String |
getLocalProjectFile()
Gets local project file.
|
int |
getMaxTrends()
Gets max trends.
|
String |
getPdfReport()
Gets pdf report.
|
String |
getProjectType()
Gets project type.
|
boolean |
getPublishTestResults()
Gets publish test results.
|
String |
getReportType()
Gets report type.
|
hudson.tasks.BuildStepMonitor |
getRequiredMonitorService()
Gets required monitor service.
|
String |
getScenarioName()
Gets scenario name.
|
String |
getSharedProjectName()
Gets shared project name.
|
ServerInfo |
getSharedProjectServer()
Gets shared project server.
|
String |
getTestDescription()
Gets test description.
|
String |
getTestResultName()
Gets test result name.
|
String |
getXmlReport()
Gets xml report.
|
String |
getXMLReportArtifactPath()
Gets xml report artifact path.
|
boolean |
isDisplayTheGUI()
Is display the gui boolean.
|
String |
isLicenseType(String type)
Is license type string.
|
String |
isProjectType(String type)
Is project type string.
|
boolean |
isReportType(String type)
Is report type boolean.
|
boolean |
isRepportCustomPath()
Is repport custom path boolean.
|
boolean |
isScanAllBuilds()
Is scan all builds boolean.
|
boolean |
isShowTrendAverageResponse()
Is show trend average response boolean.
|
boolean |
isShowTrendErrorRate()
Is show trend error rate boolean.
|
boolean |
perform(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener)
Perform boolean.
|
protected StringBuilder |
prepareCommandLine(hudson.Launcher launcher)
Prepare command line string builder.
|
void |
setLicenseServer(NTSServerInfo licenseServer)
Sets license server.
|
void |
setSharedProjectServer(ServerInfo sharedProjectServer)
Sets shared project server.
|
String |
toString()
To string string.
|
createScriptFile, getCommand, join, perform@DataBoundConstructor public NeoBuildAction(String executable, String projectType, String reportType, String localProjectFile, String sharedProjectName, String scenarioName, String htmlReport, String xmlReport, String pdfReport, String junitReport, boolean scanAllBuilds, boolean displayTheGUI, String testResultName, String testDescription, String licenseType, String licenseVUCount, String licenseDuration, String customCommandLineOptions, boolean publishTestResults, ServerInfo sharedProjectServer, NTSServerInfo licenseServer, boolean showTrendAverageResponse, boolean showTrendErrorRate, List<GraphOptionsInfo> graphOptionsInfo, int maxTrends)
executable - the executableprojectType - the project typereportType - the report typelocalProjectFile - the local project filesharedProjectName - the shared project namescenarioName - the scenario namehtmlReport - the html reportxmlReport - the xml reportpdfReport - the pdf reportjunitReport - the junit reportscanAllBuilds - the scan all buildsdisplayTheGUI - the display the guitestResultName - the test result nametestDescription - the test descriptionlicenseType - the license typelicenseVUCount - the license vu countlicenseDuration - the license durationcustomCommandLineOptions - the custom command line optionspublishTestResults - the publish test resultssharedProjectServer - the shared project serverlicenseServer - the license servershowTrendAverageResponse - the show trend average responseshowTrendErrorRate - the show trend error rategraphOptionsInfo - the graph options infomaxTrends - the max trendspublic hudson.tasks.BuildStepMonitor getRequiredMonitorService()
getRequiredMonitorService in interface hudson.tasks.BuildStepgetRequiredMonitorService in class hudson.tasks.Builderpublic boolean perform(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener)
throws InterruptedException
perform in interface hudson.tasks.BuildStepperform in class hudson.tasks.CommandInterpreterbuild - the buildlauncher - the launcherlistener - the listenerInterruptedException - the interrupted exceptionprotected StringBuilder prepareCommandLine(hudson.Launcher launcher)
launcher - runs code on the slave machine.public String isProjectType(String type)
type - the typepublic boolean isReportType(String type)
type - the typepublic boolean isRepportCustomPath()
public String isLicenseType(String type)
type - the typepublic String getXMLReportArtifactPath()
public String getHTMLReportArtifactPath()
public hudson.model.Descriptor<hudson.tasks.Builder> getDescriptor()
getDescriptor in interface hudson.model.Describable<hudson.tasks.Builder>getDescriptor in class hudson.tasks.Builderpublic String[] buildCommandLine(hudson.FilePath script)
buildCommandLine in class hudson.tasks.CommandInterpreterscript - the scriptprotected String getContents()
getContents in class hudson.tasks.CommandInterpreterprotected String getFileExtension()
getFileExtension in class hudson.tasks.CommandInterpreterpublic String getExecutable()
public String getSharedProjectName()
public String getScenarioName()
public String getHtmlReport()
NeoLoadPluginOptionsgetHtmlReport in interface NeoLoadPluginOptionspublic String getXmlReport()
NeoLoadPluginOptionsgetXmlReport in interface NeoLoadPluginOptionspublic String getPdfReport()
NeoLoadPluginOptionsgetPdfReport in interface NeoLoadPluginOptionspublic String getJunitReport()
public boolean isDisplayTheGUI()
public String getTestResultName()
public String getTestDescription()
public String getLicenseType()
public String getLicenseVUCount()
public String getLicenseDuration()
public String getCustomCommandLineOptions()
public String getLocalProjectFile()
public String getProjectType()
public String getReportType()
public boolean getPublishTestResults()
public ServerInfo getLicenseServer()
public void setLicenseServer(NTSServerInfo licenseServer)
licenseServer - the license serverpublic ServerInfo getSharedProjectServer()
public boolean isScanAllBuilds()
NeoLoadPluginOptionsisScanAllBuilds in interface NeoLoadPluginOptionspublic void setSharedProjectServer(ServerInfo sharedProjectServer)
sharedProjectServer - the shared project serverpublic String toString()
public boolean isShowTrendAverageResponse()
NeoLoadPluginOptionsisShowTrendAverageResponse in interface NeoLoadPluginOptionspublic boolean isShowTrendErrorRate()
NeoLoadPluginOptionsisShowTrendErrorRate in interface NeoLoadPluginOptionspublic List<GraphOptionsInfo> getGraphOptionsInfo()
NeoLoadPluginOptionsgetGraphOptionsInfo in interface NeoLoadPluginOptionspublic int getMaxTrends()
NeoLoadPluginOptionsgetMaxTrends in interface NeoLoadPluginOptionsCopyright © 2004-2018. All Rights Reserved.