org.kohsuke.stapler.DataBoundSetter Java Examples

The following examples show how to use org.kohsuke.stapler.DataBoundSetter. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ConfigDrivenWorkflowBranchProjectFactory.java    From config-driven-pipeline-plugin with MIT License 5 votes vote down vote up
@DataBoundSetter
public void setScriptPath(String scriptPath) {
    if (StringUtils.isEmpty(scriptPath)) {
        this.scriptPath = USER_DEFINITION_PATH;
    } else {
        this.scriptPath = scriptPath;
    }
}
 
Example #2
Source File: RecordIssuesStep.java    From warnings-ng-plugin with MIT License 5 votes vote down vote up
/**
 * Sets the static analysis tool that will scan files and create issues.
 *
 * @param tool
 *         the static analysis tool
 */
@DataBoundSetter
public void setTool(final Tool tool) {
    ensureThatToolIsValid(tool);

    analysisTools = Collections.singletonList(tool);
}
 
Example #3
Source File: AuditLogConfiguration.java    From audit-log-plugin with MIT License 5 votes vote down vote up
@DataBoundSetter
public void setSyslogHost(String syslogHost) {
    if(syslogHost != null && !syslogHost.equals("")){
        this.syslogHost = syslogHost;
    }
    save();
    reloadLogger();
}
 
Example #4
Source File: ParserConfiguration.java    From warnings-ng-plugin with MIT License 5 votes vote down vote up
/**
 * Sets the list of available Groovy parsers to the specified elements. Previously set parsers will be removed.
 *
 * @param parsers
 *         the new Groovy parsers
 */
@DataBoundSetter
public void setParsers(final List<GroovyParser> parsers) {
    this.parsers = new ArrayList<>(parsers);

    save();
}
 
Example #5
Source File: YamlBranchProjectFactory.java    From simple-pull-request-job-plugin with Apache License 2.0 5 votes vote down vote up
@DataBoundSetter
public void setScriptPath(String scriptPath) {
    if (StringUtils.isEmpty(scriptPath)) {
        this.scriptPath = YAML_SCRIPT;
    } else {
        this.scriptPath = scriptPath;
    }
}
 
Example #6
Source File: YamlMultiBranchProjectFactory.java    From simple-pull-request-job-plugin with Apache License 2.0 5 votes vote down vote up
@DataBoundSetter
public void setScriptPath(String scriptPath) {
    if (StringUtils.isEmpty(scriptPath)) {
        this.scriptPath = YamlBranchProjectFactory.YAML_SCRIPT;
    } else {
        this.scriptPath = scriptPath;
    }
}
 
Example #7
Source File: AuditLogConfiguration.java    From audit-log-plugin with MIT License 5 votes vote down vote up
@DataBoundSetter
public void setSyslogPort(int syslogPort) {
    if(syslogPort != 0){
        this.syslogPort = syslogPort;
    }
    save();
    reloadLogger();
}
 
Example #8
Source File: RecordIssuesStep.java    From warnings-ng-plugin with MIT License 5 votes vote down vote up
/**
 * Sets the reference build id of the reference job for the issue difference computation.
 *
 * @param referenceBuildId
 *         the build id of the reference job
 */
@DataBoundSetter
public void setReferenceBuildId(final String referenceBuildId) {
    if (IssuesRecorder.NO_REFERENCE_BUILD.equals(referenceBuildId)) {
        this.referenceBuildId = StringUtils.EMPTY;
    }
    else {
        this.referenceBuildId = referenceBuildId;
    }
}
 
Example #9
Source File: KafkaKubernetesCloud.java    From remoting-kafka-plugin with MIT License 4 votes vote down vote up
@DataBoundSetter
public void setDescription(String description) {
    this.description = description;
}
 
Example #10
Source File: ServiceNowItem.java    From service-now-plugin with MIT License 4 votes vote down vote up
@DataBoundSetter
public void setBody(String body) {
    this.body = body;
}
 
Example #11
Source File: GerritCheckStep.java    From gerrit-code-review-plugin with Apache License 2.0 4 votes vote down vote up
@DataBoundSetter
public void setChecks(Map<String, String> checks) {
  this.checks = checks;
}
 
Example #12
Source File: ServiceNowItem.java    From service-now-plugin with MIT License 4 votes vote down vote up
@DataBoundSetter
public void setFilename(String filename) {
    this.filename = filename;
}
 
