diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2013-01-22 09:57:54 +0100 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2013-01-22 09:57:54 +0100 |
commit | 813904f035b612a9c61caba97d54f8a803f5a69c (patch) | |
tree | 35a1503cc1af61faa1b78ae0c5e7a5a452f93731 /src/main/java/io/trygvis/esper/testing/web/resource/CoreResource.java | |
parent | 6e403ab935f36720b3b954afdf3bbefcbf50bb5c (diff) | |
download | esper-testing-813904f035b612a9c61caba97d54f8a803f5a69c.tar.gz esper-testing-813904f035b612a9c61caba97d54f8a803f5a69c.tar.bz2 esper-testing-813904f035b612a9c61caba97d54f8a803f5a69c.tar.xz esper-testing-813904f035b612a9c61caba97d54f8a803f5a69c.zip |
o Showing links to the Jenkins build on the build page.
Diffstat (limited to 'src/main/java/io/trygvis/esper/testing/web/resource/CoreResource.java')
-rwxr-xr-x | src/main/java/io/trygvis/esper/testing/web/resource/CoreResource.java | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/main/java/io/trygvis/esper/testing/web/resource/CoreResource.java b/src/main/java/io/trygvis/esper/testing/web/resource/CoreResource.java index 8ca2521..5b0619a 100755 --- a/src/main/java/io/trygvis/esper/testing/web/resource/CoreResource.java +++ b/src/main/java/io/trygvis/esper/testing/web/resource/CoreResource.java @@ -206,7 +206,8 @@ public class CoreResource extends AbstractResource { protected final SqlF<BuildDto, BuildJson> getBuildJson = new SqlF<BuildDto, BuildJson>() { public BuildJson apply(BuildDto dto) throws SQLException { - return new BuildJson(dto.uuid, dto.createdDate, dto.timestamp, dto.success); + return new BuildJson(dto.uuid, dto.createdDate, dto.timestamp, dto.success, "jenkins", + dto.ref.uuid); } }; @@ -252,12 +253,16 @@ class BuildJson { public final DateTime createdDate; public final DateTime timestamp; public final boolean success; + public final String serverType; + public final UUID buildUuid; - public BuildJson(UUID uuid, DateTime createdDate, DateTime timestamp, boolean success) { + BuildJson(UUID uuid, DateTime createdDate, DateTime timestamp, boolean success, String serverType, UUID buildUuid) { this.uuid = uuid; this.createdDate = createdDate; this.timestamp = timestamp; this.success = success; + this.serverType = serverType; + this.buildUuid = buildUuid; } } |