summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Coldrick <adam@sotk.co.uk>2015-09-26 19:19:16 +0100
committerAdam Coldrick <adam@sotk.co.uk>2015-09-28 20:26:11 +0100
commita44fe25d73abfdbd691f27e0e35008f4080f3685 (patch)
tree368030314e7bfc5692e329b605587ebd7daa9281
parent42a7acd601c949d57e25d3c31d806fd31ee443c9 (diff)
downloadciat-ui-a44fe25d73abfdbd691f27e0e35008f4080f3685.tar.gz
Initial log link
-rw-r--r--index.html2
-rw-r--r--js/main.js3
2 files changed, 4 insertions, 1 deletions
diff --git a/index.html b/index.html
index 5c04113..264e1a3 100644
--- a/index.html
+++ b/index.html
@@ -20,6 +20,8 @@
ng-show="selected">
<h3>{{selected.name}}</h3>
<em>State:</em> {{selected.data.state}}
+ <br />
+ <a ng-href="{{selected.lastBuild.logs[2][1]}}">Last Build Log</a>
</div>
</div>
</div>
diff --git a/js/main.js b/js/main.js
index 162809e..6e67179 100644
--- a/js/main.js
+++ b/js/main.js
@@ -33,7 +33,8 @@ app.controller('VisualisationController', function($scope, $http, $q, $interval)
$http.get(buildsPath).then(function(response) {
var details = {
success: checkInArray(response.data.text, 'successful'),
- failed: checkInArray(response.data.text, 'failed')
+ failed: checkInArray(response.data.text, 'failed'),
+ logs: response.data.logs
};
$scope.steps.push({
name: key,