public final class PluginUtils extends Object implements Serializable, org.apache.commons.beanutils.Converter
Modifier and Type | Field and Description |
---|---|
static String |
EMPTY_SERVER_MESSAGE |
static LockManager |
GRAPH_LOCK
The constant GRAPH_LOCK.
|
Modifier and Type | Method and Description |
---|---|
static void |
buildGraph(hudson.model.AbstractProject project)
Build graph.
|
static void |
buildGraph(File picturesFolder,
NeoLoadPluginOptions npo,
hudson.model.AbstractProject<?,?> project)
Build graph.
|
static void |
buildGraph(File picturesFolder,
NeoLoadPluginOptions npo,
hudson.model.Job<?,?> project)
Build graph.
|
static void |
buildGraph(hudson.model.Job project)
Build graph.
|
Object |
convert(Class type,
Object value) |
static hudson.model.Run.Artifact |
findArtifact(List<String> paths,
hudson.model.AbstractBuild<?,?> build)
Find artifact run .
|
static hudson.model.Run.Artifact |
findArtifact(List<String> paths,
hudson.model.Run<?,?> build)
Find artifact run .
|
static hudson.model.Run.Artifact |
findArtifacts(List<String> paths,
List artifacts,
int buildnumber) |
static String |
forgeArtifactoryPath(NeoBuildAction neoBuildAction) |
static hudson.util.FormValidation |
formValidationErrorToWarning(hudson.util.FormValidation formValidation)
Form validation error to warning form validation.
|
static Float |
getCustom(String path,
Document doc)
Gets custom.
|
static List<String> |
getHTMLReportPaths(hudson.model.AbstractBuild<?,?> build,
String firstPath)
Gets html report paths.
|
static List<String> |
getHTMLReportPaths(hudson.model.Run<?,?> build,
String firstPath)
Gets html report paths.
|
static NeoBuildAction |
getNeoBuildAction(hudson.model.AbstractProject<?,?> project)
Get the configured instance for the plugin.
|
static NeoGlobalConfig.DescriptorImpl |
getNeoGlobalConfig() |
static NeoResultsAction |
getNeoResultAction(hudson.model.AbstractBuild<?,?> build)
Gets neo result action.
|
static NeoResultsAction |
getNeoResultAction(hudson.model.Run<?,?> build)
Gets neo result action.
|
static File |
getPicturesFolder(hudson.model.AbstractProject<?,?> project)
Gets pictures folder.
|
static File |
getPicturesFolder(hudson.model.Job<?,?> project)
Gets pictures folder.
|
static NeoLoadPluginOptions |
getPluginOptions(hudson.model.AbstractProject<?,?> project)
Get the configured instance for the plugin.
|
static NeoLoadPluginOptions |
getPluginOptions(hudson.model.Job<?,?> project)
Gets plugin options.
|
static List<ServerInfo> |
getServerInfos(boolean collab) |
static hudson.util.ListBoxModel |
getServerInfosListBox(boolean collab) |
static List<String> |
getXMLReportPaths(hudson.model.AbstractBuild<?,?> build)
Gets xml report paths.
|
static List<String> |
getXMLReportPaths(hudson.model.Run<?,?> build)
Gets xml report paths.
|
static boolean |
isSAP(String licenseVUSAPCount) |
static List<String> |
removeAllEmpties(String... originalStrings)
removes empty strings from a list.
|
static String |
removeWorkspaceOrRelativePoint(String report)
Remove workspace or relative point string.
|
static hudson.util.FormValidation |
validateFileExists(String file,
String[] extensions,
boolean checkExtension,
boolean checkInPath)
Check if the given string points to a file on local machine.
|
static hudson.util.FormValidation |
validateURL(String url)
Validate url form validation.
|
static hudson.util.FormValidation |
validateWarnIfEmpty(String fieldValue,
String displayName)
Validate warn if empty form validation.
|
public static final LockManager GRAPH_LOCK
public static final String EMPTY_SERVER_MESSAGE
public static NeoLoadPluginOptions getPluginOptions(hudson.model.AbstractProject<?,?> project)
project
- the projectpublic static NeoLoadPluginOptions getPluginOptions(hudson.model.Job<?,?> project)
project
- the projectpublic static NeoBuildAction getNeoBuildAction(hudson.model.AbstractProject<?,?> project)
project
- the projectpublic static NeoResultsAction getNeoResultAction(hudson.model.AbstractBuild<?,?> build)
build
- the buildpublic static NeoResultsAction getNeoResultAction(hudson.model.Run<?,?> build)
build
- the buildpublic static hudson.util.FormValidation validateWarnIfEmpty(String fieldValue, String displayName)
fieldValue
- the field valuedisplayName
- the display namepublic static hudson.util.FormValidation formValidationErrorToWarning(hudson.util.FormValidation formValidation)
formValidation
- the form validationpublic static hudson.util.FormValidation validateURL(String url)
url
- the urlpublic static List<String> removeAllEmpties(String... originalStrings)
originalStrings
- the original stringspublic static hudson.util.FormValidation validateFileExists(String file, String[] extensions, boolean checkExtension, boolean checkInPath)
file
- the fileextensions
- the extensioncheckExtension
- the check extensioncheckInPath
- the check in pathpublic static List<String> getHTMLReportPaths(hudson.model.AbstractBuild<?,?> build, String firstPath)
build
- the buildfirstPath
- the first pathpublic static List<String> getHTMLReportPaths(hudson.model.Run<?,?> build, String firstPath)
build
- the buildfirstPath
- the first pathpublic static List<String> getXMLReportPaths(hudson.model.AbstractBuild<?,?> build)
build
- the buildpublic static List<String> getXMLReportPaths(hudson.model.Run<?,?> build)
build
- the buildpublic static String removeWorkspaceOrRelativePoint(String report)
report
- the reportpublic static hudson.model.Run.Artifact findArtifact(List<String> paths, hudson.model.AbstractBuild<?,?> build)
paths
- the pathsbuild
- the buildpublic static hudson.model.Run.Artifact findArtifact(List<String> paths, hudson.model.Run<?,?> build)
paths
- the pathsbuild
- the buildpublic static hudson.model.Run.Artifact findArtifacts(List<String> paths, List artifacts, int buildnumber)
public static Float getCustom(String path, Document doc) throws XPathExpressionException
path
- the pathdoc
- the docXPathExpressionException
- the x path expression exceptionpublic static File getPicturesFolder(hudson.model.AbstractProject<?,?> project)
project
- the projectpublic static File getPicturesFolder(hudson.model.Job<?,?> project)
project
- the projectpublic static void buildGraph(File picturesFolder, NeoLoadPluginOptions npo, hudson.model.AbstractProject<?,?> project)
picturesFolder
- the pictures foldernpo
- the npoproject
- the projectpublic static void buildGraph(File picturesFolder, NeoLoadPluginOptions npo, hudson.model.Job<?,?> project)
picturesFolder
- the pictures foldernpo
- the npoproject
- the projectpublic static void buildGraph(hudson.model.AbstractProject project)
project
- the projectpublic static void buildGraph(hudson.model.Job project)
project
- the projectpublic Object convert(Class type, Object value)
convert
in interface org.apache.commons.beanutils.Converter
public static NeoGlobalConfig.DescriptorImpl getNeoGlobalConfig()
public static List<ServerInfo> getServerInfos(boolean collab)
public static hudson.util.ListBoxModel getServerInfosListBox(boolean collab)
public static String forgeArtifactoryPath(NeoBuildAction neoBuildAction)
public static boolean isSAP(String licenseVUSAPCount)
Copyright © 2004-2021. All Rights Reserved.