public interface IGerritHudsonTriggerConfig
extends com.sonymobile.tools.gerrit.gerritevents.GerritConnectionConfig2
Modifier and Type | Method and Description |
---|---|
BuildCancellationPolicy |
getBuildCurrentPatchesOnly()
The object containing information regarding if old builds should
be cancelled when new builds are triggered.
|
int |
getBuildScheduleDelay()
Returns the BuildScheduleDelay.
|
List<VerdictCategory> |
getCategories()
Get the list of available VerdictCategories.
|
int |
getDynamicConfigRefreshInterval()
Returns the dynamicConfigRefreshInterval.
|
hudson.util.Secret |
getGerritAuthKeyFileSecretPassword()
The instance of
Secret which has a password for the private key, or null if there is none. |
Integer |
getGerritBuildFailedCodeReviewValue()
The default code review value for build failed.
|
Integer |
getGerritBuildFailedVerifiedValue()
The default verified value for build failed.
|
Integer |
getGerritBuildNotBuiltCodeReviewValue()
The default code review value for build not built.
|
Integer |
getGerritBuildNotBuiltVerifiedValue()
The default verified value for build not built.
|
Integer |
getGerritBuildStartedCodeReviewValue()
The default code review value for build started.
|
Integer |
getGerritBuildStartedVerifiedValue()
The default verified value for build started.
|
Integer |
getGerritBuildSuccessfulCodeReviewValue()
The default code review value for build successful.
|
Integer |
getGerritBuildSuccessfulVerifiedValue()
The default verified value for build successful.
|
Integer |
getGerritBuildUnstableCodeReviewValue()
The default code review value for build unstable.
|
Integer |
getGerritBuildUnstableVerifiedValue()
The default verified value for build unstable.
|
String |
getGerritCmdBuildFailed()
The command template to use when sending build-failed messages to Gerrit.
|
String |
getGerritCmdBuildNotBuilt()
The command template to use when sending build-not-built messages to Gerrit.
|
String |
getGerritCmdBuildStarted()
The command template to use when sending build-started messages to Gerrit.
|
String |
getGerritCmdBuildSuccessful()
The command template to use when sending build-successful messages to Gerrit.
|
String |
getGerritCmdBuildUnstable()
The command template to use when sending build-unstable messages to Gerrit.
|
String |
getGerritFrontEndUrl()
Base URL for the Gerrit UI.
|
String |
getGerritFrontEndUrlFor(com.sonymobile.tools.gerrit.gerritevents.dto.events.GerritTriggeredEvent event)
Creates a URL to the provided changeset number.
|
String |
getGerritFrontEndUrlFor(String number,
String revision)
Creates a URL to the provided changeset number.
|
String |
getGerritHttpPassword()
The password for the HTTP REST API.
|
hudson.util.Secret |
getGerritHttpSecretPassword()
The instance of
Secret which has a password for the HTTP REST API, or null if there is none. |
String |
getGerritHttpUserName()
The user name for the HTTP REST API.
|
com.sonymobile.tools.gerrit.gerritevents.dto.rest.Notify |
getNotificationLevel()
Returns whom to notify.
|
int |
getNumberOfReceivingWorkerThreads()
Deprecated.
|
int |
getNumberOfSendingWorkerThreads()
Deprecated.
|
int |
getProjectListFetchDelay()
Returns the projectListFetchDelay.
|
int |
getProjectListRefreshInterval()
Returns the projectListFetchDelay.
|
ReplicationConfig |
getReplicationConfig()
The configurations related to event replication.
|
boolean |
hasDefaultValues()
If the plugin still has default values for hostname and frontendurl.
|
boolean |
isEnableManualTrigger()
If the manual trigger is enabled (shown to users) or not.
|
boolean |
isEnablePluginMessages()
If other plugins are allowed to contribute messages to be forwarded
to Gerrit.
|
boolean |
isEnableProjectAutoCompletion()
If this Gerrit server should be used to fetch project names for auto completion.
|
boolean |
isGerritBuildCurrentPatchesOnly()
If enabled, then old patch revision builds will be canceled.
|
boolean |
isRestCodeReview()
If Code-Review label should be provided to REST API for ReviewInput.
|
boolean |
isRestVerified()
If Verified label should be provided to REST API for ReviewInput.
|
boolean |
isUseRestApi()
If the HTTP REST API should be used for change approval instead of the sh API.
|
void |
setCategories(List<VerdictCategory> categories)
Set the list of available VerdictCategories.
|
void |
setNumberOfSendingWorkerThreads(int numberOfSendingWorkerThreads)
NumberOfSendingWorkerThreads.
|
void |
setValues(net.sf.json.JSONObject form)
Sets all config values from the provided JSONObject.
|
getExceptionData, getWatchdogTimeoutMinutes, getWatchdogTimeoutSeconds
getGerritEMail
boolean isGerritBuildCurrentPatchesOnly()
BuildCancellationPolicy getBuildCurrentPatchesOnly()
String getGerritFrontEndUrl()
getGerritFrontEndUrl
in interface com.sonymobile.tools.gerrit.gerritevents.GerritConnectionConfig
getGerritFrontEndUrl
in interface com.sonymobile.tools.gerrit.gerritevents.rest.RestConnectionConfig
String getGerritCmdBuildStarted()
String getGerritCmdBuildSuccessful()
String getGerritCmdBuildFailed()
String getGerritCmdBuildUnstable()
String getGerritCmdBuildNotBuilt()
Integer getGerritBuildStartedVerifiedValue()
Integer getGerritBuildStartedCodeReviewValue()
Integer getGerritBuildSuccessfulVerifiedValue()
Integer getGerritBuildSuccessfulCodeReviewValue()
Integer getGerritBuildFailedVerifiedValue()
Integer getGerritBuildFailedCodeReviewValue()
Integer getGerritBuildUnstableVerifiedValue()
Integer getGerritBuildUnstableCodeReviewValue()
Integer getGerritBuildNotBuiltVerifiedValue()
Integer getGerritBuildNotBuiltCodeReviewValue()
void setValues(net.sf.json.JSONObject form)
form
- the JSON object with form data.String getGerritFrontEndUrlFor(String number, String revision)
number
- the changeset numberrevision
- the patch set number (currently not used)getGerritFrontEndUrl()
+ / + numbergetGerritFrontEndUrl()
String getGerritFrontEndUrlFor(com.sonymobile.tools.gerrit.gerritevents.dto.events.GerritTriggeredEvent event)
event
- the gerrit triggered eventgetGerritFrontEndUrlFor(String, String)
List<VerdictCategory> getCategories()
void setCategories(List<VerdictCategory> categories)
categories
- the list.boolean isEnableManualTrigger()
int getBuildScheduleDelay()
int getDynamicConfigRefreshInterval()
int getProjectListFetchDelay()
int getProjectListRefreshInterval()
boolean isEnableProjectAutoCompletion()
boolean hasDefaultValues()
boolean isEnablePluginMessages()
boolean isUseRestApi()
hudson.util.Secret getGerritHttpSecretPassword()
Secret
which has a password for the HTTP REST API, or null if there is none.Secret
.String getGerritHttpPassword()
boolean isRestCodeReview()
boolean isRestVerified()
String getGerritHttpUserName()
ReplicationConfig getReplicationConfig()
void setNumberOfSendingWorkerThreads(int numberOfSendingWorkerThreads)
numberOfSendingWorkerThreads
- nr of threads.@Deprecated int getNumberOfReceivingWorkerThreads()
@Deprecated int getNumberOfSendingWorkerThreads()
com.sonymobile.tools.gerrit.gerritevents.dto.rest.Notify getNotificationLevel()
hudson.util.Secret getGerritAuthKeyFileSecretPassword()
Secret
which has a password for the private key, or null if there is none.Secret
.Copyright © 2016–2017. All rights reserved.