Skip to content

Commit

Permalink
add back the build part, that was in .gitignore
Browse files Browse the repository at this point in the history
Signed-off-by: Pierre Tardy <pierre.tardy@intel.com>
  • Loading branch information
Pierre Tardy committed Aug 27, 2014
1 parent 1478a2a commit a0464ec
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 1 deletion.
2 changes: 1 addition & 1 deletion www/.gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MANIFEST.in
build
!src/app/builders/build
!base/src/app/builders/build
dist/
static/
coverage/
Expand Down
24 changes: 24 additions & 0 deletions www/base/src/app/builders/build/build.controller.coffee
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
class Build extends Controller
constructor: ($rootScope, $scope, $location, buildbotService, $stateParams, recentStorage) ->

buildbotService.bindHierarchy($scope, $stateParams, ['builders', 'builds'])
.then ([builder, build]) ->
$rootScope.$broadcast "breadcrumb", [
caption: "Builders"
sref: "builders"
,
caption: builder.name
sref: "builder({builder:#{builder.id}})"
,
caption: build.number
sref: "build({build:#{build.number}})"
]
buildbotService.one("buildslaves", build.buildslaveid).bind($scope)
buildbotService.one("buildrequests", build.buildrequestid)
.bind($scope).then (buildrequest) ->
buildset = buildbotService.one("buildsets", buildrequest.buildsetid)
buildset.bind($scope)
buildset.one("properties").bind($scope, dest_key:'properties')
recentStorage.addBuild
link: "#/builders/#{$scope.builder.builderid}/build/#{$scope.build.number}"
caption: "#{$scope.builder.name} / #{$scope.build.number}"
15 changes: 15 additions & 0 deletions www/base/src/app/builders/build/build.route.coffee
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
class State extends Config
constructor: ($stateProvider) ->

# Name of the state
name = 'build'

# Register new state
state =
controller: "#{name}Controller"
templateUrl: "views/#{name}.html"
name: name
url: '/builders/:builder/build/:build'
data: {}

$stateProvider.state(state)
24 changes: 24 additions & 0 deletions www/base/src/app/builders/build/build.tpl.jade
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
.container
.row
ul.breadcrumb
li.pull-right
button.btn.btn-default(ng-show="build.complete") Rebuild
li.pull-right
button.btn.btn-default(ng-show="build.complete") Promote
.row
.col-sm-5
buildsummary(ng-if="build", buildid="build.buildid")
.col-sm-7
tabset
tab(heading="properties")
rawdata(data="properties")
tab(heading="{{buildslave.name}}")
rawdata(data="buildslave")
tab(heading="builder")
rawdata(data="builder")
tab(heading="build")
rawdata(data="build")
tab(heading="buildrequest")
rawdata(data="buildrequest")
tab(heading="buildset")
rawdata(data="buildset")

0 comments on commit a0464ec

Please sign in to comment.