|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sonyericsson.hudson.plugins.gerrit.trigger.config.Config
public class Config
Configuration bean for the global configuration.
Field Summary | |
---|---|
static boolean |
DEFAULT_BUILD_CURRENT_PATCHES_ONLY
Default value for isGerritBuildCurrentPatchesOnly() . |
static boolean |
DEFAULT_ENABLE_MANUAL_TRIGGER
Default manual trigger enabled. |
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_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. |
Constructor Summary | |
---|---|
Config()
Constructs a config with default data. |
|
Config(net.sf.json.JSONObject formData)
Constructor. |
|
Config(net.sf.json.JSONObject formData,
org.kohsuke.stapler.StaplerRequest req)
Unused Constructor? |
Method Summary | |
---|---|
int |
getBuildScheduleDelay()
Returns the BuildScheduleDelay. |
Authentication |
getGerritAuthentication()
|
java.io.File |
getGerritAuthKeyFile()
|
java.lang.String |
getGerritAuthKeyFilePassword()
|
int |
getGerritBuildFailedCodeReviewValue()
The default code review value for build failed. |
int |
getGerritBuildFailedVerifiedValue()
The default verified value for build failed. |
int |
getGerritBuildStartedCodeReviewValue()
The default code review value for build started. |
int |
getGerritBuildStartedVerifiedValue()
The default verified value for build started. |
int |
getGerritBuildSuccessfulCodeReviewValue()
The default code review value for build successful. |
int |
getGerritBuildSuccessfulVerifiedValue()
The default verified value for build successful. |
int |
getGerritBuildUnstableCodeReviewValue()
The default code review value for build unstable. |
int |
getGerritBuildUnstableVerifiedValue()
The default verified value for build unstable. |
java.lang.String |
getGerritCmdBuildFailed()
The command template to use when sending build-failed messages to Gerrit. |
java.lang.String |
getGerritCmdBuildStarted()
The command template to use when sending build-started messages to Gerrit. |
java.lang.String |
getGerritCmdBuildSuccessful()
The command template to use when sending build-successful messages to Gerrit. |
java.lang.String |
getGerritCmdBuildUnstable()
The command template to use when sending build-unstable messages to Gerrit. |
java.lang.String |
getGerritFrontEndUrl()
Base URL for the Gerrit UI. |
java.lang.String |
getGerritFrontEndUrlFor(java.lang.String changeSetNumber,
java.lang.String revision)
Creates a URL to the provided changeset number. |
java.lang.String |
getGerritHostName()
|
int |
getGerritSshPort()
|
java.lang.String |
getGerritUserName()
|
int |
getNumberOfReceivingWorkerThreads()
|
int |
getNumberOfSendingWorkerThreads()
|
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 |
isGerritBuildCurrentPatchesOnly()
If enabled, then old patch revision builds will be canceled. |
void |
setBuildScheduleDelay(int buildScheduleDelay)
Setting buildScheduleDelay. |
void |
setEnableManualTrigger(boolean enableManualTrigger)
Sets if the manual trigger should be enabled or not. |
void |
setGerritAuthKeyFile(java.io.File gerritAuthKeyFile)
GerritAuthKeyFile. |
void |
setGerritAuthKeyFilePassword(java.lang.String gerritAuthKeyFilePassword)
GerritAuthKeyFilePassword. |
void |
setGerritBuildCurrentPatchesOnly(boolean gerritBuildCurrentPatchesOnly)
GerritBuildCurrentPatchesOnly. |
void |
setGerritFrontEndURL(java.lang.String gerritFrontEndURL)
GerritFrontEndURL. |
void |
setGerritHostName(java.lang.String gerritHostName)
GerritHostName. |
void |
setGerritSshPort(int gerritSshPort)
GerritSshPort. |
void |
setGerritUserName(java.lang.String gerritUserName)
GerritUserName. |
void |
setGerritVerifiedCmdBuildFailed(java.lang.String cmd)
GerritVerifiedCmdBuildFailed. |
void |
setGerritVerifiedCmdBuildStarted(java.lang.String cmd)
GerritVerifiedCmdBuildStarted. |
void |
setGerritVerifiedCmdBuildSuccessful(java.lang.String cmd)
GerritVerifiedCmdBuildSuccessful. |
void |
setGerritVerifiedCmdBuildUnstable(java.lang.String cmd)
GerritVerifiedCmdBuildUnstable. |
void |
setNumberOfReceivingWorkerThreads(int numberOfReceivingWorkerThreads)
NumberOfWorkerThreads. |
void |
setValues(net.sf.json.JSONObject formData)
Sets all config values from the provided JSONObject. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int DEFAULT_GERRIT_BUILD_STARTED_VERIFIED_VALUE
public static final int DEFAULT_GERRIT_BUILD_STARTED_CODE_REVIEW_VALUE
public static final int DEFAULT_GERRIT_BUILD_UNSTABLE_VERIFIED_VALUE
public static final int DEFAULT_GERRIT_BUILD_UNSTABLE_CODE_REVIEW_VALUE
public static final int DEFAULT_GERRIT_BUILD_FAILURE_VERIFIED_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_SUCCESSFUL_VERIFIED_VALUE
public static final boolean DEFAULT_ENABLE_MANUAL_TRIGGER
public static final boolean DEFAULT_BUILD_CURRENT_PATCHES_ONLY
isGerritBuildCurrentPatchesOnly()
.
Constructor Detail |
---|
public Config(net.sf.json.JSONObject formData)
formData
- the data.public Config()
public Config(net.sf.json.JSONObject formData, org.kohsuke.stapler.StaplerRequest req)
formData
- the datareq
- a path.Method Detail |
---|
public void setValues(net.sf.json.JSONObject formData)
IGerritHudsonTriggerConfig
setValues
in interface IGerritHudsonTriggerConfig
formData
- the JSON object with form data.public java.io.File getGerritAuthKeyFile()
getGerritAuthKeyFile
in interface GerritConnectionConfig
public void setGerritAuthKeyFile(java.io.File gerritAuthKeyFile)
gerritAuthKeyFile
- the filegetGerritAuthKeyFile()
public java.lang.String getGerritAuthKeyFilePassword()
getGerritAuthKeyFilePassword
in interface GerritConnectionConfig
public void setGerritAuthKeyFilePassword(java.lang.String gerritAuthKeyFilePassword)
gerritAuthKeyFilePassword
- the passwordgetGerritAuthKeyFilePassword()
public void setGerritBuildCurrentPatchesOnly(boolean gerritBuildCurrentPatchesOnly)
gerritBuildCurrentPatchesOnly
- whether to only build the current patch setisGerritBuildCurrentPatchesOnly()
public java.lang.String getGerritFrontEndUrl()
IGerritHudsonTriggerConfig
getGerritFrontEndUrl
in interface IGerritHudsonTriggerConfig
public void setGerritFrontEndURL(java.lang.String gerritFrontEndURL)
gerritFrontEndURL
- the URLgetGerritFrontEndUrl()
public java.lang.String getGerritHostName()
getGerritHostName
in interface GerritConnectionConfig
public void setGerritHostName(java.lang.String gerritHostName)
gerritHostName
- the hostnamegetGerritHostName()
public int getGerritSshPort()
getGerritSshPort
in interface GerritConnectionConfig
public void setGerritSshPort(int gerritSshPort)
gerritSshPort
- the portgetGerritSshPort()
public int getBuildScheduleDelay()
IGerritHudsonTriggerConfig
getBuildScheduleDelay
in interface IGerritHudsonTriggerConfig
public void setBuildScheduleDelay(int buildScheduleDelay)
buildScheduleDelay
- the delay timegetBuildScheduleDelay()
public java.lang.String getGerritUserName()
getGerritUserName
in interface GerritConnectionConfig
public void setGerritUserName(java.lang.String gerritUserName)
gerritUserName
- the usernamegetGerritUserName()
public int getNumberOfReceivingWorkerThreads()
getNumberOfReceivingWorkerThreads
in interface GerritConnectionConfig
public int getNumberOfSendingWorkerThreads()
getNumberOfSendingWorkerThreads
in interface GerritConnectionConfig
public void setNumberOfReceivingWorkerThreads(int numberOfReceivingWorkerThreads)
numberOfReceivingWorkerThreads
- nr of threads.getNumberOfReceivingWorkerThreads()
public boolean isGerritBuildCurrentPatchesOnly()
IGerritHudsonTriggerConfig
isGerritBuildCurrentPatchesOnly
in interface IGerritHudsonTriggerConfig
public java.lang.String getGerritCmdBuildSuccessful()
IGerritHudsonTriggerConfig
getGerritCmdBuildSuccessful
in interface IGerritHudsonTriggerConfig
public void setGerritVerifiedCmdBuildSuccessful(java.lang.String cmd)
cmd
- the commandgetGerritCmdBuildSuccessful()
public java.lang.String getGerritCmdBuildUnstable()
IGerritHudsonTriggerConfig
getGerritCmdBuildUnstable
in interface IGerritHudsonTriggerConfig
public void setGerritVerifiedCmdBuildUnstable(java.lang.String cmd)
cmd
- the commandgetGerritCmdBuildUnstable()
public java.lang.String getGerritCmdBuildFailed()
IGerritHudsonTriggerConfig
getGerritCmdBuildFailed
in interface IGerritHudsonTriggerConfig
public void setGerritVerifiedCmdBuildFailed(java.lang.String cmd)
cmd
- the commandsetGerritVerifiedCmdBuildFailed(java.lang.String)
public java.lang.String getGerritCmdBuildStarted()
IGerritHudsonTriggerConfig
getGerritCmdBuildStarted
in interface IGerritHudsonTriggerConfig
public void setGerritVerifiedCmdBuildStarted(java.lang.String cmd)
cmd
- the commandgetGerritCmdBuildStarted()
public int getGerritBuildStartedVerifiedValue()
IGerritHudsonTriggerConfig
getGerritBuildStartedVerifiedValue
in interface IGerritHudsonTriggerConfig
public int getGerritBuildStartedCodeReviewValue()
IGerritHudsonTriggerConfig
getGerritBuildStartedCodeReviewValue
in interface IGerritHudsonTriggerConfig
public int getGerritBuildSuccessfulVerifiedValue()
IGerritHudsonTriggerConfig
getGerritBuildSuccessfulVerifiedValue
in interface IGerritHudsonTriggerConfig
public int getGerritBuildSuccessfulCodeReviewValue()
IGerritHudsonTriggerConfig
getGerritBuildSuccessfulCodeReviewValue
in interface IGerritHudsonTriggerConfig
public int getGerritBuildFailedVerifiedValue()
IGerritHudsonTriggerConfig
getGerritBuildFailedVerifiedValue
in interface IGerritHudsonTriggerConfig
public int getGerritBuildFailedCodeReviewValue()
IGerritHudsonTriggerConfig
getGerritBuildFailedCodeReviewValue
in interface IGerritHudsonTriggerConfig
public int getGerritBuildUnstableVerifiedValue()
IGerritHudsonTriggerConfig
getGerritBuildUnstableVerifiedValue
in interface IGerritHudsonTriggerConfig
public int getGerritBuildUnstableCodeReviewValue()
IGerritHudsonTriggerConfig
getGerritBuildUnstableCodeReviewValue
in interface IGerritHudsonTriggerConfig
public java.lang.String getGerritFrontEndUrlFor(java.lang.String changeSetNumber, java.lang.String revision)
IGerritHudsonTriggerConfig
getGerritFrontEndUrlFor
in interface IGerritHudsonTriggerConfig
changeSetNumber
- the changeset numberrevision
- the patch set number (currently not used)
IGerritHudsonTriggerConfig.getGerritFrontEndUrl()
+ / + numberIGerritHudsonTriggerConfig.getGerritFrontEndUrl()
public boolean isEnableManualTrigger()
IGerritHudsonTriggerConfig
isEnableManualTrigger
in interface IGerritHudsonTriggerConfig
public void setEnableManualTrigger(boolean enableManualTrigger)
enableManualTrigger
- true if it should be enabled/shown.isEnableManualTrigger()
public Authentication getGerritAuthentication()
getGerritAuthentication
in interface GerritConnectionConfig
public boolean hasDefaultValues()
IGerritHudsonTriggerConfig
hasDefaultValues
in interface IGerritHudsonTriggerConfig
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |