From fcfe5cd5310e553b6d02ed4cdad1c2acafced984 Mon Sep 17 00:00:00 2001 From: Tomas Bjerre Date: Tue, 1 Nov 2016 19:30:16 +0100 Subject: [PATCH] Enabling commenting only changed parts of files #27 --- CHANGELOG.md | 9 + README.md | 2 + pom.xml | 2 +- ...ViolationsToBitbucketServerDescriptor.java | 22 +- .../ViolationsToBitbucketServerConfig.java | 201 ++++++++++-------- ...olationsToBitbucketServerConfigHelper.java | 1 + .../plugins/jvctb/perform/JvctbPerformer.java | 5 + .../config.jelly | 4 + 8 files changed, 142 insertions(+), 104 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7704937..6a1158b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,15 @@ Changelog of Violation Comments to Bitbucket Server Plugin. ## Unreleased ### No issue +**Optionally let only changed lines to be commented** + + +[9c284a3635144d7](https://github.com/jenkinsci/violation-comments-to-stash-plugin/commit/9c284a3635144d7) Tomas Bjerre *2016-10-31 21:19:34* + + +## 1.33 +### No issue + **Markdown in comments and not commenting unchanged files** diff --git a/README.md b/README.md index 307c535..d91069e 100644 --- a/README.md +++ b/README.md @@ -97,6 +97,8 @@ job('example') { usernamePasswordCredentialsId(null) useUsernamePasswordCredentials(false) useUsernamePassword(true) + createCommentWithAllSingleFileComments(true) + commentOnlyChangedContent(true) violationConfigs { violationConfig { reporter("FINDBUGS") diff --git a/pom.xml b/pom.xml index 9ff42c7..efbbea6 100644 --- a/pom.xml +++ b/pom.xml @@ -186,7 +186,7 @@ Changelog of Violation Comments to Bitbucket Server Plugin. se.bjurr.violations violation-comments-to-bitbucket-server-lib - 1.12 + 1.13 diff --git a/src/main/java/org/jenkinsci/plugins/jvctb/ViolationsToBitbucketServerDescriptor.java b/src/main/java/org/jenkinsci/plugins/jvctb/ViolationsToBitbucketServerDescriptor.java index 3f733e6..4e753d9 100644 --- a/src/main/java/org/jenkinsci/plugins/jvctb/ViolationsToBitbucketServerDescriptor.java +++ b/src/main/java/org/jenkinsci/plugins/jvctb/ViolationsToBitbucketServerDescriptor.java @@ -1,6 +1,7 @@ package org.jenkinsci.plugins.jvctb; import static org.jenkinsci.plugins.jvctb.config.ViolationsToBitbucketServerConfigHelper.FIELD_BITBUCKETSERVERURL; +import static org.jenkinsci.plugins.jvctb.config.ViolationsToBitbucketServerConfigHelper.FIELD_COMMENTONLYCHANGEDCONTENT; import static org.jenkinsci.plugins.jvctb.config.ViolationsToBitbucketServerConfigHelper.FIELD_CREATECOMMENTWITHALLSINGLEFILECOMMENTS; import static org.jenkinsci.plugins.jvctb.config.ViolationsToBitbucketServerConfigHelper.FIELD_CREATESINGLEFILECOMMENTS; import static org.jenkinsci.plugins.jvctb.config.ViolationsToBitbucketServerConfigHelper.FIELD_PASSWORD; @@ -13,27 +14,27 @@ import static org.jenkinsci.plugins.jvctb.config.ViolationsToBitbucketServerConfigHelper.FIELD_USEUSERNAMEPASSWORD; import static org.jenkinsci.plugins.jvctb.config.ViolationsToBitbucketServerConfigHelper.FIELD_USEUSERNAMEPASSWORDCREDENTIALS; import static org.jenkinsci.plugins.jvctb.config.ViolationsToBitbucketServerConfigHelper.createNewConfig; -import hudson.model.AbstractProject; -import hudson.tasks.BuildStepDescriptor; -import hudson.tasks.Publisher; -import hudson.util.ListBoxModel; import java.util.List; -import net.sf.json.JSONObject; - import org.jenkinsci.plugins.jvctb.config.CredentialsHelper; import org.jenkinsci.plugins.jvctb.config.ViolationsToBitbucketServerConfig; import org.kohsuke.stapler.StaplerRequest; +import hudson.model.AbstractProject; +import hudson.tasks.BuildStepDescriptor; +import hudson.tasks.Publisher; +import hudson.util.ListBoxModel; +import net.sf.json.JSONObject; + public final class ViolationsToBitbucketServerDescriptor extends BuildStepDescriptor { private ViolationsToBitbucketServerConfig config; public ViolationsToBitbucketServerDescriptor() { super(ViolationsToBitbucketServerRecorder.class); load(); - if (this.config == null || this.config.getViolationConfigs().size() != createNewConfig().getViolationConfigs().size()) { - this.config = createNewConfig(); + if (config == null || config.getViolationConfigs().size() != createNewConfig().getViolationConfigs().size()) { + config = createNewConfig(); } } @@ -79,10 +80,11 @@ public Publisher newInstance(StaplerRequest req, JSONObject formData) throws hud config.setUseUsernamePasswordCredentials(formData.getBoolean(FIELD_USEUSERNAMEPASSWORDCREDENTIALS)); config.setUsernamePasswordCredentialsId(formData.getString(FIELD_USERNAMEPASSWORDCREDENTIALSID)); - config.setCreateCommentWithAllSingleFileComments(formData.getString(FIELD_CREATECOMMENTWITHALLSINGLEFILECOMMENTS) - .equalsIgnoreCase("true")); + config.setCreateCommentWithAllSingleFileComments( + formData.getString(FIELD_CREATECOMMENTWITHALLSINGLEFILECOMMENTS).equalsIgnoreCase("true")); config.setCreateSingleFileComments(formData.getString(FIELD_CREATESINGLEFILECOMMENTS).equalsIgnoreCase("true")); + config.setCommentOnlyChangedContent(formData.getString(FIELD_COMMENTONLYCHANGEDCONTENT).equalsIgnoreCase("true")); int i = 0; for (String pattern : (List) formData.get(FIELD_PATTERN)) { config.getViolationConfigs().get(i++).setPattern(pattern); diff --git a/src/main/java/org/jenkinsci/plugins/jvctb/config/ViolationsToBitbucketServerConfig.java b/src/main/java/org/jenkinsci/plugins/jvctb/config/ViolationsToBitbucketServerConfig.java index fdaed97..a2d6d5a 100644 --- a/src/main/java/org/jenkinsci/plugins/jvctb/config/ViolationsToBitbucketServerConfig.java +++ b/src/main/java/org/jenkinsci/plugins/jvctb/config/ViolationsToBitbucketServerConfig.java @@ -11,6 +11,7 @@ public class ViolationsToBitbucketServerConfig implements Serializable { private static final long serialVersionUID = 4851568645021422528L; + private boolean commentOnlyChangedContent; private String bitbucketServerUrl; private boolean createCommentWithAllSingleFileComments; private boolean createSingleFileComments; @@ -30,9 +31,10 @@ public ViolationsToBitbucketServerConfig() { @DataBoundConstructor public ViolationsToBitbucketServerConfig(boolean createSingleFileComments, - boolean createCommentWithAllSingleFileComments, String projectKey, String repoSlug, String password, - String username, String pullRequestId, String bitbucketServerUrl, List violationConfigs, - String usernamePasswordCredentialsId, boolean useUsernamePasswordCredentials, boolean useUsernamePassword) { + boolean createCommentWithAllSingleFileComments, String projectKey, String repoSlug, String password, String username, + String pullRequestId, String bitbucketServerUrl, List violationConfigs, + String usernamePasswordCredentialsId, boolean useUsernamePasswordCredentials, boolean useUsernamePassword, + boolean commentOnlyChangedContent) { List allViolationConfigs = includeAllReporters(violationConfigs); @@ -48,41 +50,43 @@ public ViolationsToBitbucketServerConfig(boolean createSingleFileComments, this.usernamePasswordCredentialsId = usernamePasswordCredentialsId; this.useUsernamePasswordCredentials = useUsernamePasswordCredentials; this.useUsernamePassword = useUsernamePassword; + this.commentOnlyChangedContent = commentOnlyChangedContent; } public ViolationsToBitbucketServerConfig(ViolationsToBitbucketServerConfig rhs) { - this.violationConfigs = rhs.violationConfigs; - this.createSingleFileComments = rhs.createSingleFileComments; - this.createCommentWithAllSingleFileComments = rhs.createCommentWithAllSingleFileComments; - this.projectKey = rhs.projectKey; - this.repoSlug = rhs.repoSlug; - this.password = rhs.password; - this.username = rhs.username; - this.pullRequestId = rhs.pullRequestId; - this.bitbucketServerUrl = rhs.bitbucketServerUrl; - this.usernamePasswordCredentialsId = rhs.usernamePasswordCredentialsId; - this.useUsernamePasswordCredentials = rhs.useUsernamePasswordCredentials; - this.useUsernamePassword = rhs.useUsernamePassword; + violationConfigs = rhs.violationConfigs; + createSingleFileComments = rhs.createSingleFileComments; + createCommentWithAllSingleFileComments = rhs.createCommentWithAllSingleFileComments; + projectKey = rhs.projectKey; + repoSlug = rhs.repoSlug; + password = rhs.password; + username = rhs.username; + pullRequestId = rhs.pullRequestId; + bitbucketServerUrl = rhs.bitbucketServerUrl; + usernamePasswordCredentialsId = rhs.usernamePasswordCredentialsId; + useUsernamePasswordCredentials = rhs.useUsernamePasswordCredentials; + useUsernamePassword = rhs.useUsernamePassword; + commentOnlyChangedContent = rhs.commentOnlyChangedContent; } public void applyDefaults(ViolationsToBitbucketServerGlobalConfiguration defaults) { - if (isNullOrEmpty(this.bitbucketServerUrl)) { - this.bitbucketServerUrl = defaults.getBitbucketServerUrl(); + if (isNullOrEmpty(bitbucketServerUrl)) { + bitbucketServerUrl = defaults.getBitbucketServerUrl(); } - if (isNullOrEmpty(this.usernamePasswordCredentialsId)) { - this.usernamePasswordCredentialsId = defaults.getUsernamePasswordCredentialsId(); + if (isNullOrEmpty(usernamePasswordCredentialsId)) { + usernamePasswordCredentialsId = defaults.getUsernamePasswordCredentialsId(); } - if (isNullOrEmpty(this.username)) { - this.username = defaults.getUsername(); + if (isNullOrEmpty(username)) { + username = defaults.getUsername(); } - if (isNullOrEmpty(this.password)) { - this.password = defaults.getPassword(); + if (isNullOrEmpty(password)) { + password = defaults.getPassword(); } - if (isNullOrEmpty(this.repoSlug)) { - this.repoSlug = defaults.getRepoSlug(); + if (isNullOrEmpty(repoSlug)) { + repoSlug = defaults.getRepoSlug(); } - if (isNullOrEmpty(this.projectKey)) { - this.projectKey = defaults.getProjectKey(); + if (isNullOrEmpty(projectKey)) { + projectKey = defaults.getProjectKey(); } } @@ -98,149 +102,172 @@ public boolean equals(Object obj) { return false; } ViolationsToBitbucketServerConfig other = (ViolationsToBitbucketServerConfig) obj; - if (this.bitbucketServerUrl == null) { + if (bitbucketServerUrl == null) { if (other.bitbucketServerUrl != null) { return false; } - } else if (!this.bitbucketServerUrl.equals(other.bitbucketServerUrl)) { + } else if (!bitbucketServerUrl.equals(other.bitbucketServerUrl)) { return false; } - if (this.createCommentWithAllSingleFileComments != other.createCommentWithAllSingleFileComments) { + if (commentOnlyChangedContent != other.commentOnlyChangedContent) { return false; } - if (this.createSingleFileComments != other.createSingleFileComments) { + if (createCommentWithAllSingleFileComments != other.createCommentWithAllSingleFileComments) { return false; } - if (this.password == null) { + if (createSingleFileComments != other.createSingleFileComments) { + return false; + } + if (password == null) { if (other.password != null) { return false; } - } else if (!this.password.equals(other.password)) { + } else if (!password.equals(other.password)) { return false; } - if (this.projectKey == null) { + if (projectKey == null) { if (other.projectKey != null) { return false; } - } else if (!this.projectKey.equals(other.projectKey)) { + } else if (!projectKey.equals(other.projectKey)) { return false; } - if (this.pullRequestId == null) { + if (pullRequestId == null) { if (other.pullRequestId != null) { return false; } - } else if (!this.pullRequestId.equals(other.pullRequestId)) { + } else if (!pullRequestId.equals(other.pullRequestId)) { return false; } - if (this.repoSlug == null) { + if (repoSlug == null) { if (other.repoSlug != null) { return false; } - } else if (!this.repoSlug.equals(other.repoSlug)) { + } else if (!repoSlug.equals(other.repoSlug)) { return false; } - if (this.useUsernamePassword != other.useUsernamePassword) { + if (useUsernamePassword != other.useUsernamePassword) { return false; } - if (this.useUsernamePasswordCredentials != other.useUsernamePasswordCredentials) { + if (useUsernamePasswordCredentials != other.useUsernamePasswordCredentials) { return false; } - if (this.username == null) { + if (username == null) { if (other.username != null) { return false; } - } else if (!this.username.equals(other.username)) { + } else if (!username.equals(other.username)) { return false; } - if (this.usernamePasswordCredentialsId == null) { + if (usernamePasswordCredentialsId == null) { if (other.usernamePasswordCredentialsId != null) { return false; } - } else if (!this.usernamePasswordCredentialsId.equals(other.usernamePasswordCredentialsId)) { + } else if (!usernamePasswordCredentialsId.equals(other.usernamePasswordCredentialsId)) { return false; } - if (this.violationConfigs == null) { + if (violationConfigs == null) { if (other.violationConfigs != null) { return false; } - } else if (!this.violationConfigs.equals(other.violationConfigs)) { + } else if (!violationConfigs.equals(other.violationConfigs)) { return false; } return true; } public String getBitbucketServerUrl() { - return this.bitbucketServerUrl; + return bitbucketServerUrl; + } + + public boolean getCommentOnlyChangedContent() { + return commentOnlyChangedContent; } public boolean getCreateCommentWithAllSingleFileComments() { - return this.createCommentWithAllSingleFileComments; + return createCommentWithAllSingleFileComments; } public boolean getCreateSingleFileComments() { - return this.createSingleFileComments; + return createSingleFileComments; } public String getPassword() { - return this.password; + return password; } public String getProjectKey() { - return this.projectKey; + return projectKey; } public String getPullRequestId() { - return this.pullRequestId; + return pullRequestId; } public String getRepoSlug() { - return this.repoSlug; + return repoSlug; } public String getUsername() { - return this.username; + return username; } public String getUsernamePasswordCredentialsId() { - return this.usernamePasswordCredentialsId; + return usernamePasswordCredentialsId; } public List getViolationConfigs() { - return this.violationConfigs; + return violationConfigs; } @Override public int hashCode() { final int prime = 31; int result = 1; - result = prime * result + ((this.bitbucketServerUrl == null) ? 0 : this.bitbucketServerUrl.hashCode()); - result = prime * result + (this.createCommentWithAllSingleFileComments ? 1231 : 1237); - result = prime * result + (this.createSingleFileComments ? 1231 : 1237); - result = prime * result + ((this.password == null) ? 0 : this.password.hashCode()); - result = prime * result + ((this.projectKey == null) ? 0 : this.projectKey.hashCode()); - result = prime * result + ((this.pullRequestId == null) ? 0 : this.pullRequestId.hashCode()); - result = prime * result + ((this.repoSlug == null) ? 0 : this.repoSlug.hashCode()); - result = prime * result + (this.useUsernamePassword ? 1231 : 1237); - result = prime * result + (this.useUsernamePasswordCredentials ? 1231 : 1237); - result = prime * result + ((this.username == null) ? 0 : this.username.hashCode()); - result = prime * result - + ((this.usernamePasswordCredentialsId == null) ? 0 : this.usernamePasswordCredentialsId.hashCode()); - result = prime * result + ((this.violationConfigs == null) ? 0 : this.violationConfigs.hashCode()); + result = prime * result + (bitbucketServerUrl == null ? 0 : bitbucketServerUrl.hashCode()); + result = prime * result + (commentOnlyChangedContent ? 1231 : 1237); + result = prime * result + (createCommentWithAllSingleFileComments ? 1231 : 1237); + result = prime * result + (createSingleFileComments ? 1231 : 1237); + result = prime * result + (password == null ? 0 : password.hashCode()); + result = prime * result + (projectKey == null ? 0 : projectKey.hashCode()); + result = prime * result + (pullRequestId == null ? 0 : pullRequestId.hashCode()); + result = prime * result + (repoSlug == null ? 0 : repoSlug.hashCode()); + result = prime * result + (useUsernamePassword ? 1231 : 1237); + result = prime * result + (useUsernamePasswordCredentials ? 1231 : 1237); + result = prime * result + (username == null ? 0 : username.hashCode()); + result = prime * result + (usernamePasswordCredentialsId == null ? 0 : usernamePasswordCredentialsId.hashCode()); + result = prime * result + (violationConfigs == null ? 0 : violationConfigs.hashCode()); return result; } + private List includeAllReporters(List violationConfigs) { + List allViolationConfigs = ViolationsToBitbucketServerConfigHelper.getAllViolationConfigs(); + for (ViolationConfig candidate : allViolationConfigs) { + for (ViolationConfig input : violationConfigs) { + if (candidate.getReporter() == input.getReporter()) { + candidate.setPattern(input.getPattern()); + } + } + } + return allViolationConfigs; + } + public boolean isUseUsernamePassword() { - return this.useUsernamePassword; + return useUsernamePassword; } public boolean isUseUsernamePasswordCredentials() { - return this.useUsernamePasswordCredentials; + return useUsernamePasswordCredentials; } public void setBitbucketServerUrl(String bitbucketServerUrl) { this.bitbucketServerUrl = bitbucketServerUrl; } + public void setCommentOnlyChangedContent(boolean commentOnlyChangedContent) { + this.commentOnlyChangedContent = commentOnlyChangedContent; + } + public void setCreateCommentWithAllSingleFileComments(boolean createCommentWithAllSingleFileComments) { this.createCommentWithAllSingleFileComments = createCommentWithAllSingleFileComments; } @@ -258,7 +285,7 @@ public void setProjectKey(String projectKey) { } public void setPullRequestId(String string) { - this.pullRequestId = string; + pullRequestId = string; } public void setRepoSlug(String repoSlug) { @@ -282,29 +309,17 @@ public void setUseUsernamePasswordCredentials(boolean useUsernamePasswordCredent } public void setViolationConfigs(List parsers) { - this.violationConfigs = parsers; + violationConfigs = parsers; } @Override public String toString() { - return "ViolationsToBitbucketServerConfig [bitbucketServerUrl=" + this.bitbucketServerUrl - + ", createCommentWithAllSingleFileComments=" + this.createCommentWithAllSingleFileComments - + ", createSingleFileComments=" + this.createSingleFileComments + ", password=" + this.password + ", projectKey=" - + this.projectKey + ", pullRequestId=" + this.pullRequestId + ", repoSlug=" + this.repoSlug + ", username=" - + this.username + ", violationConfigs=" + this.violationConfigs + ", usernamePasswordCredentialsId=" - + this.usernamePasswordCredentialsId + ", useUsernamePasswordCredentials=" + this.useUsernamePasswordCredentials - + ", useUsernamePassword=" + this.useUsernamePassword + "]"; - } - - private List includeAllReporters(List violationConfigs) { - List allViolationConfigs = ViolationsToBitbucketServerConfigHelper.getAllViolationConfigs(); - for (ViolationConfig candidate : allViolationConfigs) { - for (ViolationConfig input : violationConfigs) { - if (candidate.getReporter() == input.getReporter()) { - candidate.setPattern(input.getPattern()); - } - } - } - return allViolationConfigs; + return "ViolationsToBitbucketServerConfig [commentOnlyChangedContent=" + commentOnlyChangedContent + + ", bitbucketServerUrl=" + bitbucketServerUrl + ", createCommentWithAllSingleFileComments=" + + createCommentWithAllSingleFileComments + ", createSingleFileComments=" + createSingleFileComments + ", password=" + + password + ", projectKey=" + projectKey + ", pullRequestId=" + pullRequestId + ", repoSlug=" + repoSlug + + ", username=" + username + ", usernamePasswordCredentialsId=" + usernamePasswordCredentialsId + + ", useUsernamePassword=" + useUsernamePassword + ", useUsernamePasswordCredentials=" + + useUsernamePasswordCredentials + ", violationConfigs=" + violationConfigs + "]"; } } diff --git a/src/main/java/org/jenkinsci/plugins/jvctb/config/ViolationsToBitbucketServerConfigHelper.java b/src/main/java/org/jenkinsci/plugins/jvctb/config/ViolationsToBitbucketServerConfigHelper.java index cda6f21..4f4a377 100644 --- a/src/main/java/org/jenkinsci/plugins/jvctb/config/ViolationsToBitbucketServerConfigHelper.java +++ b/src/main/java/org/jenkinsci/plugins/jvctb/config/ViolationsToBitbucketServerConfigHelper.java @@ -9,6 +9,7 @@ public class ViolationsToBitbucketServerConfigHelper { public static final String FIELD_BITBUCKETSERVERURL = "bitbucketServerUrl"; public static final String FIELD_CREATECOMMENTWITHALLSINGLEFILECOMMENTS = "createCommentWithAllSingleFileComments"; + public static final String FIELD_COMMENTONLYCHANGEDCONTENT = "commentOnlyChangedContent"; public static final String FIELD_CREATESINGLEFILECOMMENTS = "createSingleFileComments"; public static final String FIELD_PASSWORD = "password"; public static final String FIELD_PATTERN = "pattern"; diff --git a/src/main/java/org/jenkinsci/plugins/jvctb/perform/JvctbPerformer.java b/src/main/java/org/jenkinsci/plugins/jvctb/perform/JvctbPerformer.java index eacfd80..0b4509c 100644 --- a/src/main/java/org/jenkinsci/plugins/jvctb/perform/JvctbPerformer.java +++ b/src/main/java/org/jenkinsci/plugins/jvctb/perform/JvctbPerformer.java @@ -9,6 +9,7 @@ import static java.util.logging.Level.SEVERE; import static org.jenkinsci.plugins.jvctb.config.CredentialsHelper.findCredentials; import static org.jenkinsci.plugins.jvctb.config.ViolationsToBitbucketServerConfigHelper.FIELD_BITBUCKETSERVERURL; +import static org.jenkinsci.plugins.jvctb.config.ViolationsToBitbucketServerConfigHelper.FIELD_COMMENTONLYCHANGEDCONTENT; import static org.jenkinsci.plugins.jvctb.config.ViolationsToBitbucketServerConfigHelper.FIELD_CREATECOMMENTWITHALLSINGLEFILECOMMENTS; import static org.jenkinsci.plugins.jvctb.config.ViolationsToBitbucketServerConfigHelper.FIELD_CREATESINGLEFILECOMMENTS; import static org.jenkinsci.plugins.jvctb.config.ViolationsToBitbucketServerConfigHelper.FIELD_PASSWORD; @@ -88,6 +89,7 @@ public static void doPerform(final ViolationsToBitbucketServerConfig config, fin .withViolations(allParsedViolations)// .withCreateCommentWithAllSingleFileComments(config.getCreateCommentWithAllSingleFileComments())// .withCreateSingleFileComments(config.getCreateSingleFileComments())// + .withCommentOnlyChangedContent(config.getCommentOnlyChangedContent())// .toPullRequest(); } catch (final Exception e) { Logger.getLogger(JvctbPerformer.class.getName()).log(SEVERE, "", e); @@ -116,6 +118,8 @@ static ViolationsToBitbucketServerConfig expand(final ViolationsToBitbucketServe expanded.setUsernamePasswordCredentialsId(config.getUsernamePasswordCredentialsId()); expanded.setUseUsernamePassword(config.isUseUsernamePassword()); expanded.setUseUsernamePasswordCredentials(config.isUseUsernamePasswordCredentials()); + expanded.setCommentOnlyChangedContent(config.getCommentOnlyChangedContent()); + for (final ViolationConfig violationConfig : config.getViolationConfigs()) { final ViolationConfig p = new ViolationConfig(); p.setPattern(environment.expand(violationConfig.getPattern())); @@ -180,6 +184,7 @@ private static void logConfiguration(final ViolationsToBitbucketServerConfig con listener.getLogger().println(FIELD_CREATESINGLEFILECOMMENTS + ": " + config.getCreateSingleFileComments()); listener.getLogger() .println(FIELD_CREATECOMMENTWITHALLSINGLEFILECOMMENTS + ": " + config.getCreateCommentWithAllSingleFileComments()); + listener.getLogger().println(FIELD_COMMENTONLYCHANGEDCONTENT + ": " + config.getCommentOnlyChangedContent()); for (final ViolationConfig violationConfig : config.getViolationConfigs()) { listener.getLogger().println(violationConfig.getReporter() + " with pattern " + violationConfig.getPattern()); diff --git a/src/main/resources/org/jenkinsci/plugins/jvctb/ViolationsToBitbucketServerRecorder/config.jelly b/src/main/resources/org/jenkinsci/plugins/jvctb/ViolationsToBitbucketServerRecorder/config.jelly index 5f36524..70165df 100644 --- a/src/main/resources/org/jenkinsci/plugins/jvctb/ViolationsToBitbucketServerRecorder/config.jelly +++ b/src/main/resources/org/jenkinsci/plugins/jvctb/ViolationsToBitbucketServerRecorder/config.jelly @@ -78,6 +78,10 @@ + + + +