public class Config extends Object implements IGerritHudsonTriggerConfig
Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_BUILD_CURRENT_PATCHES_ONLY
Default value for
isGerritBuildCurrentPatchesOnly() . |
static boolean |
DEFAULT_ENABLE_MANUAL_TRIGGER
Default manual trigger enabled.
|
static boolean |
DEFAULT_ENABLE_PLUGIN_MESSAGES
Default plug-in messages enabled.
|
static boolean |
DEFAULT_ENABLE_PROJECT_AUTO_COMPLETION
Default value indicating if the Gerrit server should be used to fetch project names.
|
static int |
DEFAULT_GERRIT_BUILD_FAILURE_CODE_REVIEW_VALUE
Default code review vote to Gerrit when a build is failed.
|
static int |
DEFAULT_GERRIT_BUILD_FAILURE_VERIFIED_VALUE
Default verified vote to Gerrit when a build is failed.
|
static int |
DEFAULT_GERRIT_BUILD_NOT_BUILT_CODE_REVIEW_VALUE
Default code review vote to Gerrit when a build is not built.
|
static int |
DEFAULT_GERRIT_BUILD_NOT_BUILT_VERIFIED_VALUE
Default verified vote to Gerrit when a build is not built.
|
static int |
DEFAULT_GERRIT_BUILD_STARTED_CODE_REVIEW_VALUE
- * Default code review vote to Gerrit when a build is started.
|
static int |
DEFAULT_GERRIT_BUILD_STARTED_VERIFIED_VALUE
Default verified vote to Gerrit when a build is started.
|
static int |
DEFAULT_GERRIT_BUILD_SUCCESSFUL_CODE_REVIEW_VALUE
Default code review vote to Gerrit when a build is successful.
|
static int |
DEFAULT_GERRIT_BUILD_SUCCESSFUL_VERIFIED_VALUE
Default verified vote to Gerrit when a build is successful.
|
static int |
DEFAULT_GERRIT_BUILD_UNSTABLE_CODE_REVIEW_VALUE
Default code review vote to Gerrit when a build is unstable.
|
static int |
DEFAULT_GERRIT_BUILD_UNSTABLE_VERIFIED_VALUE
Default verified vote to Gerrit when a build is unstable.
|
static int |
DEFAULT_GERRIT_WATCHDOG_TIMEOUT_MINUTES
Default timeout value in minutes for the connection watchdog.
|
static com.sonymobile.tools.gerrit.gerritevents.dto.rest.Notify |
DEFAULT_NOTIFICATION_LEVEL
Global default for notification level.
|
static int |
DEFAULT_PROJECT_LIST_FETCH_DELAY
Default value showing how many seconds between startup and initial project list fetch.
|
static int |
DEFAULT_PROJECT_LIST_REFRESH_INTERVAL
Default value showing how many seconds between project list fetches.
|
static boolean |
DEFAULT_TRIGGER_ON_ALL_COMMENTS
Default value for the option to allow triggering on messages for any user.
|
Constructor and Description |
---|
Config()
Constructs a config with default data.
|
Config(IGerritHudsonTriggerConfig config)
Copy constructor.
|
Config(net.sf.json.JSONObject formData)
Constructor.
|
Config(net.sf.json.JSONObject formData,
org.kohsuke.stapler.StaplerRequest req)
Unused Constructor?
|
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.
|
com.sonymobile.tools.gerrit.gerritevents.watchdog.WatchTimeExceptionData |
getExceptionData() |
com.sonymobile.tools.gerrit.gerritevents.ssh.Authentication |
getGerritAuthentication() |
File |
getGerritAuthKeyFile() |
String |
getGerritAuthKeyFilePassword() |
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 |
getGerritEMail() |
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 changeSetNumber,
String revision)
Creates a URL to the provided changeset number.
|
String |
getGerritHostName() |
String |
getGerritHttpPassword()
The password for the HTTP REST API.
|
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.
|
String |
getGerritProxy() |
int |
getGerritSshPort() |
String |
getGerritUserName() |
org.apache.http.auth.Credentials |
getHttpCredentials() |
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.
|
int |
getWatchdogTimeoutMinutes()
Convenience getter for the jelly view.
|
int |
getWatchdogTimeoutSeconds() |
boolean |
hasDefaultValues()
If the plugin still has default values for hostname and frontendurl.
|
boolean |
isEnableManualTrigger()
Getter for the enableManualTrigger value.
|
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 |
isTriggerOnAllComments()
If comments added by the default user should trigger events.
|
boolean |
isUseRestApi()
If the HTTP REST API should be used for change approval instead of the sh API.
|
void |
setBuildScheduleDelay(int buildScheduleDelay)
Setting buildScheduleDelay.
|
void |
setCategories(List<VerdictCategory> categories)
Setter for the list of VerdictCategories, used to make testing easier.
|
void |
setDynamicConfigRefreshInterval(int dynamicConfigRefreshInterval)
Setting dynamicConfigRefreshInterval.
|
void |
setEnableManualTrigger(boolean enableManualTrigger)
Sets if the manual trigger should be enabled or not.
|
void |
setEnableProjectAutoCompletion(boolean enableProjectAutoCompletion)
If the project list should be fetched from the gerrit server or not.
|
void |
setGerritAuthKeyFile(File gerritAuthKeyFile)
GerritAuthKeyFile.
|
void |
setGerritAuthKeyFilePassword(String gerritAuthKeyFilePassword)
GerritAuthKeyFilePassword.
|
void |
setGerritEMail(String gerritEMail)
The e-mail address for the user in gerrit.
|
void |
setGerritFrontEndURL(String gerritFrontEndURL)
GerritFrontEndURL.
|
void |
setGerritHostName(String gerritHostName)
GerritHostName.
|
void |
setGerritHttpPassword(String gerritHttpPassword)
Sets gerritHttpPassword.
|
void |
setGerritHttpUserName(String gerritHttpUserName)
Sets gerritHttpUserName.
|
void |
setGerritProxy(String gerritProxy)
GerritProxy.
|
void |
setGerritSshPort(int gerritSshPort)
GerritSshPort.
|
void |
setGerritUserName(String gerritUserName)
GerritUserName.
|
void |
setGerritVerifiedCmdBuildFailed(String cmd)
GerritVerifiedCmdBuildFailed.
|
void |
setGerritVerifiedCmdBuildNotBuilt(String cmd)
GerritVerifiedCmdBuildNotBuilt.
|
void |
setGerritVerifiedCmdBuildStarted(String cmd)
GerritVerifiedCmdBuildStarted.
|
void |
setGerritVerifiedCmdBuildSuccessful(String cmd)
GerritVerifiedCmdBuildSuccessful.
|
void |
setGerritVerifiedCmdBuildUnstable(String cmd)
GerritVerifiedCmdBuildUnstable.
|
void |
setNotificationLevel(com.sonymobile.tools.gerrit.gerritevents.dto.rest.Notify notificationLevel)
Sets the value for whom to notify.
|
void |
setNumberOfReceivingWorkerThreads(int numberOfReceivingWorkerThreads)
Deprecated.
|
void |
setNumberOfSendingWorkerThreads(int numberOfSendingWorkerThreads)
Deprecated.
|
void |
setProjectListFetchDelay(int projectListFetchDelay)
Sets the delay from Jenkins startup before the project list should be fetched.
|
void |
setProjectListRefreshInterval(int projectListRefreshInterval)
The interval between recurrent fetches of the project list.
|
void |
setRestCodeReview(boolean restCodeReview)
Sets restCodeReview.
|
void |
setRestVerified(boolean restVerified)
Sets restVerified.
|
void |
setTriggerOnAllComments(boolean triggerOnAllComments)
Sets triggerOnAllComments.
|
void |
setUseRestApi(boolean useRestApi)
Sets useRestApi.
|
void |
setValues(net.sf.json.JSONObject formData)
Sets all config values from the provided JSONObject.
|
public static final int DEFAULT_GERRIT_BUILD_STARTED_VERIFIED_VALUE
public static final int DEFAULT_GERRIT_BUILD_UNSTABLE_VERIFIED_VALUE
public static final int DEFAULT_GERRIT_BUILD_FAILURE_VERIFIED_VALUE
public static final int DEFAULT_GERRIT_BUILD_SUCCESSFUL_VERIFIED_VALUE
public static final int DEFAULT_GERRIT_BUILD_NOT_BUILT_VERIFIED_VALUE
public static final int DEFAULT_GERRIT_BUILD_STARTED_CODE_REVIEW_VALUE
public static final int DEFAULT_GERRIT_BUILD_UNSTABLE_CODE_REVIEW_VALUE
public static final int DEFAULT_GERRIT_BUILD_FAILURE_CODE_REVIEW_VALUE
public static final int DEFAULT_GERRIT_BUILD_SUCCESSFUL_CODE_REVIEW_VALUE
public static final int DEFAULT_GERRIT_BUILD_NOT_BUILT_CODE_REVIEW_VALUE
public static final boolean DEFAULT_ENABLE_PROJECT_AUTO_COMPLETION
public static final int DEFAULT_PROJECT_LIST_FETCH_DELAY
public static final int DEFAULT_PROJECT_LIST_REFRESH_INTERVAL
Only used for Gerrit servers with version < 2.12
public static final int DEFAULT_GERRIT_WATCHDOG_TIMEOUT_MINUTES
public static final boolean DEFAULT_ENABLE_MANUAL_TRIGGER
public static final boolean DEFAULT_ENABLE_PLUGIN_MESSAGES
public static final boolean DEFAULT_TRIGGER_ON_ALL_COMMENTS
public static final boolean DEFAULT_BUILD_CURRENT_PATCHES_ONLY
isGerritBuildCurrentPatchesOnly()
.public static final com.sonymobile.tools.gerrit.gerritevents.dto.rest.Notify DEFAULT_NOTIFICATION_LEVEL
public Config(net.sf.json.JSONObject formData)
formData
- the data.public Config(IGerritHudsonTriggerConfig config)
config
- the Config object to be copied.public Config()
public Config(net.sf.json.JSONObject formData, org.kohsuke.stapler.StaplerRequest req)
formData
- the datareq
- a path.public void setValues(net.sf.json.JSONObject formData)
IGerritHudsonTriggerConfig
setValues
in interface IGerritHudsonTriggerConfig
formData
- the JSON object with form data.public File getGerritAuthKeyFile()
getGerritAuthKeyFile
in interface com.sonymobile.tools.gerrit.gerritevents.ssh.SshConnectionConfig
public void setGerritAuthKeyFile(File gerritAuthKeyFile)
gerritAuthKeyFile
- the filegetGerritAuthKeyFile()
public String getGerritAuthKeyFilePassword()
getGerritAuthKeyFilePassword
in interface com.sonymobile.tools.gerrit.gerritevents.ssh.SshConnectionConfig
public void setGerritAuthKeyFilePassword(String gerritAuthKeyFilePassword)
gerritAuthKeyFilePassword
- the passwordgetGerritAuthKeyFilePassword()
public Secret getGerritAuthKeyFileSecretPassword()
IGerritHudsonTriggerConfig
Secret
which has a password for the private key, or null if there is none.getGerritAuthKeyFileSecretPassword
in interface IGerritHudsonTriggerConfig
Secret
.public String getGerritFrontEndUrl()
IGerritHudsonTriggerConfig
getGerritFrontEndUrl
in interface IGerritHudsonTriggerConfig
getGerritFrontEndUrl
in interface com.sonymobile.tools.gerrit.gerritevents.GerritConnectionConfig
getGerritFrontEndUrl
in interface com.sonymobile.tools.gerrit.gerritevents.rest.RestConnectionConfig
public void setGerritFrontEndURL(String gerritFrontEndURL)
gerritFrontEndURL
- the URLgetGerritFrontEndUrl()
public String getGerritHostName()
getGerritHostName
in interface com.sonymobile.tools.gerrit.gerritevents.ssh.SshConnectionConfig
public void setGerritHostName(String gerritHostName)
gerritHostName
- the hostnamegetGerritHostName()
public int getGerritSshPort()
getGerritSshPort
in interface com.sonymobile.tools.gerrit.gerritevents.ssh.SshConnectionConfig
public void setGerritSshPort(int gerritSshPort)
gerritSshPort
- the portgetGerritSshPort()
public String getGerritProxy()
getGerritProxy
in interface com.sonymobile.tools.gerrit.gerritevents.rest.RestConnectionConfig
getGerritProxy
in interface com.sonymobile.tools.gerrit.gerritevents.ssh.SshConnectionConfig
public void setGerritProxy(String gerritProxy)
gerritProxy
- the proxy urlgetGerritProxy()
public int getBuildScheduleDelay()
IGerritHudsonTriggerConfig
getBuildScheduleDelay
in interface IGerritHudsonTriggerConfig
public void setBuildScheduleDelay(int buildScheduleDelay)
buildScheduleDelay
- the delay timegetBuildScheduleDelay()
public int getDynamicConfigRefreshInterval()
IGerritHudsonTriggerConfig
getDynamicConfigRefreshInterval
in interface IGerritHudsonTriggerConfig
public int getProjectListFetchDelay()
IGerritHudsonTriggerConfig
getProjectListFetchDelay
in interface IGerritHudsonTriggerConfig
public void setProjectListFetchDelay(int projectListFetchDelay)
projectListFetchDelay
- the delaygetProjectListFetchDelay()
,
isEnableProjectAutoCompletion()
public int getProjectListRefreshInterval()
IGerritHudsonTriggerConfig
getProjectListRefreshInterval
in interface IGerritHudsonTriggerConfig
public void setProjectListRefreshInterval(int projectListRefreshInterval)
projectListRefreshInterval
- the intervalgetProjectListRefreshInterval()
,
isEnableProjectAutoCompletion()
public boolean isEnableProjectAutoCompletion()
IGerritHudsonTriggerConfig
isEnableProjectAutoCompletion
in interface IGerritHudsonTriggerConfig
public void setEnableProjectAutoCompletion(boolean enableProjectAutoCompletion)
enableProjectAutoCompletion
- true if soisEnableProjectAutoCompletion()
,
getProjectListRefreshInterval()
,
getProjectListFetchDelay()
public void setDynamicConfigRefreshInterval(int dynamicConfigRefreshInterval)
dynamicConfigRefreshInterval
- the interval between the fetches.getDynamicConfigRefreshInterval()
public String getGerritUserName()
getGerritUserName
in interface com.sonymobile.tools.gerrit.gerritevents.ssh.SshConnectionConfig
public void setGerritUserName(String gerritUserName)
gerritUserName
- the usernamegetGerritUserName()
public String getGerritEMail()
getGerritEMail
in interface com.sonymobile.tools.gerrit.gerritevents.GerritConnectionConfig
public com.sonymobile.tools.gerrit.gerritevents.dto.rest.Notify getNotificationLevel()
IGerritHudsonTriggerConfig
getNotificationLevel
in interface IGerritHudsonTriggerConfig
public void setGerritEMail(String gerritEMail)
gerritEMail
- the e-mail address.getGerritEMail()
public void setNotificationLevel(com.sonymobile.tools.gerrit.gerritevents.dto.rest.Notify notificationLevel)
notificationLevel
- the notification level.@Deprecated public int getNumberOfReceivingWorkerThreads()
IGerritHudsonTriggerConfig
getNumberOfReceivingWorkerThreads
in interface IGerritHudsonTriggerConfig
@Deprecated public int getNumberOfSendingWorkerThreads()
IGerritHudsonTriggerConfig
getNumberOfSendingWorkerThreads
in interface IGerritHudsonTriggerConfig
@Deprecated public void setNumberOfReceivingWorkerThreads(int numberOfReceivingWorkerThreads)
numberOfReceivingWorkerThreads
- nr of threads.getNumberOfReceivingWorkerThreads()
@Deprecated public void setNumberOfSendingWorkerThreads(int numberOfSendingWorkerThreads)
IGerritHudsonTriggerConfig
setNumberOfSendingWorkerThreads
in interface IGerritHudsonTriggerConfig
numberOfSendingWorkerThreads
- nr of threads.public boolean isGerritBuildCurrentPatchesOnly()
IGerritHudsonTriggerConfig
isGerritBuildCurrentPatchesOnly
in interface IGerritHudsonTriggerConfig
public BuildCancellationPolicy getBuildCurrentPatchesOnly()
IGerritHudsonTriggerConfig
getBuildCurrentPatchesOnly
in interface IGerritHudsonTriggerConfig
public String getGerritCmdBuildSuccessful()
IGerritHudsonTriggerConfig
getGerritCmdBuildSuccessful
in interface IGerritHudsonTriggerConfig
public void setGerritVerifiedCmdBuildSuccessful(String cmd)
cmd
- the commandgetGerritCmdBuildSuccessful()
public String getGerritCmdBuildUnstable()
IGerritHudsonTriggerConfig
getGerritCmdBuildUnstable
in interface IGerritHudsonTriggerConfig
public void setGerritVerifiedCmdBuildUnstable(String cmd)
cmd
- the commandgetGerritCmdBuildUnstable()
public String getGerritCmdBuildFailed()
IGerritHudsonTriggerConfig
getGerritCmdBuildFailed
in interface IGerritHudsonTriggerConfig
public void setGerritVerifiedCmdBuildFailed(String cmd)
cmd
- the commandsetGerritVerifiedCmdBuildFailed(java.lang.String)
public String getGerritCmdBuildStarted()
IGerritHudsonTriggerConfig
getGerritCmdBuildStarted
in interface IGerritHudsonTriggerConfig
public void setGerritVerifiedCmdBuildStarted(String cmd)
cmd
- the commandgetGerritCmdBuildStarted()
public String getGerritCmdBuildNotBuilt()
IGerritHudsonTriggerConfig
getGerritCmdBuildNotBuilt
in interface IGerritHudsonTriggerConfig
public void setGerritVerifiedCmdBuildNotBuilt(String cmd)
cmd
- the commandgetGerritCmdBuildNotBuilt()
public Integer getGerritBuildStartedVerifiedValue()
IGerritHudsonTriggerConfig
getGerritBuildStartedVerifiedValue
in interface IGerritHudsonTriggerConfig
public Integer getGerritBuildStartedCodeReviewValue()
IGerritHudsonTriggerConfig
getGerritBuildStartedCodeReviewValue
in interface IGerritHudsonTriggerConfig
public Integer getGerritBuildSuccessfulVerifiedValue()
IGerritHudsonTriggerConfig
getGerritBuildSuccessfulVerifiedValue
in interface IGerritHudsonTriggerConfig
public Integer getGerritBuildSuccessfulCodeReviewValue()
IGerritHudsonTriggerConfig
getGerritBuildSuccessfulCodeReviewValue
in interface IGerritHudsonTriggerConfig
public Integer getGerritBuildFailedVerifiedValue()
IGerritHudsonTriggerConfig
getGerritBuildFailedVerifiedValue
in interface IGerritHudsonTriggerConfig
public Integer getGerritBuildFailedCodeReviewValue()
IGerritHudsonTriggerConfig
getGerritBuildFailedCodeReviewValue
in interface IGerritHudsonTriggerConfig
public Integer getGerritBuildUnstableVerifiedValue()
IGerritHudsonTriggerConfig
getGerritBuildUnstableVerifiedValue
in interface IGerritHudsonTriggerConfig
public Integer getGerritBuildUnstableCodeReviewValue()
IGerritHudsonTriggerConfig
getGerritBuildUnstableCodeReviewValue
in interface IGerritHudsonTriggerConfig
public Integer getGerritBuildNotBuiltVerifiedValue()
IGerritHudsonTriggerConfig
getGerritBuildNotBuiltVerifiedValue
in interface IGerritHudsonTriggerConfig
public Integer getGerritBuildNotBuiltCodeReviewValue()
IGerritHudsonTriggerConfig
getGerritBuildNotBuiltCodeReviewValue
in interface IGerritHudsonTriggerConfig
public String getGerritFrontEndUrlFor(String changeSetNumber, String revision)
IGerritHudsonTriggerConfig
getGerritFrontEndUrlFor
in interface IGerritHudsonTriggerConfig
changeSetNumber
- the changeset numberrevision
- the patch set number (currently not used)IGerritHudsonTriggerConfig.getGerritFrontEndUrl()
+ / + numberIGerritHudsonTriggerConfig.getGerritFrontEndUrl()
public String getGerritFrontEndUrlFor(com.sonymobile.tools.gerrit.gerritevents.dto.events.GerritTriggeredEvent event)
IGerritHudsonTriggerConfig
getGerritFrontEndUrlFor
in interface IGerritHudsonTriggerConfig
event
- the gerrit triggered eventIGerritHudsonTriggerConfig.getGerritFrontEndUrlFor(String, String)
public List<VerdictCategory> getCategories()
IGerritHudsonTriggerConfig
getCategories
in interface IGerritHudsonTriggerConfig
public void setCategories(List<VerdictCategory> categories)
setCategories
in interface IGerritHudsonTriggerConfig
categories
- the list.public boolean isEnableManualTrigger()
isEnableManualTrigger
in interface IGerritHudsonTriggerConfig
public void setEnableManualTrigger(boolean enableManualTrigger)
enableManualTrigger
- true if it should be enabled/shown.isEnableManualTrigger()
public com.sonymobile.tools.gerrit.gerritevents.ssh.Authentication getGerritAuthentication()
getGerritAuthentication
in interface com.sonymobile.tools.gerrit.gerritevents.ssh.SshConnectionConfig
public boolean hasDefaultValues()
IGerritHudsonTriggerConfig
hasDefaultValues
in interface IGerritHudsonTriggerConfig
public boolean isEnablePluginMessages()
IGerritHudsonTriggerConfig
isEnablePluginMessages
in interface IGerritHudsonTriggerConfig
public boolean isTriggerOnAllComments()
IGerritHudsonTriggerConfig
isTriggerOnAllComments
in interface IGerritHudsonTriggerConfig
public void setTriggerOnAllComments(boolean triggerOnAllComments)
triggerOnAllComments
- true if soisTriggerOnAllComments()
public ReplicationConfig getReplicationConfig()
IGerritHudsonTriggerConfig
getReplicationConfig
in interface IGerritHudsonTriggerConfig
public int getWatchdogTimeoutSeconds()
getWatchdogTimeoutSeconds
in interface com.sonymobile.tools.gerrit.gerritevents.GerritConnectionConfig2
public int getWatchdogTimeoutMinutes()
getWatchdogTimeoutMinutes
in interface com.sonymobile.tools.gerrit.gerritevents.GerritConnectionConfig2
public com.sonymobile.tools.gerrit.gerritevents.watchdog.WatchTimeExceptionData getExceptionData()
getExceptionData
in interface com.sonymobile.tools.gerrit.gerritevents.GerritConnectionConfig2
public boolean isUseRestApi()
IGerritHudsonTriggerConfig
isUseRestApi
in interface IGerritHudsonTriggerConfig
public void setUseRestApi(boolean useRestApi)
useRestApi
- true if soisUseRestApi()
public Secret getGerritHttpSecretPassword()
IGerritHudsonTriggerConfig
Secret
which has a password for the HTTP REST API, or null if there is none.getGerritHttpSecretPassword
in interface IGerritHudsonTriggerConfig
Secret
.public String getGerritHttpPassword()
IGerritHudsonTriggerConfig
getGerritHttpPassword
in interface IGerritHudsonTriggerConfig
public void setGerritHttpPassword(String gerritHttpPassword)
gerritHttpPassword
- the passwordgetGerritHttpPassword()
public String getGerritHttpUserName()
IGerritHudsonTriggerConfig
getGerritHttpUserName
in interface IGerritHudsonTriggerConfig
public void setGerritHttpUserName(String gerritHttpUserName)
gerritHttpUserName
- the usernamegetGerritHttpUserName()
public org.apache.http.auth.Credentials getHttpCredentials()
getHttpCredentials
in interface com.sonymobile.tools.gerrit.gerritevents.rest.RestConnectionConfig
public boolean isRestCodeReview()
IGerritHudsonTriggerConfig
isRestCodeReview
in interface IGerritHudsonTriggerConfig
public void setRestCodeReview(boolean restCodeReview)
restCodeReview
- true if include Code-Review label to REST API for ReviewInput.public boolean isRestVerified()
IGerritHudsonTriggerConfig
isRestVerified
in interface IGerritHudsonTriggerConfig
public void setRestVerified(boolean restVerified)
restVerified
- true if include Verified label to REST API for ReviewInput.Copyright © 2016–2019. All rights reserved.