com.liferay.jenkins.results.parser.dependencies.get-build-url.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of com.liferay.jenkins.results.parser
Show all versions of com.liferay.jenkins.results.parser
Liferay Jenkins Results Parser
Map topLevelItems = Jenkins.instance.getItemMap();
TopLevelItem topLevelItem = topLevelItems.get("${jenkinsJobName}");
for (def build : topLevelItem.getBuilds()) {
if (build.getQueueId() == ${jenkinsQueueId}) {
println(Jenkins.instance.getRootUrl() + build.getUrl());
break;
}
}