OLD | NEW |
1 <!-- | 1 <!-- |
2 Copyright 2014 The Chromium Authors. All rights reserved. | 2 Copyright 2014 The Chromium Authors. All rights reserved. |
3 Use of this source code is governed by a BSD-style license that can be | 3 Use of this source code is governed by a BSD-style license that can be |
4 found in the LICENSE file. | 4 found in the LICENSE file. |
5 --> | 5 --> |
6 | 6 |
7 <script> | 7 <script> |
8 function CTBuilder(masterUrl, builder, firstFailingBuild, failingBuildCount) { | 8 function CTBuilder(masterUrl, builder, firstFailingBuild, failingBuildCount) { |
9 this.masterUrl = masterUrl; | 9 this.masterUrl = masterUrl; |
10 this.builder = builder; | 10 this.builder = builder; |
11 this.firstFailingBuild = firstFailingBuild; | 11 this.firstFailingBuild = firstFailingBuild; |
12 this.failingBuildCount = failingBuildCount; | 12 this.failingBuildCount = failingBuildCount; |
13 this.buildUrl = "{1}/builders/{2}/builds/{3}".assign( | 13 this.buildUrl = "{1}/builders/{2}".assign( |
14 masterUrl, encodeURIComponent(builder), firstFailingBuild); | 14 masterUrl, encodeURIComponent(builder)); |
| 15 if (firstFailingBuild) |
| 16 this.buildUrl += "/builds/" + firstFailingBuild; |
15 } | 17 } |
16 </script> | 18 </script> |
OLD | NEW |