This repository has been archived by the owner on Apr 6, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[JENKINS-10027] Fixed type of action.
- Loading branch information
Showing
9 changed files
with
68 additions
and
6 deletions.
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
22 changes: 22 additions & 0 deletions
22
src/main/java/hudson/plugins/analysis/collector/tokens/FixedWarningsCountTokenMacro.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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); | ||
} | ||
} | ||
|
22 changes: 22 additions & 0 deletions
22
src/main/java/hudson/plugins/analysis/collector/tokens/NewWarningsCountTokenMacro.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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
8 changes: 8 additions & 0 deletions
8
...esources/hudson/plugins/analysis/collector/tokens/FixedWarningsCountTokenMacro/help.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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> |
8 changes: 8 additions & 0 deletions
8
.../resources/hudson/plugins/analysis/collector/tokens/NewWarningsCountTokenMacro/help.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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.