-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add back the build part, that was in .gitignore
Signed-off-by: Pierre Tardy <pierre.tardy@intel.com>
- Loading branch information
Pierre Tardy
committed
Aug 27, 2014
1 parent
1478a2a
commit a0464ec
Showing
4 changed files
with
64 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") |