
com.sonyericsson.hudson.plugins.gerrit.trigger.config.IGerritHudsonTriggerConfig Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gerrit-trigger Show documentation
Show all versions of gerrit-trigger Show documentation
Integrates Hudson to Gerrit code review.
The newest version!
/*
* The MIT License
*
* Copyright 2010 Sony Ericsson Mobile Communications.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
package com.sonyericsson.hudson.plugins.gerrit.trigger.config;
import com.sonyericsson.hudson.plugins.gerrit.gerritevents.GerritConnectionConfig;
import net.sf.json.JSONObject;
/**
* Interface for the Global configuration.
* @author Robert Sandell <[email protected]>
*/
public interface IGerritHudsonTriggerConfig extends GerritConnectionConfig {
/**
* Base URL for the Gerrit UI.
* @return the gerrit front end URL. Always ends with '/'
*/
String getGerritFrontEndUrl();
/**
* The command template to use when sending build-started messages to gerrit.
* @return the command template.
*/
String getGerritCmdBuildStarted();
/**
* The command template to use when sending build-successful messages to gerrit.
* @return the command template.
*/
String getGerritCmdBuildSuccessful();
/**
* The command template to use when sending build-failed messages to gerrit.
* @return the command template.
*/
String getGerritCmdBuildFailed();
/**
* The command template to use when sending build-unstable messages to gerrit.
* @return the command template.
*/
String getGerritCmdBuildUnstable();
/**
* The default verified value for build started.
* @return the value.
*/
int getGerritBuildStartedVerifiedValue();
/**
* The default code review value for build started.
* @return the value.
*/
int getGerritBuildStartedCodeReviewValue();
/**
* The default verified value for build successful.
* @return the falue.
*/
int getGerritBuildSuccessfulVerifiedValue();
/**
* The default code review value for build successful.
* @return the value.
*/
int getGerritBuildSuccessfulCodeReviewValue();
/**
* The default verified value for build failed.
* @return the value.
*/
int getGerritBuildFailedVerifiedValue();
/**
* The default code review value for build failed.
* @return the value.
*/
int getGerritBuildFailedCodeReviewValue();
/**
* The default verified value for build unstable.
* @return the value.
*/
int getGerritBuildUnstableVerifiedValue();
/**
* The default code review value for build unstable.
* @return the value.
*/
int getGerritBuildUnstableCodeReviewValue();
/**
* Sets all config values from the provided JSONObject.
* @param form the JSON object with form data.
*/
void setValues(JSONObject form);
/**
* Creates a URL to the provided changeset number.
* @param number the changeset number
* @param revision the patch set number (currently not used)
* @return a URL based on {@link #getGerritFrontEndUrl() } + / + number
* @see #getGerritFrontEndUrl()
*/
String getGerritFrontEndUrlFor(String number, String revision);
/**
* If the manual trigger is enabled (shown to users) or not.
* @return true if so.
*/
boolean isEnableManualTrigger();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy