|
|
|
[
Permlink
| « Hide
]
U. Artie Eoff [02/Jun/23 01:12 PM]
Ideally, the wrapper.conf modification would be included in the release so we don't have to do any manual modification to it.
Actually, the script error might come from a different spot... "pbs.stream().find", below. Here is the full groovy script for your reference:
groovy: import java.io.File; import java.util.Set; import com.pmease.quickbuild.dependency.QuickbuildRepository; import com.pmease.quickbuild.plugin.basis.DummyRepository; def baseBuildDeps(b) { def result = [] as Set; if (b) { for (repository in b.repositories) { if (repository instanceof DummyRepository) { continue; } if (repository instanceof QuickbuildRepository) { for (info in repository.revision.value) { result = result.plus(baseBuildDeps(system.buildManager.get(info.buildId))); } } else { result.add(repository.build); } } } return result; } def cbs = baseBuildDeps(build); def pbs = baseBuildDeps(build.previous); new File(configuration.workspaceDir, "changes.html").withWriter('utf-8') { writer -> writer.writeLine "<html><body><table>"; writer.writeLine "<tr><td colspan=3 style='text-align:center;vertical-align:middle;font-weight:bold' bgcolor='#9dbfbf'>Changes</td></tr>"; for (cb in cbs) { def pb = pbs.stream().find { it -> it.configuration.id == cb.configuration.id }; // if there is a previous build dep and the previous build dep is not the same as // the current build dep, then capture all the changes since the previous build dep. if (pb && pb != cb) { it = system.buildManager.getNext(pb); while (it && it != cb) { for (change in it.changes) { writer.writeLine "<tr>"; writer.writeLine "<td style='vertical-align: top;'><a href='" + it.url + "'>" + it.configuration.name + "</a></td>"; writer.writeLine "<td style='vertical-align: top;'><pre>" + change.id.substring(0, 12) + "</pre></td>"; writer.writeLine "<td style='vertical-align: top;'><pre> - " + util.formatString(change.comment.readLines()[0]) + "</pre></td>"; writer.writeLine "</tr>"; } it = system.buildManager.getNext(it); } for (change in cb.changes) { writer.writeLine "<tr>"; writer.writeLine "<td style='vertical-align: top;'><a href='" + cb.url + "'>" + cb.configuration.name + "</a></td>"; writer.writeLine "<td style='vertical-align: top;'><pre>" + change.id.substring(0, 12) + "</pre></td>"; writer.writeLine "<td style='vertical-align: top;'><pre> - " + util.formatString(change.comment.readLines()[0]) + "</pre></td>"; writer.writeLine "</tr>"; } } } writer.writeLine "</table></body></html>"; }
Thanks for the investigation. This has now been fixed in 13.0.21.
|