public final class PluginUtils extends Object implements Serializable, org.apache.commons.beanutils.Converter
| Modifier and Type | Field and Description |
|---|---|
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.
|
ServerInfo |
convert(Class type,
Object value)
Convert server info.
|
static String |
decode(String text)
Decode string.
|
static String |
encode(String text)
Encode string.
|
static hudson.model.Run.Artifact |
findArtifact(List<String> paths,
hudson.model.AbstractBuild<?,?> build)
Find artifact run .
|
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 NeoBuildAction |
getNeoBuildAction(hudson.model.AbstractProject<?,?> project)
Get the configured instance for the plugin.
|
static NeoResultsAction |
getNeoResultAction(hudson.model.AbstractBuild<?,?> build)
Get neo result action neo results action.
|
static File |
getPicturesFolder(hudson.model.AbstractProject<?,?> project)
Gets pictures folder.
|
static NeoLoadPluginOptions |
getPluginOptions(hudson.model.AbstractProject<?,?> project)
Get the configured instance for the plugin.
|
static List<String> |
getXMLReportPaths(hudson.model.AbstractBuild<?,?> build)
Gets xml report paths.
|
static List<String> |
removeAllEmpties(String... originalStrings)
removes empty strings from a list.
|
static String |
removeWorkspace(String report)
Remove workspace string.
|
static Calendar |
toCalendar(Date date)
This could be DateUtils.toCalendar instead but then I would have to deal with maven dependencies again.
|
static hudson.util.FormValidation |
validateFileExists(String file,
String extension,
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 String encode(String text) throws org.apache.commons.codec.EncoderException
text - the textorg.apache.commons.codec.EncoderException - the encoder exceptionpublic static String decode(String text) throws org.apache.commons.codec.DecoderException
text - the textorg.apache.commons.codec.DecoderException - the decoder exceptionpublic static NeoLoadPluginOptions getPluginOptions(hudson.model.AbstractProject<?,?> 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 Calendar toCalendar(Date date)
date - the datepublic ServerInfo convert(Class type, Object value)
convert in interface org.apache.commons.beanutils.Convertertype - the typevalue - the valuepublic 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 extension, boolean checkExtension, boolean checkInPath)
file - the fileextension - 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> getXMLReportPaths(hudson.model.AbstractBuild<?,?> build)
build - the buildpublic static String removeWorkspace(String report)
report - the reportpublic static hudson.model.Run.Artifact findArtifact(List<String> paths, hudson.model.AbstractBuild<?,?> build)
paths - the pathsbuild - the buildpublic 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 void buildGraph(File picturesFolder, NeoLoadPluginOptions npo, hudson.model.AbstractProject<?,?> project)
picturesFolder - the pictures foldernpo - the npoproject - the projectpublic static void buildGraph(hudson.model.AbstractProject project)
project - the projectCopyright © 2004-2018. All Rights Reserved.