1 <!-- 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 4 found in the LICENSE file. 5 --> 6 7 <script> 8 function CTBuilder(masterUrl, builder, firstFailingBuild, failingBuildCount) { 9 this.masterUrl = masterUrl; 10 this.builder = builder; 11 this.firstFailingBuild = firstFailingBuild; 12 this.failingBuildCount = failingBuildCount; 13 this.buildUrl = "{1}/builders/{2}".assign( 14 masterUrl, encodeURIComponent(builder)); 15 if (firstFailingBuild) 16 this.buildUrl += "/builds/" + firstFailingBuild; 17 } 18 </script> 19