forked from openshift/origin-web-console
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild-config.html
622 lines (580 loc) · 35.8 KB
/
build-config.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
<default-header class="top-header"></default-header>
<div class="wrap no-sidebar">
<div class="sidebar-left collapse navbar-collapse navbar-collapse-2">
<navbar-utility-mobile></navbar-utility-mobile>
</div>
<div class="middle surface-shaded">
<!-- Middle section -->
<div class="middle-section" ng-show="buildConfig">
<div class="middle-container">
<div class="middle-content">
<div class="container surface-shaded">
<breadcrumbs breadcrumbs="breadcrumbs"></breadcrumbs>
<alerts alerts="alerts"></alerts>
<div ng-if="!loaded">Loading...</div>
<h1>
Edit Build Config {{buildConfig.metadata.name}}
<small>— {{strategyType | startCase}} Build Strategy</small>
</h1>
<fieldset ng-disabled="disableInputs">
<form class="edit-form" name="form" novalidate ng-submit="save()">
<div class="row">
<div class="col-lg-12">
<div ng-if="buildConfig.spec.source.type !== 'None'" class="section">
<h3>Source Configuration</h3>
<dl class="dl-horizontal left">
<div ng-if="sources.git">
<div class="row">
<div ng-class="{
'col-lg-8': view.advancedOptions,
'col-lg-12': !view.advancedOptions}">
<div class="form-group">
<label for="sourceUrl" class="required">Git Repository URL</label>
<div ng-class="{
'has-warning': form.sourceUrl.$touched && !sourceURLPattern.test(updatedBuildConfig.spec.source.git.uri),
'has-error': form.sourceUrl.$touched && form.sourceUrl.$error.required
}">
<!-- Unfortunately, we can't set type="url" because some valid values don't pass browser validation. -->
<input class="form-control"
id="sourceUrl"
name="sourceUrl"
ng-model="updatedBuildConfig.spec.source.git.uri"
type="text"
autocorrect="off"
autocapitalize="off"
spellcheck="false"
aria-describedby="source-url-help"
required>
</div>
<div class="help-block" id="source-url-help">
Git URL of the source code to build.
<span ng-if="!view.advancedOptions">If your Git repository is private, view the <a href="" ng-click="view.advancedOptions = true">advanced options</a> to set up authentication.</span>
</div>
<div class="has-error" ng-if="form.sourceUrl.$touched && form.sourceUrl.$error.required">
<span class="help-block">A Git repository URL is required.</span>
</div>
<div class="has-warning" ng-if="updatedBuildConfig.spec.source.git.uri && form.sourceUrl.$touched && !sourceURLPattern.test(updatedBuildConfig.spec.source.git.uri)">
<span class="help-block">This might not be a valid Git URL. Check that it is the correct URL to a remote Git repository.</span>
</div>
</div>
</div>
<div class="col-lg-4" ng-if="view.advancedOptions">
<div class="form-group editor">
<label for="sourceRef">Git Reference</label>
<div>
<input class="form-control"
id="sourceRef"
name="sourceRef"
type="text"
ng-model="updatedBuildConfig.spec.source.git.ref"
placeholder="master"
autocorrect="off"
autocapitalize="off"
spellcheck="false"
aria-describedby="source-ref-help">
</div>
<div class="help-block" id="source-ref-help">Optional branch, tag, or commit.</div>
</div>
</div>
</div>
<div ng-if="view.advancedOptions">
<div class="form-group">
<label for="sourceContextDir">Context Dir</label>
<div>
<input class="form-control"
id="sourceContextDir"
name="sourceContextDir"
type="text"
ng-model="updatedBuildConfig.spec.source.contextDir"
placeholder="/"
autocorrect="off"
autocapitalize="off"
spellcheck="false"
aria-describedby="context-dir-help">
</div>
<div class="help-block" id="context-dir-help">Optional subdirectory for the application source code, used as the context directory for the build.</div>
</div>
<div class="form-group">
<osc-secrets model="secrets.picked.gitSecret"
namespace="projectName"
display-type="source"
type="source"
service-account-to-link="builder"
secrets-by-type="secrets.secretsByType"
alerts="alerts">
</osc-secrets>
</div>
</div>
</div>
<div ng-if="sources.dockerfile">
<div class="form-group">
<label for="buildFrom">Dockerfile</label>
<div ui-ace="{
mode: 'dockerfile',
theme: 'dreamweaver',
rendererOptions: {
fadeFoldWidgets: true,
showPrintMargin: false
}
}" ng-model="updatedBuildConfig.spec.source.dockerfile" class="ace-bordered ace-inline dockerfile-mode"></div>
</div>
<div class="form-group" ng-if="updatedBuildConfig.spec.strategy.dockerStrategy.dockerfilePath && view.advancedOptions">
<label for="dockerfilePath">Dockerfile Path</label>
<div>
<input class="form-control"
id="dockerfilePath"
name="dockerfilePath"
type="text"
ng-model="updatedBuildConfig.spec.strategy.dockerStrategy.dockerfilePath"
autocorrect="off"
autocapitalize="off"
spellcheck="false">
</div>
</div>
</div>
<div class="form-group" ng-if="strategyType === 'Docker' && view.advancedOptions">
<div class="checkbox">
<label>
<input type="checkbox" ng-model="options.noCache">
Execute docker build without reusing cached instructions.
<span class="help action-inline">
<a href="">
<i class="pficon pficon-help" data-toggle="tooltip" aria-hidden="true" data-original-title="Will run the docker build with '--no-cache=true' flag">
</i>
</a>
</span>
</label>
</div>
</div>
<div class="form-groups" ng-show="sources.images">
<div class="single-image-source" ng-if="sourceImages.length === 1">
<div class="form-group">
<label>Image Source From</label>
<ui-select required ng-model="imageOptions.fromSource.type" search-enabled="false">
<ui-select-match>{{$select.selected | startCase}}</ui-select-match>
<ui-select-choices repeat="type in imageSourceTypes">
{{type | startCase}}
</ui-select-choices>
</ui-select>
</div>
<div class="form-group" ng-if="imageOptions.fromSource.type==='ImageStreamTag'" >
<istag-select include-shared-namespace="true"
model="imageOptions.fromSource.imageStreamTag"></istag-select>
</div>
<div ng-if="imageOptions.fromSource.type==='ImageStreamImage'" class="form-group">
<label for="imageSourceImage">Image Stream Image</label>
<div>
<input class="form-control"
type="text"
ng-model="imageOptions.fromSource.imageStreamImage"
placeholder="example: openshift/ruby-20-centos7@603bfa418"
autocorrect="off"
autocapitalize="off"
spellcheck="false"
required>
</div>
</div>
<div ng-if="imageOptions.fromSource.type==='DockerImage'" class="form-group">
<label for="imageSourceLink">Docker Image Repository</label>
<div>
<input class="form-control"
id="imageSourceLink"
name="imageSourceLink"
type="text"
ng-model="imageOptions.fromSource.dockerImage"
placeholder="example: centos/ruby-20-centos7:latest"
autocorrect="off"
autocapitalize="off"
spellcheck="false"
required>
</div>
</div>
<div class="form-group">
<label for="buildFrom">Source and Destination Paths<span class="help action-inline">
<a href="">
<i class="pficon pficon-help" data-toggle="tooltip" aria-hidden="true" data-original-title="Paths is a list of source and destination paths to copy from the image. At least one pair has to be specified."></i>
</a>
</span></label>
<key-value-editor
entries="imageSourcePaths"
key-placeholder="Source Path"
key-validator="\/.*?$"
value-placeholder="Destination Dir"
key-validator-error-tooltip="A valid Source Path is an absolute path beginning with '/'"
add-row-link="Add image source path"></key-value-editor>
</div>
</div>
<div class="multiple-image-source" ng-if="sourceImages.length !== 1">
<label for="imageSourceFrom">Image Source From<span class="help action-inline">
<a href="">
<i class="pficon pficon-info" style="cursor: help;" aria-hidden="true" data-toggle="tooltip" data-original-title="This Build Config contains more then one Image Source. To edit them use the YAML editor.">
</i>
</a>
</span></label>
<div ng-repeat="fromObject in imageSourceFromObjects" class="imageSourceItem">
{{selectTypes[fromObject.kind]}}: {{fromObject | imageObjectRef : buildConfig.metadata.namespace}}
</div>
</div>
</div>
</dl>
<div ng-if="!sources.git && !sources.dockerfile && !sources.images">
There are no editable source types for this build config.
</div>
</div>
<div ng-if="updatedBuildConfig | isJenkinsPipelineStrategy" class="section">
<h3 ng-class="{ 'with-divider': !sources.none }">Jenkins Pipeline Configuration</h3>
<div class="form-group" ng-if="buildConfig.spec.source.type === 'Git'">
<label for="jenkinsfile-type">Jenkinsfile Type</label>
<ui-select search-enabled="false" ng-model="jenkinsfileOptions.type" input-id="jenkinsfile-type" aria-describedby="jenkinsfile-type-help">
<ui-select-match>{{$select.selected.title}}</ui-select-match>
<ui-select-choices repeat="type.id as type in jenkinsfileTypes">
{{type.title}}
</ui-select-choices>
</ui-select>
<div class="help-block" id="jenkinsfile-type-help">
Use a Jenkinsfile from the source repository or specify the
Jenkinsfile content directly in the build configuration.
</div>
</div>
<div ng-if="jenkinsfileOptions.type === 'path'" class="form-group">
<label for="jenkinsfilePath">Jenkinsfile Source Path</label>
<input class="form-control"
id="jenkinsfilePath"
name="jenkinsfilePath"
type="text"
ng-model="updatedBuildConfig.spec.strategy.jenkinsPipelineStrategy.jenkinsfilePath"
autocorrect="off"
autocapitalize="off"
spellcheck="false"
aria-describedby="jenkinsfile-path-help">
<div class="help-block" id="jenkinsfile-path-help">
Optional path to the Jenkinsfile relative to the context dir.
Defaults to the Jenkinsfile in context dir.
</div>
</div>
<div ng-if="jenkinsfileOptions.type === 'inline'">
<label>Jenkinsfile</label>
<div ui-ace="{
mode: 'groovy',
theme: 'eclipse',
rendererOptions: {
fadeFoldWidgets: true,
showPrintMargin: false
}
}" ng-model="updatedBuildConfig.spec.strategy.jenkinsPipelineStrategy.jenkinsfile" class="ace-bordered ace-inline"></div>
</div>
<div class="mar-top-md mar-bottom-md">
<a ng-if="!view.jenkinsfileExamples" href="" ng-click="view.jenkinsfileExamples = true">What's a Jenkinsfile?</a>
</div>
<div ng-if="view.jenkinsfileExamples" class="editor-examples">
<div class="pull-right mar-top-md">
<a href="" ng-click="view.jenkinsfileExamples = false">Hide examples</a>
</div>
<h4>Jenkinsfile Examples</h4>
<ng-include src="'views/edit/jenkinsfile-examples.html'"></ng-include>
</div>
</div>
<div ng-if="sources.none && !(updatedBuildConfig | isJenkinsPipelineStrategy)">
<div class="form-group">
<i>No source inputs have been defined for this build configuration.</i>
</div>
</div>
<div ng-if="strategyType !== 'JenkinsPipeline'" class="section">
<h3 class="with-divider">Image Configuration</h3>
<dl class="dl-horizontal left">
<div>
<div class="form-group">
<label for="buildFrom">Build From</label>
<ui-select required ng-model="imageOptions.from.type" search-enabled="false">
<ui-select-match>{{$select.selected | startCase}}</ui-select-match>
<ui-select-choices repeat="type in buildFromTypes">
{{type | startCase}}
</ui-select-choices>
</ui-select>
</div>
<div class="form-group" ng-if="imageOptions.from.type==='ImageStreamTag'">
<istag-select include-shared-namespace="true"
model="imageOptions.from.imageStreamTag"></istag-select>
</div>
<div ng-if="imageOptions.from.type==='DockerImage'" class="form-group">
<label for="FromTypeLink">Docker Image Repository</label>
<div>
<input class="form-control"
type="text"
ng-model="imageOptions.from.dockerImage"
autocorrect="off"
autocapitalize="off"
placeholder="example: centos/ruby-20-centos7:latest"
spellcheck="false"
required>
</div>
</div>
<div ng-if="imageOptions.from.type==='ImageStreamImage'" class="form-group">
<label for="FromTypeImage">Image Stream Image</label>
<div>
<input class="form-control"
type="text"
ng-model="imageOptions.from.imageStreamImage"
placeholder="example: openshift/ruby-20-centos7@603bfa418"
autocorrect="off"
autocapitalize="off"
spellcheck="false"
required>
</div>
</div>
</div>
<div class="form-group" ng-if="view.advancedOptions && strategyType !== 'JenkinsPipeline'">
<osc-secrets model="secrets.picked.pullSecret"
namespace="projectName"
display-type="pull"
type="image"
secrets-by-type="secrets.secretsByType"
service-account-to-link="builder"
alerts="alerts">
</osc-secrets>
</div>
<div class="form-group" ng-if="view.advancedOptions">
<div class="checkbox">
<label>
<input type="checkbox" ng-model="options.forcePull">
Always pull the builder image from the docker registry, even if it is present locally
</label>
</div>
</div>
<div>
<div class="form-group">
<label for="buildFrom">Push To</label>
<ui-select required ng-model="imageOptions.to.type" search-enabled="false">
<ui-select-match>{{$select.selected | startCase}}</ui-select-match>
<ui-select-choices repeat="type in pushToTypes">
{{type | startCase}}
</ui-select-choices>
</ui-select>
</div>
<div class="form-group" ng-if="imageOptions.to.type==='ImageStreamTag'">
<istag-select model="imageOptions.to.imageStreamTag"
allow-custom-tag="true"></istag-select>
</div>
<div ng-if="imageOptions.to.type==='DockerImage'" class="form-group">
<label for="pushToLink">Docker Image Repository</label>
<div>
<input class="form-control"
id="pushToLink"
name="pushToLink"
type="text"
ng-model="imageOptions.to.dockerImage"
placeholder="example: centos/ruby-20-centos7:latest"
autocorrect="off"
autocapitalize="off"
spellcheck="false"
required>
</div>
</div>
<div class="form-group" ng-if="view.advancedOptions">
<osc-secrets model="secrets.picked.pushSecret"
namespace="projectName"
display-type="push"
type="image"
disable-input="imageOptions.to.type==='None'"
service-account-to-link="builder"
secrets-by-type="secrets.secretsByType"
alerts="alerts">
</osc-secrets>
</div>
</div>
</dl>
</div>
<div ng-if="!(updatedBuildConfig | isJenkinsPipelineStrategy)" class="section">
<h3 class="with-divider">Environment Variables<span class="help action-inline">
<a href="">
<i class="pficon pficon-help" data-toggle="tooltip" aria-hidden="true" data-original-title="Environment variables are used to configure and pass information to running containers. These environment variables will be available during your build and at runtime."></i>
</a>
</span></h3>
<div>
<key-value-editor
ng-if="envVars"
entries="envVars"
key-validator="[a-zA-Z_][a-zA-Z0-9_]*"
key-validator-error-tooltip="A valid environment variable name is an alphanumeric (a-z and 0-9) string beginning with a letter that may contain underscores."
add-row-link="Add Environment Variable"></key-value-editor>
</div>
</div>
<div ng-if="sources.git || !(updatedBuildConfig | isJenkinsPipelineStrategy)" class="section">
<div ng-if="view.advancedOptions">
<h3 class="with-divider">Triggers
<a ng-href="{{'build-triggers' | helpLink}}" target="_blank"><span class="learn-more-inline">Learn More <i class="fa fa-external-link" aria-hidden="true"></i></span></a>
</h3>
<dl class="dl-horizontal left">
<div>
<div ng-if="sources.git">
<edit-webhook-triggers
type="GitHub"
type-info="The GitHub source repository must be configured to use the webhook to trigger a build when source is committed."
triggers="triggers.githubWebhooks"
form="form"
bc-name="buildConfig.metadata.name"
project-name="project.metadata.name">
</edit-webhook-triggers>
<edit-webhook-triggers
type="Generic"
type-info="A generic webhook can be triggered by any system capable of making a web request."
triggers="triggers.genericWebhooks"
form="form"
bc-name="buildConfig.metadata.name"
project-name="project.metadata.name">
</edit-webhook-triggers>
</div>
<!-- TODO: Uncomment once ConfigChange trigger will work. Based on https://github.com/openshift/origin-web-console/issues/321 -->
<!-- <h5>Config change</h5>
<div class="checkbox">
<label>
<input type="checkbox" ng-model="triggers.configChangeTrigger.present">
Automatically build a new image when the build configuration changes
</label>
</div> -->
<div ng-if="!(updatedBuildConfig | isJenkinsPipelineStrategy)">
<h5>Image change</h5>
<div class="checkbox">
<label>
<input type="checkbox" ng-model="triggers.builderImageChangeTrigger.present" ng-disabled="imageOptions.from.type === 'None'">
Automatically build a new image when the builder image changes
<span class="help action-inline">
<a href>
<i class="pficon pficon-help" aria-hidden="true"
data-toggle="tooltip" data-original-title="Automatically building a new image when the builder image changes allows your code to always run on the latest updates.">
</i>
</a>
</span>
</label>
</div>
</div>
</div>
</dl>
</div>
</div>
<div class="section" ng-if="!(updatedBuildConfig | isJenkinsPipelineStrategy) && view.advancedOptions">
<h3 class="with-divider">
Build Secrets
<a href="{{'source_secrets' | helpLink}}" target="_blank"><span class="learn-more-inline">Learn More <i class="fa fa-external-link" aria-hidden="true"></i></span></a>
</h3>
<div class="form-group">
<osc-source-secrets model="secrets.picked.sourceSecrets"
namespace="projectName"
secrets-by-type="secrets.secretsByType"
strategy-type="strategyType"
service-account-to-link="builder"
alerts="alerts"
display-type="source"
type="source">
</osc-source-secrets>
</div>
</div>
<div class="section mar-bottom-lg" ng-if="view.advancedOptions">
<h3 class="with-divider">Run Policy
<span class="help action-inline">
<a href="">
<i class="pficon pficon-help" data-toggle="tooltip" aria-hidden="true" data-original-title="The build run policy describes the order in which the builds created from the build configuration should run."></i>
</a>
</span>
</h3>
<div class="form-group">
<label class="sr-only">Run policy type</label>
<ui-select required ng-model="updatedBuildConfig.spec.runPolicy" search-enabled="false">
<ui-select-match>{{$select.selected | sentenceCase}}</ui-select-match>
<ui-select-choices repeat="type in runPolicyTypes">
{{type | sentenceCase}}
</ui-select-choices>
</ui-select>
</div>
<div ng-switch="updatedBuildConfig.spec.runPolicy">
<div class="help-block" ng-switch-when="Serial">Builds triggered from this Build Configuration will run one at the time, in the order they have been triggered.</div>
<div class="help-block" ng-switch-when="Parallel">Builds triggered from this Build Configuration will run all at the same time. The order in which they will finish is not guaranteed.</div>
<div class="help-block" ng-switch-when="SerialLatestOnly">Builds triggered from this Build Configuration will run one at the time. When a currently running build completes, the next build that will run is the latest build created. Other queued builds will be cancelled.</div>
<div class="help-block" ng-switch-default>Builds triggered from this Build Configuration will run using the {{updatedBuildConfig.spec.runPolicy | sentenceCase}} policy.</div>
</div>
</div>
<div ng-if="view.advancedOptions && !(updatedBuildConfig | isJenkinsPipelineStrategy)" class="section">
<h3 class="with-divider">
Post-Commit Hooks
<span class="help action-inline">
<a href="{{'build-hooks' | helpLink}}" aria-hidden="true" target="_blank"><span class="learn-more-inline">Learn More <i class="fa fa-external-link"></i></span></a>
</span>
</h3>
<div class="checkbox">
<label>
<input type="checkbox" ng-model="view.hasHooks" id="enable-build-hooks">
Run build hooks after image is built
</label>
<div class="help-block">
Build hooks allow you to run commands at the end of the build to verify the image.
</div>
</div>
<div ng-show="view.hasHooks">
<div class="form-group">
<h4>Hook Types</h4>
<ui-select
ng-model="buildHookSelection.type"
title="Choose a type of build hook">
<ui-select-match>{{$select.selected.label}}</ui-select-match>
<ui-select-choices repeat="type in buildHookTypes">
{{type.label}}
</ui-select-choices>
</ui-select>
</div>
<fieldset>
<div ng-show="buildHookSelection.type.id === 'script' || buildHookSelection.type.id === 'scriptArgs'">
<h4>Script</h4>
<div
ui-ace="{
mode: 'sh',
theme: 'eclipse',
rendererOptions: {
fadeFoldWidgets: true,
showPrintMargin: false
}
}"
ng-model="updatedBuildConfig.spec.postCommit.script"
class="ace-bordered ace-inline mar-top-md">
</div>
</div>
<div ng-show="buildHookSelection.type.id === 'command' || buildHookSelection.type.id === 'commandArgs'">
<h4>Command</h4>
<edit-command
args="updatedBuildConfig.spec.postCommit.command">
</edit-command>
</div>
<div ng-show="buildHookSelection.type.id === 'args' || buildHookSelection.type.id === 'commandArgs' || buildHookSelection.type.id === 'scriptArgs' ">
<h4>Arguments</h4>
<edit-command
args="updatedBuildConfig.spec.postCommit.args"
type="argument">
</edit-command>
</div>
</fieldset>
</div>
</div>
<div class="gutter-top">
<a href="" ng-click="view.advancedOptions = !view.advancedOptions" role="button">{{view.advancedOptions ? 'Hide' : 'Show'}} advanced options</a>
</div>
<div class="buttons gutter-top-bottom">
<button
type="submit"
class="btn btn-primary btn-lg"
ng-disabled="form.$invalid || form.$pristine || disableInputs">
Save
</button>
<a class="btn btn-default btn-lg"
href="{{updatedBuildConfig | navigateResourceURL}}">
Cancel
</a>
</div>
</div>
</div>
</form>
</fieldset>
</div>
</div>
</div>
</div>
</div>
</div>