Skip to content
This repository has been archived by the owner on Feb 26, 2020. It is now read-only.

Commit

Permalink
[FIXED JENKINS-11761] Added option to skip the computation of new
Browse files Browse the repository at this point in the history
warnings. When this option is activated, then the synchronization
of the publisher build step is removed (thus making the build faster).
  • Loading branch information
uhafner committed Dec 5, 2011
1 parent 2526f14 commit 2ec8992
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 14 deletions.
10 changes: 7 additions & 3 deletions .classpath
@@ -1,11 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" output="target/classes" path="src/main/java"/>
<classpathentry kind="src" output="target/classes" path="src/main/resources"/>
<classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources"/>
<classpathentry kind="src" output="target/test-classes" path="src/test/java"/>
<classpathentry kind="src" output="target/test-classes" path="src/test/resources"/>
<classpathentry kind="src" path="target/generated-sources/localizer"/>
<classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER"/>
<classpathentry kind="src" output="target/classes" path="target/generated-sources/localizer">
<attributes>
<attribute name="optional" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="output" path="target/classes"/>
</classpath>
6 changes: 3 additions & 3 deletions pom.xml
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>org.jvnet.hudson.plugins</groupId>
<artifactId>analysis-pom</artifactId>
<version>1.29</version>
<version>1.33</version>
<relativePath>../analysis-pom/pom.xml</relativePath>
</parent>

Expand Down Expand Up @@ -36,12 +36,12 @@
<dependency>
<groupId>org.jvnet.hudson.plugins</groupId>
<artifactId>analysis-core</artifactId>
<version>1.31</version>
<version>1.34-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.jvnet.hudson.plugins</groupId>
<artifactId>analysis-test</artifactId>
<version>1.6</version>
<version>1.7-SNAPSHOT</version>
<scope>test</scope>
</dependency>
<dependency>
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/hudson/plugins/pmd/PmdPublisher.java
Expand Up @@ -100,14 +100,14 @@ public PmdPublisher(final String healthy, final String unHealthy, final String t
final String unstableNewAll, final String unstableNewHigh, final String unstableNewNormal, final String unstableNewLow,
final String failedTotalAll, final String failedTotalHigh, final String failedTotalNormal, final String failedTotalLow,
final String failedNewAll, final String failedNewHigh, final String failedNewNormal, final String failedNewLow,
final boolean canRunOnFailed, final boolean shouldDetectModules,
final boolean canRunOnFailed, final boolean shouldDetectModules, final boolean canComputeNew,
final String pattern) {
super(healthy, unHealthy, thresholdLimit, defaultEncoding, useDeltaValues,
unstableTotalAll, unstableTotalHigh, unstableTotalNormal, unstableTotalLow,
unstableNewAll, unstableNewHigh, unstableNewNormal, unstableNewLow,
failedTotalAll, failedTotalHigh, failedTotalNormal, failedTotalLow,
failedNewAll, failedNewHigh, failedNewNormal, failedNewLow,
canRunOnFailed, shouldDetectModules, PLUGIN_NAME);
canRunOnFailed, shouldDetectModules, canComputeNew, PLUGIN_NAME);
this.pattern = pattern;
}
// CHECKSTYLE:ON
Expand Down
12 changes: 6 additions & 6 deletions src/main/java/hudson/plugins/pmd/PmdReporter.java
Expand Up @@ -25,14 +25,10 @@
*/
public class PmdReporter extends HealthAwareReporter<PmdResult> {
private static final long serialVersionUID = 2272875032054063496L;

private static final String PLUGIN_NAME = "PMD";

/** Default PMD pattern. */
private static final String PMD_XML_FILE = "pmd.xml";
/** Ant file-set pattern of files to work with. */
@SuppressWarnings("unused")
private String pattern; // obsolete since release 2.5

/**
* Creates a new instance of <code>PmdReporter</code>.
Expand Down Expand Up @@ -93,13 +89,13 @@ public PmdReporter(final String healthy, final String unHealthy, final String th
final String unstableNewAll, final String unstableNewHigh, final String unstableNewNormal, final String unstableNewLow,
final String failedTotalAll, final String failedTotalHigh, final String failedTotalNormal, final String failedTotalLow,
final String failedNewAll, final String failedNewHigh, final String failedNewNormal, final String failedNewLow,
final boolean canRunOnFailed) {
final boolean canRunOnFailed, final boolean canComputeNew) {
super(healthy, unHealthy, thresholdLimit, useDeltaValues,
unstableTotalAll, unstableTotalHigh, unstableTotalNormal, unstableTotalLow,
unstableNewAll, unstableNewHigh, unstableNewNormal, unstableNewLow,
failedTotalAll, failedTotalHigh, failedTotalNormal, failedTotalLow,
failedNewAll, failedNewHigh, failedNewNormal, failedNewLow,
canRunOnFailed, PLUGIN_NAME);
canRunOnFailed, canComputeNew, PLUGIN_NAME);
}
// CHECKSTYLE:ON

Expand Down Expand Up @@ -135,5 +131,9 @@ public List<PmdProjectAction> getProjectActions(final MavenModule module) {
protected Class<PmdMavenResultAction> getResultActionClass() {
return PmdMavenResultAction.class;
}

/** Ant file-set pattern of files to work with. */
@SuppressWarnings("unused")
private transient String pattern; // obsolete since release 2.5
}

0 comments on commit 2ec8992

Please sign in to comment.