public class Util extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Util.Branchdetails |
Modifier and Type | Field and Description |
---|---|
static String |
ADD_ITEM_REGEX |
static String |
ITEM_REGEX |
static String |
MAIL_REGEX |
static String |
PROJECT_REGEX |
static String |
RELEASE_REGEX |
static String |
SPRINTSANDITEMREGEX |
Constructor and Description |
---|
Util() |
Modifier and Type | Method and Description |
---|---|
static String |
expandContent(hudson.model.AbstractBuild<?,?> build,
hudson.model.BuildListener listener,
String key) |
static String |
expandContent(hudson.model.AbstractBuild<?,?> build,
String notes)
Deprecated.
|
static String |
getAdminMailid() |
static String |
getBuildTriggererUserId(hudson.model.Run run) |
static String |
getCurrentUserMailId(hudson.model.AbstractBuild<?,?> build)
Deprecated.
|
static String |
getCurrentUserMailId(hudson.model.Run<?,?> run)
Deprecated.
|
static hudson.util.ListBoxModel |
getOnFailureCase() |
static String |
getResourcePath()
It will get Resourse path of Plugin
Path like /plugin/artifect-id/
|
static SprintsConfig |
getSprintsGlobalConfig() |
static String |
getSprintsIconByAuth() |
static String |
getStringFromJSONArray(org.json.JSONArray arr) |
static boolean |
isAuthendicated() |
static boolean |
isProxyConfigured() |
static boolean |
markBuildAsFailed(hudson.model.AbstractBuild<?,?> build,
hudson.model.BuildListener listener,
String value) |
static Object |
parseResponse(String resp,
String key) |
String |
removeScriptContent(String str)
remove script related content for antisemy filter
|
static String |
sprintsLogparser(String message,
boolean isError)
While write a messge in console Log Zoho Sprints message alone higlighted with Product name
|
static hudson.util.FormValidation |
valueCheck(String value) |
public static final String SPRINTSANDITEMREGEX
public static final String PROJECT_REGEX
public static final String RELEASE_REGEX
public static final String ADD_ITEM_REGEX
public static final String ITEM_REGEX
public static final String MAIL_REGEX
public static hudson.util.FormValidation valueCheck(String value)
value
- value to be validatedpublic static hudson.util.ListBoxModel getOnFailureCase()
public static boolean markBuildAsFailed(hudson.model.AbstractBuild<?,?> build, hudson.model.BuildListener listener, String value)
build
- Abstarct build Objectlistener
- BuildListner Object of Buildvalue
- value to be checked@Deprecated public static String expandContent(hudson.model.AbstractBuild<?,?> build, String notes)
build
- Abstarct build Object of buildnotes
- key to be get original Valuepublic static String expandContent(hudson.model.AbstractBuild<?,?> build, hudson.model.BuildListener listener, String key)
build
- Abstarct build Object of Buildlistener
- Listener of buildkey
- key to be get original Valuepublic static Object parseResponse(String resp, String key)
resp
- json stringkey
- key need to be getpublic static String getStringFromJSONArray(org.json.JSONArray arr)
arr
- jsonarraypublic static String sprintsLogparser(String message, boolean isError)
message
- Meesage to parse for Sprints Pluginpublic String removeScriptContent(String str)
str
- value to be removed for script contentpublic static String getResourcePath()
public static String getSprintsIconByAuth()
@Deprecated public static String getCurrentUserMailId(hudson.model.Run<?,?> run)
run
- run Object if the Current build@Deprecated public static String getCurrentUserMailId(hudson.model.AbstractBuild<?,?> build)
build
- Abstract build Object of the buildpublic static String getAdminMailid()
public static String getBuildTriggererUserId(hudson.model.Run run)
run
- run object of the buildpublic static boolean isProxyConfigured()
public static boolean isAuthendicated()
@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public static SprintsConfig getSprintsGlobalConfig()
Copyright © 2016–2021. All rights reserved.