Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
443f1031
Commit
443f1031
authored
Jun 22, 2017
by
Lin Jen-Shin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pick secret variables from secret_variables
parent
c141d543
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
13 deletions
+5
-13
app/models/ci/build.rb
app/models/ci/build.rb
+5
-13
No files found.
app/models/ci/build.rb
View file @
443f1031
...
...
@@ -195,9 +195,7 @@ module Ci
variables
+=
project
.
deployment_variables
if
has_environment?
variables
+=
yaml_variables
variables
+=
user_variables
variables
+=
project
.
secret_variables_for
(
ref:
ref
,
environment:
persisted_environment
)
.
map
(
&
:to_runner_variable
)
variables
+=
secret_variables
variables
+=
trigger_request
.
user_variables
if
trigger_request
variables
end
...
...
@@ -383,16 +381,10 @@ module Ci
]
end
def
secret_variables
(
with_environment:
true
)
variables
=
if
with_environment
project
.
secret_variables_for
(
ref:
ref
,
environment:
persisted_environment
)
else
project
.
secret_variables_for
(
ref:
ref
)
end
variables
.
map
(
&
:to_runner_variable
)
def
secret_variables
project
.
secret_variables_for
(
ref:
ref
,
environment:
persisted_environment
)
.
map
(
&
:to_runner_variable
)
end
def
steps
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment