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
ca0a19b3
Commit
ca0a19b3
authored
Mar 29, 2022
by
Tiffany Rea
Committed by
Anastasia McDonald
Mar 29, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Saving max 20 variables to dotenv
parent
aad2b222
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
qa/qa/specs/features/browser_ui/4_verify/pipeline/pass_dotenv_variables_to_downstream_via_bridge_spec.rb
...ne/pass_dotenv_variables_to_downstream_via_bridge_spec.rb
+4
-4
No files found.
qa/qa/specs/features/browser_ui/4_verify/pipeline/pass_dotenv_variables_to_downstream_via_bridge_spec.rb
View file @
ca0a19b3
...
...
@@ -3,8 +3,8 @@
module
QA
RSpec
.
describe
'Verify'
,
:runner
do
describe
'Pass dotenv variables to downstream via bridge'
do
let
(
:executor
)
{
"qa-runner-
#{
Faker
::
Alphanumeric
.
alphanumeric
(
8
)
}
"
}
let
(
:upstream_var
)
{
Faker
::
Alphanumeric
.
alphanumeric
(
8
)
}
let
(
:executor
)
{
"qa-runner-
#{
Faker
::
Alphanumeric
.
alphanumeric
(
number:
8
)
}
"
}
let
(
:upstream_var
)
{
Faker
::
Alphanumeric
.
alphanumeric
(
number:
8
)
}
let
(
:group
)
{
Resource
::
Group
.
fabricate_via_api!
}
let
(
:upstream_project
)
do
...
...
@@ -73,7 +73,7 @@ module QA
stage: build
tags: ["
#{
executor
}
"]
script:
-
echo "DYNAMIC_ENVIRONMENT_VAR=
#{
upstream_var
}
" >> variables.env
-
for i in `seq 1 20`; do echo "VAR_$i=
#{
upstream_var
}
" >> variables.env; done;
artifacts:
reports:
dotenv: variables.env
...
...
@@ -81,7 +81,7 @@ module QA
trigger:
stage: deploy
variables:
PASSED_MY_VAR:
$DYNAMIC_ENVIRONMENT_VAR
PASSED_MY_VAR:
"$VAR_
#{
rand
(
1
..
20
)
}
"
trigger:
#{
downstream_project
.
full_path
}
YAML
}
...
...
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