public class SonarToGerritPublisher
extends hudson.tasks.Publisher
implements jenkins.tasks.SimpleBuildStep
| Modifier and Type | Class and Description |
|---|---|
static class |
SonarToGerritPublisher.DescriptorImpl
Descriptor for
SonarToGerritPublisher. |
hudson.tasks.Publisher.DescriptorExtensionListImpl| Modifier and Type | Field and Description |
|---|---|
static String |
EMPTY_STR |
static String |
GERRIT_CHANGE_NUMBER_ENV_VAR_NAME |
static String |
GERRIT_NAME_ENV_VAR_NAME |
static String |
GERRIT_PATCHSET_NUMBER_ENV_VAR_NAME |
| Constructor and Description |
|---|
SonarToGerritPublisher(String sonarURL,
List<SubJobConfig> subJobConfigs,
String severity,
boolean changedLinesOnly,
boolean newIssuesOnly,
String noIssuesToPostText,
String someIssuesToPostText,
String issueComment,
boolean overrideCredentials,
String httpUsername,
String httpPassword,
boolean postScore,
String category,
String noIssuesScore,
String issuesScore,
String noIssuesNotification,
String issuesNotification) |
| Modifier and Type | Method and Description |
|---|---|
String |
getCategory() |
SonarToGerritPublisher.DescriptorImpl |
getDescriptor() |
String |
getHttpPassword() |
String |
getHttpUsername() |
String |
getIssueComment() |
String |
getIssuesNotification() |
String |
getIssuesScore() |
String |
getNoIssuesNotification() |
String |
getNoIssuesScore() |
String |
getNoIssuesToPostText() |
hudson.tasks.BuildStepMonitor |
getRequiredMonitorService() |
String |
getSeverity() |
String |
getSomeIssuesToPostText() |
String |
getSonarURL() |
List<SubJobConfig> |
getSubJobConfigs() |
List<SubJobConfig> |
getSubJobConfigs(boolean addDefault) |
boolean |
isChangedLinesOnly() |
boolean |
isNewIssuesOnly() |
boolean |
isOverrideCredentials() |
boolean |
isPostScore() |
void |
perform(hudson.model.Run<?,?> run,
hudson.FilePath filePath,
hudson.Launcher launcher,
hudson.model.TaskListener listener) |
all, getProjectAction, needsToRunAfterFinalized, prebuildgetProjectAction, getProjectActions, perform, perform, prebuildpublic static final String EMPTY_STR
public static final String GERRIT_CHANGE_NUMBER_ENV_VAR_NAME
public static final String GERRIT_NAME_ENV_VAR_NAME
public static final String GERRIT_PATCHSET_NUMBER_ENV_VAR_NAME
@DataBoundConstructor public SonarToGerritPublisher(String sonarURL, List<SubJobConfig> subJobConfigs, String severity, boolean changedLinesOnly, boolean newIssuesOnly, String noIssuesToPostText, String someIssuesToPostText, String issueComment, boolean overrideCredentials, String httpUsername, String httpPassword, boolean postScore, String category, String noIssuesScore, String issuesScore, String noIssuesNotification, String issuesNotification)
public String getSeverity()
public boolean isChangedLinesOnly()
public boolean isNewIssuesOnly()
public String getSonarURL()
public String getNoIssuesToPostText()
public String getSomeIssuesToPostText()
public String getIssueComment()
public boolean isOverrideCredentials()
public String getHttpUsername()
public String getHttpPassword()
public boolean isPostScore()
public String getCategory()
public String getNoIssuesScore()
public String getNoIssuesNotification()
public String getIssuesNotification()
public String getIssuesScore()
public void perform(@Nonnull hudson.model.Run<?,?> run, @Nonnull hudson.FilePath filePath, @Nonnull hudson.Launcher launcher, @Nonnull hudson.model.TaskListener listener) throws InterruptedException, IOException
perform in interface jenkins.tasks.SimpleBuildStepInterruptedExceptionIOExceptionpublic List<SubJobConfig> getSubJobConfigs()
public List<SubJobConfig> getSubJobConfigs(boolean addDefault)
public SonarToGerritPublisher.DescriptorImpl getDescriptor()
getDescriptor in interface hudson.model.Describable<hudson.tasks.Publisher>getDescriptor in class hudson.tasks.Publisherpublic hudson.tasks.BuildStepMonitor getRequiredMonitorService()
getRequiredMonitorService in interface hudson.tasks.BuildStepCopyright © 2016-2017. All Rights Reserved.