org.apache.continuum.builder.utils
Class ContinuumBuildConstant
java.lang.Object
org.apache.continuum.builder.utils.ContinuumBuildConstant
public class ContinuumBuildConstant
- extends Object
Method Summary |
static String |
getArtifactId(Map<String,Object> context)
|
protected static boolean |
getBoolean(Map<String,Object> context,
String key)
|
protected static boolean |
getBoolean(Map<String,Object> context,
String key,
boolean defaultValue)
|
static String |
getBuildAgentUrl(Map<String,Object> context)
|
static int |
getBuildDefinitionId(Map<String,Object> context)
|
static String |
getBuildDefinitionLabel(Map<String,Object> context)
|
static String |
getBuildError(Map<String,Object> context)
|
static int |
getBuildExitCode(Map<String,Object> context)
|
static String |
getBuildOutput(Map<String,Object> context)
|
static BuildResult |
getBuildResult(Map<String,Object> context,
Object defaultValue)
|
static int |
getBuildState(Map<String,Object> context)
|
static BuildTrigger |
getBuildTrigger(Map<String,Object> context)
|
static String |
getChangeFileName(Map<String,Object> context)
|
static String |
getChangeFileRevision(Map<String,Object> context)
|
static String |
getChangeFileStatus(Map<String,Object> context)
|
static String |
getChangeSetAuthor(Map<String,Object> context)
|
static String |
getChangeSetComment(Map<String,Object> context)
|
static long |
getChangeSetDate(Map<String,Object> context)
|
static List<Map<String,Object>> |
getChangeSetFiles(Map<String,Object> context)
|
protected static Date |
getDate(Map<String,Object> context,
String key)
|
static String |
getDeveloperEmail(Map<String,Object> context)
|
static String |
getDeveloperName(Map<String,Object> context)
|
static String |
getDeveloperScmId(Map<String,Object> context)
|
static long |
getEndTime(Map<String,Object> context)
|
static String |
getGroupId(Map<String,Object> context)
|
static String |
getInstallationName(Map<String,Object> context)
|
static String |
getInstallationType(Map<String,Object> context)
|
static String |
getInstallationVarName(Map<String,Object> context)
|
static String |
getInstallationVarValue(Map<String,Object> context)
|
protected static int |
getInteger(Map<String,Object> context,
String key)
|
static Date |
getLatestUpdateDate(Map<String,Object> context)
|
protected static List |
getList(Map<String,Object> context,
String key)
|
protected static Map |
getMap(Map<String,Object> context,
String key)
|
static Map<String,Object> |
getMavenProject(Map<String,Object> context)
|
static Map |
getNotifierConfiguration(Map<String,Object> context)
|
static int |
getNotifierFrom(Map<String,Object> context)
|
static int |
getNotifierRecipientType(Map<String,Object> context)
|
static String |
getNotifierType(Map<String,Object> context)
|
protected static Object |
getObject(Map<String,Object> context,
String key)
|
protected static Object |
getObject(Map<String,Object> context,
String key,
Object defaultValue)
|
static List<Map<String,Object>> |
getProjectDependencies(Map<String,Object> context)
|
static String |
getProjectDescription(Map<String,Object> context)
|
static List<Map<String,Object>> |
getProjectDevelopers(Map<String,Object> context)
|
static int |
getProjectGroupId(Map<String,Object> context)
|
static int |
getProjectId(Map<String,Object> context)
|
static List<String> |
getProjectModules(Map<String,Object> context)
|
static String |
getProjectName(Map<String,Object> context)
|
static List<Map<String,Object>> |
getProjectNotifiers(Map<String,Object> context)
|
static Map<String,Object> |
getProjectParent(Map<String,Object> context)
|
static String |
getProjectUrl(Map<String,Object> context)
|
static List<Map<String,Object>> |
getScmChanges(Map<String,Object> context)
|
static String |
getScmCommandLine(Map<String,Object> context)
|
static String |
getScmCommandOutput(Map<String,Object> context)
|
static String |
getScmError(Map<String,Object> context)
|
static String |
getScmException(Map<String,Object> context)
|
static String |
getScmProviderMessage(Map<String,Object> context)
|
static Map<String,Object> |
getScmResult(Map<String,Object> context)
|
static String |
getScmRootAddress(Map<String,Object> context)
|
static int |
getScmRootId(Map<String,Object> context)
|
static String |
getScmTag(Map<String,Object> context)
|
static String |
getScmUrl(Map<String,Object> context)
|
static long |
getStartTime(Map<String,Object> context)
|
protected static String |
getString(Map<String,Object> context,
String key)
|
protected static String |
getString(Map<String,Object> context,
String key,
String defaultValue)
|
static int |
getTrigger(Map<String,Object> context)
|
static String |
getUsername(Map<String,Object> context)
|
static String |
getVersion(Map<String,Object> context)
|
static boolean |
isNotifierEnabled(Map<String,Object> context)
|
static boolean |
isNotifierSendOnError(Map<String,Object> context)
|
static boolean |
isNotifierSendOnFailure(Map<String,Object> context)
|
static boolean |
isNotifierSendOnScmFailure(Map<String,Object> context)
|
static boolean |
isNotifierSendOnSuccess(Map<String,Object> context)
|
static boolean |
isNotifierSendOnWarning(Map<String,Object> context)
|
static boolean |
isScmSuccess(Map<String,Object> context)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KEY_PROJECT_ID
public static final String KEY_PROJECT_ID
- See Also:
- Constant Field Values
KEY_PROJECT_VERSION
public static final String KEY_PROJECT_VERSION
- See Also:
- Constant Field Values
KEY_PROJECT_BUILD_NUMBER
public static final String KEY_PROJECT_BUILD_NUMBER
- See Also:
- Constant Field Values
KEY_BUILD_DEFINITION_ID
public static final String KEY_BUILD_DEFINITION_ID
- See Also:
- Constant Field Values
KEY_BUILD_DEFINITION_LABEL
public static final String KEY_BUILD_DEFINITION_LABEL
- See Also:
- Constant Field Values
KEY_TRIGGER
public static final String KEY_TRIGGER
- See Also:
- Constant Field Values
KEY_USERNAME
public static final String KEY_USERNAME
- See Also:
- Constant Field Values
KEY_BUILD_TRIGGER
public static final String KEY_BUILD_TRIGGER
- See Also:
- Constant Field Values
KEY_EXECUTOR_ID
public static final String KEY_EXECUTOR_ID
- See Also:
- Constant Field Values
KEY_SCM_URL
public static final String KEY_SCM_URL
- See Also:
- Constant Field Values
KEY_SCM_USERNAME
public static final String KEY_SCM_USERNAME
- See Also:
- Constant Field Values
KEY_SCM_PASSWORD
public static final String KEY_SCM_PASSWORD
- See Also:
- Constant Field Values
KEY_BUILD_FILE
public static final String KEY_BUILD_FILE
- See Also:
- Constant Field Values
KEY_GOALS
public static final String KEY_GOALS
- See Also:
- Constant Field Values
KEY_ARGUMENTS
public static final String KEY_ARGUMENTS
- See Also:
- Constant Field Values
KEY_BUILD_FRESH
public static final String KEY_BUILD_FRESH
- See Also:
- Constant Field Values
KEY_ALWAYS_BUILD
public static final String KEY_ALWAYS_BUILD
- See Also:
- Constant Field Values
KEY_START_TIME
public static final String KEY_START_TIME
- See Also:
- Constant Field Values
KEY_END_TIME
public static final String KEY_END_TIME
- See Also:
- Constant Field Values
KEY_BUILD_ERROR
public static final String KEY_BUILD_ERROR
- See Also:
- Constant Field Values
KEY_BUILD_EXIT_CODE
public static final String KEY_BUILD_EXIT_CODE
- See Also:
- Constant Field Values
KEY_BUILD_STATE
public static final String KEY_BUILD_STATE
- See Also:
- Constant Field Values
KEY_SCM_COMMAND_OUTPUT
public static final String KEY_SCM_COMMAND_OUTPUT
- See Also:
- Constant Field Values
KEY_SCM_COMMAND_LINE
public static final String KEY_SCM_COMMAND_LINE
- See Also:
- Constant Field Values
KEY_SCM_PROVIDER_MESSAGE
public static final String KEY_SCM_PROVIDER_MESSAGE
- See Also:
- Constant Field Values
KEY_SCM_EXCEPTION
public static final String KEY_SCM_EXCEPTION
- See Also:
- Constant Field Values
KEY_SCM_SUCCESS
public static final String KEY_SCM_SUCCESS
- See Also:
- Constant Field Values
KEY_PROJECT_GROUP_ID
public static final String KEY_PROJECT_GROUP_ID
- See Also:
- Constant Field Values
KEY_PROJECT_GROUP_NAME
public static final String KEY_PROJECT_GROUP_NAME
- See Also:
- Constant Field Values
KEY_SCM_ROOT_ADDRESS
public static final String KEY_SCM_ROOT_ADDRESS
- See Also:
- Constant Field Values
KEY_SCM_ROOT_ID
public static final String KEY_SCM_ROOT_ID
- See Also:
- Constant Field Values
KEY_SCM_ERROR
public static final String KEY_SCM_ERROR
- See Also:
- Constant Field Values
KEY_PROJECT_NAME
public static final String KEY_PROJECT_NAME
- See Also:
- Constant Field Values
KEY_BUILD_OUTPUT
public static final String KEY_BUILD_OUTPUT
- See Also:
- Constant Field Values
KEY_BUILD_RESULT
public static final String KEY_BUILD_RESULT
- See Also:
- Constant Field Values
KEY_PROJECT_STATE
public static final String KEY_PROJECT_STATE
- See Also:
- Constant Field Values
KEY_INSTALLATION_NAME
public static final String KEY_INSTALLATION_NAME
- See Also:
- Constant Field Values
KEY_INSTALLATION_TYPE
public static final String KEY_INSTALLATION_TYPE
- See Also:
- Constant Field Values
KEY_INSTALLATION_VAR_NAME
public static final String KEY_INSTALLATION_VAR_NAME
- See Also:
- Constant Field Values
KEY_INSTALLATION_VAR_VALUE
public static final String KEY_INSTALLATION_VAR_VALUE
- See Also:
- Constant Field Values
KEY_LOCAL_REPOSITORY
public static final String KEY_LOCAL_REPOSITORY
- See Also:
- Constant Field Values
KEY_SCM_CHANGES
public static final String KEY_SCM_CHANGES
- See Also:
- Constant Field Values
KEY_CHANGESET_ID
public static final String KEY_CHANGESET_ID
- See Also:
- Constant Field Values
KEY_CHANGESET_AUTHOR
public static final String KEY_CHANGESET_AUTHOR
- See Also:
- Constant Field Values
KEY_CHANGESET_COMMENT
public static final String KEY_CHANGESET_COMMENT
- See Also:
- Constant Field Values
KEY_CHANGESET_DATE
public static final String KEY_CHANGESET_DATE
- See Also:
- Constant Field Values
KEY_CHANGESET_FILES
public static final String KEY_CHANGESET_FILES
- See Also:
- Constant Field Values
KEY_CHANGEFILE_NAME
public static final String KEY_CHANGEFILE_NAME
- See Also:
- Constant Field Values
KEY_CHANGEFILE_REVISION
public static final String KEY_CHANGEFILE_REVISION
- See Also:
- Constant Field Values
KEY_CHANGEFILE_STATUS
public static final String KEY_CHANGEFILE_STATUS
- See Also:
- Constant Field Values
KEY_OLD_SCM_CHANGES
public static final String KEY_OLD_SCM_CHANGES
- See Also:
- Constant Field Values
KEY_PROJECT_DESCRIPTION
public static final String KEY_PROJECT_DESCRIPTION
- See Also:
- Constant Field Values
KEY_GROUP_ID
public static final String KEY_GROUP_ID
- See Also:
- Constant Field Values
KEY_ARTIFACT_ID
public static final String KEY_ARTIFACT_ID
- See Also:
- Constant Field Values
KEY_PROJECT_DEVELOPERS
public static final String KEY_PROJECT_DEVELOPERS
- See Also:
- Constant Field Values
KEY_PROJECT_DEPENDENCIES
public static final String KEY_PROJECT_DEPENDENCIES
- See Also:
- Constant Field Values
KEY_PROJECT_NOTIFIERS
public static final String KEY_PROJECT_NOTIFIERS
- See Also:
- Constant Field Values
KEY_PROJECT_URL
public static final String KEY_PROJECT_URL
- See Also:
- Constant Field Values
KEY_SCM_TAG
public static final String KEY_SCM_TAG
- See Also:
- Constant Field Values
KEY_SCM_RESULT
public static final String KEY_SCM_RESULT
- See Also:
- Constant Field Values
KEY_PROJECT_PARENT
public static final String KEY_PROJECT_PARENT
- See Also:
- Constant Field Values
KEY_NOTIFIER_TYPE
public static final String KEY_NOTIFIER_TYPE
- See Also:
- Constant Field Values
KEY_NOTIFIER_CONFIGURATION
public static final String KEY_NOTIFIER_CONFIGURATION
- See Also:
- Constant Field Values
KEY_NOTIFIER_FROM
public static final String KEY_NOTIFIER_FROM
- See Also:
- Constant Field Values
KEY_NOTIFIER_RECIPIENT_TYPE
public static final String KEY_NOTIFIER_RECIPIENT_TYPE
- See Also:
- Constant Field Values
KEY_NOTIFIER_ENABLED
public static final String KEY_NOTIFIER_ENABLED
- See Also:
- Constant Field Values
KEY_NOTIFIER_SEND_ON_SUCCESS
public static final String KEY_NOTIFIER_SEND_ON_SUCCESS
- See Also:
- Constant Field Values
KEY_NOTIFIER_SEND_ON_FAILURE
public static final String KEY_NOTIFIER_SEND_ON_FAILURE
- See Also:
- Constant Field Values
KEY_NOTIFIER_SEND_ON_ERROR
public static final String KEY_NOTIFIER_SEND_ON_ERROR
- See Also:
- Constant Field Values
KEY_NOTIFIER_SEND_ON_SCMFAILURE
public static final String KEY_NOTIFIER_SEND_ON_SCMFAILURE
- See Also:
- Constant Field Values
KEY_NOTIFIER_SEND_ON_WARNING
public static final String KEY_NOTIFIER_SEND_ON_WARNING
- See Also:
- Constant Field Values
KEY_PROJECT_DEVELOPER_NAME
public static final String KEY_PROJECT_DEVELOPER_NAME
- See Also:
- Constant Field Values
KEY_PROJECT_DEVELOPER_EMAIL
public static final String KEY_PROJECT_DEVELOPER_EMAIL
- See Also:
- Constant Field Values
KEY_PROJECT_DEVELOPER_SCMID
public static final String KEY_PROJECT_DEVELOPER_SCMID
- See Also:
- Constant Field Values
KEY_MAVEN_PROJECT
public static final String KEY_MAVEN_PROJECT
- See Also:
- Constant Field Values
KEY_PROJECT_MODULES
public static final String KEY_PROJECT_MODULES
- See Also:
- Constant Field Values
KEY_LATEST_UPDATE_DATE
public static final String KEY_LATEST_UPDATE_DATE
- See Also:
- Constant Field Values
KEY_BUILD_AGENT_URL
public static final String KEY_BUILD_AGENT_URL
- See Also:
- Constant Field Values
KEY_MAX_JOB_EXEC_TIME
public static final String KEY_MAX_JOB_EXEC_TIME
- See Also:
- Constant Field Values
ContinuumBuildConstant
public ContinuumBuildConstant()
getProjectId
public static int getProjectId(Map<String,Object> context)
getBuildDefinitionId
public static int getBuildDefinitionId(Map<String,Object> context)
getBuildError
public static String getBuildError(Map<String,Object> context)
getTrigger
public static int getTrigger(Map<String,Object> context)
getUsername
public static String getUsername(Map<String,Object> context)
getBuildTrigger
public static BuildTrigger getBuildTrigger(Map<String,Object> context)
getStartTime
public static long getStartTime(Map<String,Object> context)
getEndTime
public static long getEndTime(Map<String,Object> context)
getBuildExitCode
public static int getBuildExitCode(Map<String,Object> context)
getBuildState
public static int getBuildState(Map<String,Object> context)
getScmCommandLine
public static String getScmCommandLine(Map<String,Object> context)
getScmCommandOutput
public static String getScmCommandOutput(Map<String,Object> context)
getScmException
public static String getScmException(Map<String,Object> context)
getScmProviderMessage
public static String getScmProviderMessage(Map<String,Object> context)
isScmSuccess
public static boolean isScmSuccess(Map<String,Object> context)
getProjectGroupId
public static int getProjectGroupId(Map<String,Object> context)
getScmRootAddress
public static String getScmRootAddress(Map<String,Object> context)
getScmError
public static String getScmError(Map<String,Object> context)
getBuildOutput
public static String getBuildOutput(Map<String,Object> context)
getBuildResult
public static BuildResult getBuildResult(Map<String,Object> context,
Object defaultValue)
getInstallationName
public static String getInstallationName(Map<String,Object> context)
getInstallationType
public static String getInstallationType(Map<String,Object> context)
getInstallationVarValue
public static String getInstallationVarValue(Map<String,Object> context)
getInstallationVarName
public static String getInstallationVarName(Map<String,Object> context)
getScmChanges
public static List<Map<String,Object>> getScmChanges(Map<String,Object> context)
getChangeSetAuthor
public static String getChangeSetAuthor(Map<String,Object> context)
getChangeSetComment
public static String getChangeSetComment(Map<String,Object> context)
getChangeSetDate
public static long getChangeSetDate(Map<String,Object> context)
getChangeSetFiles
public static List<Map<String,Object>> getChangeSetFiles(Map<String,Object> context)
getChangeFileName
public static String getChangeFileName(Map<String,Object> context)
getChangeFileRevision
public static String getChangeFileRevision(Map<String,Object> context)
getChangeFileStatus
public static String getChangeFileStatus(Map<String,Object> context)
getGroupId
public static String getGroupId(Map<String,Object> context)
getArtifactId
public static String getArtifactId(Map<String,Object> context)
getVersion
public static String getVersion(Map<String,Object> context)
getProjectName
public static String getProjectName(Map<String,Object> context)
getProjectDescription
public static String getProjectDescription(Map<String,Object> context)
getProjectUrl
public static String getProjectUrl(Map<String,Object> context)
getScmUrl
public static String getScmUrl(Map<String,Object> context)
getScmTag
public static String getScmTag(Map<String,Object> context)
getProjectParent
public static Map<String,Object> getProjectParent(Map<String,Object> context)
getProjectDevelopers
public static List<Map<String,Object>> getProjectDevelopers(Map<String,Object> context)
getDeveloperName
public static String getDeveloperName(Map<String,Object> context)
getDeveloperEmail
public static String getDeveloperEmail(Map<String,Object> context)
getDeveloperScmId
public static String getDeveloperScmId(Map<String,Object> context)
getProjectDependencies
public static List<Map<String,Object>> getProjectDependencies(Map<String,Object> context)
getProjectNotifiers
public static List<Map<String,Object>> getProjectNotifiers(Map<String,Object> context)
getNotifierConfiguration
public static Map getNotifierConfiguration(Map<String,Object> context)
getNotifierFrom
public static int getNotifierFrom(Map<String,Object> context)
getNotifierRecipientType
public static int getNotifierRecipientType(Map<String,Object> context)
getNotifierType
public static String getNotifierType(Map<String,Object> context)
isNotifierEnabled
public static boolean isNotifierEnabled(Map<String,Object> context)
isNotifierSendOnError
public static boolean isNotifierSendOnError(Map<String,Object> context)
isNotifierSendOnFailure
public static boolean isNotifierSendOnFailure(Map<String,Object> context)
isNotifierSendOnScmFailure
public static boolean isNotifierSendOnScmFailure(Map<String,Object> context)
isNotifierSendOnSuccess
public static boolean isNotifierSendOnSuccess(Map<String,Object> context)
isNotifierSendOnWarning
public static boolean isNotifierSendOnWarning(Map<String,Object> context)
getScmResult
public static Map<String,Object> getScmResult(Map<String,Object> context)
getMavenProject
public static Map<String,Object> getMavenProject(Map<String,Object> context)
getProjectModules
public static List<String> getProjectModules(Map<String,Object> context)
getLatestUpdateDate
public static Date getLatestUpdateDate(Map<String,Object> context)
getBuildAgentUrl
public static String getBuildAgentUrl(Map<String,Object> context)
getScmRootId
public static int getScmRootId(Map<String,Object> context)
getBuildDefinitionLabel
public static String getBuildDefinitionLabel(Map<String,Object> context)
getString
protected static String getString(Map<String,Object> context,
String key)
getString
protected static String getString(Map<String,Object> context,
String key,
String defaultValue)
getBoolean
protected static boolean getBoolean(Map<String,Object> context,
String key)
getBoolean
protected static boolean getBoolean(Map<String,Object> context,
String key,
boolean defaultValue)
getInteger
protected static int getInteger(Map<String,Object> context,
String key)
getDate
protected static Date getDate(Map<String,Object> context,
String key)
getList
protected static List getList(Map<String,Object> context,
String key)
getMap
protected static Map getMap(Map<String,Object> context,
String key)
getObject
protected static Object getObject(Map<String,Object> context,
String key)
getObject
protected static Object getObject(Map<String,Object> context,
String key,
Object defaultValue)
Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.