Skip to content
Permalink
Browse files

Merge pull request #1508 from ikedam/feature/JENKINS-26270_LastComple…

…tedBuildInPermalinks

[JENKINS-26270] Added "lastCompletedBuild" to permalinks.
  • Loading branch information...
olivergondza committed Oct 30, 2015
2 parents b21c33f + ca56131 commit 4f5ec2df1d5ea840cf3f6439e8623b87914c7fa7
@@ -178,6 +178,19 @@ public boolean apply(Run<?, ?> run) {
return !run.isBuilding() && run.getResult()!=Result.SUCCESS;
}
};
public static final Permalink LAST_COMPLETED_BUILD = new Permalink() {
public String getDisplayName() {
return Messages.Permalink_LastCompletedBuild();
}

public String getId() {
return "lastCompletedBuild";
}

public Run<?,?> resolve(Job<?,?> job) {
return job.getLastCompletedBuild();
}
};

static {
BUILTIN.add(LAST_BUILD);
@@ -186,6 +199,7 @@ public boolean apply(Run<?, ?> run) {
BUILTIN.add(LAST_FAILED_BUILD);
BUILTIN.add(LAST_UNSTABLE_BUILD);
BUILTIN.add(LAST_UNSUCCESSFUL_BUILD);
BUILTIN.add(LAST_COMPLETED_BUILD);
}
}
}
@@ -317,6 +317,7 @@ Permalink.LastUnstableBuild=Last unstable build
Permalink.LastUnsuccessfulBuild=Last unsuccessful build
Permalink.LastSuccessfulBuild=Last successful build
Permalink.LastFailedBuild=Last failed build
Permalink.LastCompletedBuild=Last completed build

ParameterAction.DisplayName=Parameters
ParametersDefinitionProperty.DisplayName=Parameters
@@ -268,6 +268,7 @@ Permalink.LastUnstableBuild=\u6700\u65b0\u306e\u4e0d\u5b89\u5b9a\u30d3\u30eb\u30
Permalink.LastUnsuccessfulBuild=\u6700\u65b0\u306e\u4e0d\u6210\u529f\u30d3\u30eb\u30c9
Permalink.LastSuccessfulBuild=\u6700\u65b0\u306e\u6210\u529f\u30d3\u30eb\u30c9
Permalink.LastFailedBuild=\u6700\u65b0\u306e\u5931\u6557\u30d3\u30eb\u30c9
Permalink.LastCompletedBuild=\u6700\u65b0\u306e\u5b8c\u4e86\u30d3\u30eb\u30c9


ParameterAction.DisplayName=\u30d1\u30e9\u30e1\u30fc\u30bf

0 comments on commit 4f5ec2d

Please sign in to comment.
You can’t perform that action at this time.