use of io.jenkins.blueocean.rest.model.BlueChangeSetEntry in project blueocean-plugin by jenkinsci.
the class PipelineRunImpl method getChangeSet.
@Override
public Container<BlueChangeSetEntry> getChangeSet() {
Map<String, BlueChangeSetEntry> m = new LinkedHashMap<>();
int cnt = 0;
for (ChangeLogSet<? extends Entry> cs : run.getChangeSets()) {
for (ChangeLogSet.Entry e : cs) {
cnt++;
String id = e.getCommitId();
if (id == null)
id = String.valueOf(cnt);
m.put(id, new ChangeSetResource(e, this));
}
}
return Containers.fromResourceMap(getLink(), m);
}
Aggregations