Example #13
Source File: KafkaKubernetesCloud.java    From remoting-kafka-plugin with MIT License 4 votes vote down vote up
@DataBoundSetter
public void setIdleMinutes(String idleMinutes) {
    this.idleMinutes = idleMinutes;
}
 
Example #14
Source File: KafkaKubernetesCloud.java    From remoting-kafka-plugin with MIT License 4 votes vote down vote up
@DataBoundSetter
public void setEnableSSL(boolean enableSSL) {
    this.enableSSL = enableSSL;
}
 
Example #15
Source File: AuditLogConfiguration.java    From audit-log-plugin with MIT License 4 votes vote down vote up
@DataBoundSetter
public void setAppenderType(String appenderType) {
    this.appenderType = appenderType;
    save();
    reloadLogger();
}
 
Example #16
Source File: RecordIssuesStep.java    From warnings-ng-plugin with MIT License 4 votes vote down vote up
@DataBoundSetter
public void setFilters(final List<RegexpFilter> filters) {
    this.filters = new ArrayList<>(filters);
}
 
Example #17
Source File: GerritReviewStep.java    From gerrit-code-review-plugin with Apache License 2.0 4 votes vote down vote up
@Deprecated
@DataBoundSetter
public void setScore(int score) {
  this.score = score;
}
 
Example #18
Source File: IssuesRecorder.java    From warnings-ng-plugin with MIT License 4 votes vote down vote up
@DataBoundSetter
public void setAggregatingResults(final boolean aggregatingResults) {
    isAggregatingResults = aggregatingResults;
}
 
Example #19
Source File: GitLabSCMNavigator.java    From gitlab-branch-source-plugin with MIT License 4 votes vote down vote up
@DataBoundSetter
public void setServerName(String serverName) {
    this.serverName = serverName;
}
 
Example #20
Source File: RecordIssuesStep.java    From warnings-ng-plugin with MIT License 4 votes vote down vote up
@DataBoundSetter
public void setAggregatingResults(final boolean aggregatingResults) {
    isAggregatingResults = aggregatingResults;
}
 
Example #21
Source File: ServiceNowConfiguration.java    From service-now-plugin with MIT License 4 votes vote down vote up
@DataBoundSetter
public void setCredentialId(String credentialId) {
    this.credentialId = credentialId;
}
 
Example #22
Source File: AxivionSuite.java    From warnings-ng-plugin with MIT License 4 votes vote down vote up
@DataBoundSetter
public void setProjectUrl(final String projectUrl) {
    this.projectUrl = projectUrl;
}
 
Example #23
Source File: OpenTasks.java    From warnings-ng-plugin with MIT License 4 votes vote down vote up
@DataBoundSetter
public void setIsRegularExpression(final boolean isRegularExpression) {
    this.isRegularExpression = isRegularExpression;
}
 
Example #24
Source File: OpenTasks.java    From warnings-ng-plugin with MIT License 4 votes vote down vote up
@DataBoundSetter
public void setNormalTags(final String normalTags) {
    this.normalTags = normalTags;
}
 
Example #25
Source File: OpenTasks.java    From warnings-ng-plugin with MIT License 4 votes vote down vote up
@DataBoundSetter
public void setHighTags(final String highTags) {
    this.highTags = highTags;
}
 
Example #26
Source File: OpenTasks.java    From warnings-ng-plugin with MIT License 4 votes vote down vote up
@DataBoundSetter
public void setIncludePattern(final String includePattern) {
    this.includePattern = includePattern;
}
 
Example #27
Source File: KafkaKubernetesCloud.java    From remoting-kafka-plugin with MIT License 4 votes vote down vote up
@DataBoundSetter
public void setCredentialsId(String credentialsId) {
    this.credentialsId = credentialsId;
}
 
Example #28
Source File: GitLabSCMSource.java    From gitlab-branch-source-plugin with MIT License 4 votes vote down vote up
@DataBoundSetter
public void setProjectId(int projectId) {
    this.projectId = projectId;
}
 
Example #29
Source File: KafkaKubernetesCloud.java    From remoting-kafka-plugin with MIT License 4 votes vote down vote up
@DataBoundSetter
public void setSkipTlsVerify(boolean skipTlsVerify) {
    this.skipTlsVerify = skipTlsVerify;
}
 
Example #30
Source File: ConfigDrivenWorkflowMultiBranchProjectFactory.java    From config-driven-pipeline-plugin with MIT License 4 votes vote down vote up
@DataBoundSetter
public void setJenkinsFileScm(SCM jenkinsFileScm) {
    this.jenkinsFileScm = jenkinsFileScm;
}