Closed jimklimov closed 1 year ago
Hi @jimklimov!
If you are still looking for this, I found that removeSummaries(id:'some id')
and removeSummaries()
exist and work for summaries like removeBadges
works for badges.
These seem to be missing in the documentation, though.
Describe the bug I am trying to add a rolling update of my build status, by posting short texts into the build history column and into the summary page. These texts are posted with an ID, so I would remove the older entry when I post a new one.
In case of createSummary(), the README does imply that the id field allows to remove the entry later - but at least removeBadge() did not work for it (works for the "usual" badges though not instantaneously - sometimes several older entries remain and then disappear all at once).
To Reproduce Pipeline runs a loop, each cycle of which calls this logic at the end to update the progress info:
Expected behavior I expected the older summary entry to disappear and only the latest to be seen.
Screenshots
As seen in the build summary page (never mind the blank icon areas):
Additional context I wonder if this is linked to the summary step creating a different kind of object (than the left-column badges that can be removed). Notably, only one XML tag with the ID of a "badge" is present at any time as seen in the build.xml file, but many tags with the same ID of a "summary" are present: