accumulate console output + show more build info
This commit is contained in:
parent
2a2512fe3e
commit
b5bfc8ce29
@ -1,5 +1,7 @@
|
|||||||
li.list-group-item
|
li.list-group-item(title= item.status === 'in-progress' ? 'Current step is: ' + item.currentStep : 'Build is done')
|
||||||
span.badge= item.status
|
span.badge= item.status
|
||||||
a.pull-right(href="javascript:void(0);", onClick=onBuildSelect(item.id), style={marginRight: '5px'}) show console output
|
a.pull-right(href="javascript:void(0);", onClick=onBuildSelect(item.id), style={marginRight: '5px'}) show console output
|
||||||
span Build #
|
span #
|
||||||
span= item.id
|
span= item.id
|
||||||
|
span
|
||||||
|
span= item.project.name
|
||||||
|
@ -14,17 +14,21 @@ define([
|
|||||||
},
|
},
|
||||||
|
|
||||||
onReadConsoleOutput: function(buildId) {
|
onReadConsoleOutput: function(buildId) {
|
||||||
this.output = ''
|
var self = this;
|
||||||
|
|
||||||
var resourceName = 'build' + buildId,
|
self.output = '';
|
||||||
self = this;
|
|
||||||
|
var resourceName = 'build' + buildId;
|
||||||
|
|
||||||
connect.resource(resourceName).unsubscribeAll();
|
connect.resource(resourceName).unsubscribeAll();
|
||||||
connect.resource(resourceName).subscribe(function(data) {
|
connect.resource(resourceName).subscribe(function(data) {
|
||||||
self.output += data;
|
self.output += data;
|
||||||
|
|
||||||
|
if (!/\n$/.test(self.output)) self.output += '\n';
|
||||||
|
|
||||||
self.trigger({
|
self.trigger({
|
||||||
name: 'Console for build #' + buildId,
|
name: 'Console for build #' + buildId,
|
||||||
data: data
|
data: self.output
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user