This repository has been archived by the owner. It is now read-only.
Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
with
68 additions
and 6 deletions.
- +1 −1 pom.xml
- +22 −0 src/main/java/hudson/plugins/analysis/collector/tokens/FixedWarningsCountTokenMacro.java
- +22 −0 src/main/java/hudson/plugins/analysis/collector/tokens/NewWarningsCountTokenMacro.java
- +4 −3 src/main/java/hudson/plugins/analysis/collector/tokens/WarningsCountTokenMacro.java
- +3 −2 src/main/java/hudson/plugins/analysis/collector/tokens/WarningsResultTokenMacro.java
- +8 −0 src/main/resources/hudson/plugins/analysis/collector/tokens/FixedWarningsCountTokenMacro/help.jelly
- +8 −0 src/main/resources/hudson/plugins/analysis/collector/tokens/NewWarningsCountTokenMacro/help.jelly
- 0 ...ava → main/resources}/hudson/plugins/analysis/collector/tokens/WarningsCountTokenMacro/help.jelly
- 0 ...va → main/resources}/hudson/plugins/analysis/collector/tokens/WarningsResultTokenMacro/help.jelly
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -0,0 +1,22 @@ | ||
package hudson.plugins.analysis.collector.tokens; | ||
|
||
import hudson.Extension; | ||
import hudson.plugins.analysis.collector.AnalysisResultAction; | ||
import hudson.plugins.analysis.tokens.AbstractFixedAnnotationsTokenMacro; | ||
|
||
/** | ||
* Provides a token that evaluates to the number of new warnings. | ||
* | ||
* @author Ulli Hafner | ||
*/ | ||
@Extension(optional = true) | ||
public class FixedWarningsCountTokenMacro extends AbstractFixedAnnotationsTokenMacro { | ||
/** | ||
* Creates a new instance of {@link FixedWarningsCountTokenMacro}. | ||
*/ | ||
@SuppressWarnings("unchecked") | ||
public FixedWarningsCountTokenMacro() { | ||
super("ANALYSIS_FIXED", AnalysisResultAction.class); | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -0,0 +1,22 @@ | ||
package hudson.plugins.analysis.collector.tokens; | ||
|
||
import hudson.Extension; | ||
import hudson.plugins.analysis.collector.AnalysisResultAction; | ||
import hudson.plugins.analysis.tokens.AbstractNewAnnotationsTokenMacro; | ||
|
||
/** | ||
* Provides a token that evaluates to the number of new warnings. | ||
* | ||
* @author Ulli Hafner | ||
*/ | ||
@Extension(optional = true) | ||
public class NewWarningsCountTokenMacro extends AbstractNewAnnotationsTokenMacro { | ||
/** | ||
* Creates a new instance of {@link NewWarningsCountTokenMacro}. | ||
*/ | ||
@SuppressWarnings("unchecked") | ||
public NewWarningsCountTokenMacro() { | ||
super("ANALYSIS_NEW", AnalysisResultAction.class); | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -0,0 +1,8 @@ | ||
<j:jelly xmlns:j="jelly:core"> | ||
|
||
<dt>$${ANALYSIS_FIXED}</dt> | ||
<dd> | ||
Expands to the total number of new warnings in a build. | ||
</dd> | ||
|
||
</j:jelly> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -0,0 +1,8 @@ | ||
<j:jelly xmlns:j="jelly:core"> | ||
|
||
<dt>$${ANALYSIS_NEW}</dt> | ||
<dd> | ||
Expands to the total number of new warnings in a build. | ||
</dd> | ||
|
||
</j:jelly> |
File renamed without changes.
File renamed without changes.