2015-11-03 05:44:07 -05:00
|
|
|
- page_title "Variables"
|
2015-09-14 08:00:20 -04:00
|
|
|
%h3.page-title
|
|
|
|
Secret Variables
|
|
|
|
|
2015-09-28 11:19:20 -04:00
|
|
|
%p.light
|
2016-02-08 19:08:49 -05:00
|
|
|
These variables will be set to environment by the runner.
|
2015-08-25 21:42:46 -04:00
|
|
|
%br
|
2015-09-28 11:19:20 -04:00
|
|
|
So you can use them for passwords, secret keys or whatever you want.
|
2016-02-08 19:08:49 -05:00
|
|
|
%br
|
|
|
|
The value of the variable can be visible in build log if explicitly asked to do so.
|
2015-08-25 21:42:46 -04:00
|
|
|
|
|
|
|
%hr
|
|
|
|
|
|
|
|
|
2015-12-04 06:55:23 -05:00
|
|
|
= nested_form_for @project, url: url_for(controller: 'projects/variables', action: 'update'), html: { class: 'form-horizontal' } do |f|
|
2016-04-04 21:25:38 -04:00
|
|
|
= form_errors(@project)
|
2015-08-25 21:42:46 -04:00
|
|
|
|
2015-12-10 11:44:06 -05:00
|
|
|
= f.fields_for :variables do |variable_form|
|
2015-08-25 21:42:46 -04:00
|
|
|
.form-group
|
|
|
|
= variable_form.label :key, 'Key', class: 'control-label'
|
|
|
|
.col-sm-10
|
|
|
|
= variable_form.text_field :key, class: 'form-control', placeholder: "PROJECT_VARIABLE"
|
|
|
|
|
|
|
|
.form-group
|
|
|
|
= variable_form.label :value, 'Value', class: 'control-label'
|
|
|
|
.col-sm-10
|
|
|
|
= variable_form.text_area :value, class: 'form-control', rows: 2, placeholder: ""
|
|
|
|
|
|
|
|
= variable_form.link_to_remove "Remove this variable", class: 'btn btn-danger pull-right prepend-top-10'
|
|
|
|
%hr
|
|
|
|
%p
|
|
|
|
.clearfix
|
2015-12-10 11:44:06 -05:00
|
|
|
= f.link_to_add "Add a variable", :variables, class: 'btn btn-success pull-right'
|
2015-08-25 21:42:46 -04:00
|
|
|
|
|
|
|
.form-actions
|
|
|
|
= f.submit 'Save changes', class: 'btn btn-save', return_to: request.original_url
|