Skip to content

Commit

Permalink
Add environment build/promote date to CLM API output (jsc#SUMA-280) (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
cbbayburt authored Jul 6, 2023
1 parent a360013 commit 2869fb9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
* #prop("string", "description")
* #prop("int", "version")
* #prop("string", "status")
* #prop_desc("$date", "lastBuildDate", "last build/promote date")
* #prop("string", "contentProjectLabel")
* #prop("string", "previousEnvironmentLabel")
* #prop("string", "nextEnvironmentLabel")
Expand All @@ -54,6 +55,7 @@ public SerializedApiResponse serialize(ContentEnvironment src) {
.add("description", src.getDescription())
.add("version", src.getVersion())
.add("status", src.computeStatus().map(EnvironmentTarget.Status::getLabel).orElse("unknown"))
.add("lastBuildDate", src.computeBuiltTime().orElse(null))
.add("contentProjectLabel", src.getContentProject().getLabel())
.add("previousEnvironmentLabel", src.getPrevEnvironmentOpt()
.map(ContentEnvironment::getLabel).orElse(null))
Expand Down
1 change: 1 addition & 0 deletions java/spacewalk-java.changes.cbbayburt.clm-promote-date
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Add environment build/promote date to CLM API output (jsc#SUMA-280)

0 comments on commit 2869fb9

Please sign in to comment.