Skip to content

Commit

Permalink
[JENKINS-7280] Touch-ups.
Browse files Browse the repository at this point in the history
  • Loading branch information
jglick committed May 23, 2013
1 parent 0c24848 commit 53cbf59
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
3 changes: 3 additions & 0 deletions changelog.html
Expand Up @@ -58,6 +58,9 @@
<li class=rfe>
Enable word breaking in potentially long strings like job names.
(<a href="https://issues.jenkins-ci.org/browse/JENKINS-17030">issue 17030</a>)
<li class=rfe>
Allow filtering of the Run parameter build list by result.
(<a href="https://issues.jenkins-ci.org/browse/JENKINS-7280">issue 7280</a>)
<li class=bug>
“Recurse in subfolders” option for list views produced exceptions when used with native Maven projects.
(<a href="https://issues.jenkins-ci.org/browse/JENKINS-18025">issue 18025</a>)
Expand Down
7 changes: 6 additions & 1 deletion core/src/main/java/hudson/model/RunParameterDefinition.java
Expand Up @@ -38,7 +38,8 @@
public class RunParameterDefinition extends SimpleParameterDefinition {

/**
* Constants that control how Run Parameter is filtered
* Constants that control how Run Parameter is filtered.
* @since 1.517
*/
public enum RunParameterFilter {
ALL,
Expand All @@ -59,6 +60,9 @@ public String getName() {
private final String runId;
private final RunParameterFilter filter;

/**
* @since 1.517
*/
@DataBoundConstructor
public RunParameterDefinition(String name, String projectName, String description, RunParameterFilter filter) {
super(name, description);
Expand Down Expand Up @@ -103,6 +107,7 @@ public Job getProject() {

/**
* @return The current filter value, if filter is null, returns ALL
* @since 1.517
*/
public RunParameterFilter getFilter() {
// if filter is null, default to RunParameterFilter.ALL
Expand Down
4 changes: 2 additions & 2 deletions core/src/main/java/hudson/util/RunList.java
Expand Up @@ -241,9 +241,9 @@ public boolean apply(R r) {
}

/**
* Filter the list to builds >= threshold.
* Filter the list to builds above threshold.
*
* @since 1.516
* @since 1.517
*/
public RunList<R> overThresholdOnly(final Result threshold) {
return filter(new Predicate<R>() {
Expand Down
Expand Up @@ -238,7 +238,7 @@ public void testSTABLEFilter() throws Exception {

static class ResultPublisher extends Publisher {

private Result result = Result.FAILURE;
private final Result result;

public ResultPublisher(Result result) {
this.result = result;
Expand Down

0 comments on commit 53cbf59

Please sign in to comment.