![Tim Buckley](/assets/img/avatar_default.png)
This adds a new console.html summary and details view that can gives overview information about console output, organizes output by section, and can also determine the currently running script at job failure time. The console viewer is a CodeMirror-based widget that provides basic highlighting and folding capabilities to make console output easier to browse. Change-Id: I27a9a532ae117d2914dc2f3a866c780378e79f72
21 lines
491 B
JavaScript
21 lines
491 B
JavaScript
'use strict';
|
|
|
|
var controllersModule = require('./_index');
|
|
|
|
var codemirror = require('codemirror');
|
|
|
|
/**
|
|
* @ngInject
|
|
*/
|
|
function ConsoleController($scope, $location, $stateParams, datasetService) {
|
|
var vm = this;
|
|
vm.artifactName = $stateParams.artifactName;
|
|
vm.show = $location.search().show;
|
|
|
|
datasetService.artifact(vm.artifactName, 'console').then(function(response) {
|
|
vm.data = response.data;
|
|
});
|
|
}
|
|
|
|
controllersModule.controller('ConsoleController', ConsoleController);
|