Skip to content

Commit

Permalink
Merge pull request #1377 from tomaslin/titus-image-server-group
Browse files Browse the repository at this point in the history
Titus: return image details in server group build info
  • Loading branch information
tomaslin authored Jan 12, 2017
2 parents d18ff63 + 6e12bd0 commit 151cb5e
Showing 1 changed file with 2 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ class TitusServerGroup implements ServerGroup, Serializable {
String capacityGroup
int retries
int runtimeLimitSecs
Map buildInfo

TitusServerGroup() {}

Expand Down Expand Up @@ -87,6 +88,7 @@ class TitusServerGroup implements ServerGroup, Serializable {
retries = job.retries
runtimeLimitSecs = job.runtimeLimitSecs
efs = job.efs
buildInfo = [images: ["${image.dockerImageName}:${image.dockerImageVersion}".toString()]]
}

@Override
Expand Down Expand Up @@ -138,29 +140,6 @@ class TitusServerGroup implements ServerGroup, Serializable {

@Override
ServerGroup.ImagesSummary getImagesSummary() {
def i = image
String imageDetails = "${i.dockerImageName}:${i.dockerImageVersion}"
return new ServerGroup.ImagesSummary() {
@Override
List<ServerGroup.ImageSummary> getSummaries() {
return [new ServerGroup.ImageSummary() {
String serverGroupName = name
String imageName = imageDetails
String imageId = imageDetails

@Override
Map<String, Object> getBuildInfo() {
// TODO(sthadeshwar): Where to get build info?
return null
}

@Override
Map<String, Object> getImage() {
return i
}
}]
}
}
}

@Override
Expand Down

0 comments on commit 151cb5e

Please sign in to comment.