yocto_console_view: Add link to output directory in summary

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Richard Purdie 2020-11-29 18:03:23 +00:00
parent c31ca19a34
commit e878e85d5c
2 changed files with 6 additions and 1 deletions

View File

@ -101,7 +101,7 @@ class Console {
this.$scope.branchmapping = (this.branchmapping = {}); this.$scope.branchmapping = (this.branchmapping = {});
this.$scope.builds = (this.builds = this.dataAccessor.getBuilds({ this.$scope.builds = (this.builds = this.dataAccessor.getBuilds({
property: ["yp_build_revision", "yp_build_branch", "reason"], property: ["yp_build_revision", "yp_build_branch", "reason", "publish_destination"],
limit: this.buildLimit, limit: this.buildLimit,
order: '-started_at' order: '-started_at'
})); }));
@ -435,6 +435,9 @@ class Console {
if ((build.properties != null ? build.properties.reason : undefined) != null) { if ((build.properties != null ? build.properties.reason : undefined) != null) {
change.reason = build.properties.reason[0]; change.reason = build.properties.reason[0];
} }
if ((build.properties != null ? build.properties.publish_destination : undefined) != null) {
change.publishurl = build.properties.publish_destination[0].replace("/srv/autobuilder/autobuilder.yoctoproject.org/", "https://autobuilder.yocto.io/");
}
} else { } else {
rev = `Unresolved Revision`; rev = `Unresolved Revision`;
if ((change == null)) { if ((change == null)) {

View File

@ -6,6 +6,8 @@ div.yoctochangedetails(style="width:100%;")
| {{ "Errors" }} &nbsp; | {{ "Errors" }} &nbsp;
a(ng-if="change.loglink", ng-href="{{change.loglink}}") a(ng-if="change.loglink", ng-href="{{change.loglink}}")
| {{ "WikiLog" }} &nbsp; | {{ "WikiLog" }} &nbsp;
a(ng-if="change.publishurl", ng-href="{{change.publishurl}}")
| {{ "Output" }} &nbsp;
span(ng-if="!change.revlink", uib-tooltip="{{change.comments}}") span(ng-if="!change.revlink", uib-tooltip="{{change.comments}}")
| {{ change.caption }} &nbsp; | {{ change.caption }} &nbsp;
span(ng-if="!compact" uib-tooltip="{{change.when_timestamp | dateformat:'LLL'}}") span(ng-if="!compact" uib-tooltip="{{change.when_timestamp | dateformat:'LLL'}}")