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
d2aed8d9
Commit
d2aed8d9
authored
Oct 11, 2021
by
Albert Salim
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Assign values to variables
parent
5e078963
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
scripts/static-analysis
scripts/static-analysis
+3
-1
No files found.
scripts/static-analysis
View file @
d2aed8d9
...
@@ -66,7 +66,9 @@ class StaticAnalysis
...
@@ -66,7 +66,9 @@ class StaticAnalysis
].
compact
.
freeze
].
compact
.
freeze
def
run_tasks!
(
options
=
{})
def
run_tasks!
(
options
=
{})
node_assignment
=
tasks_to_run
((
ENV
[
'CI_NODE_TOTAL'
]
||
1
).
to_i
)[(
ENV
[
'CI_NODE_INDEX'
]
||
1
).
to_i
-
1
]
total_nodes
=
(
ENV
[
'CI_NODE_TOTAL'
]
||
1
).
to_i
current_node_number
=
(
ENV
[
'CI_NODE_INDEX'
]
||
1
).
to_i
node_assignment
=
tasks_to_run
(
total_nodes
)[
current_node_number
-
1
]
if
options
[
:dry_run
]
if
options
[
:dry_run
]
puts
"Dry-run mode!"
puts
"Dry-run mode!"
...
...
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