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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
d8e90d03
Commit
d8e90d03
authored
Jun 03, 2016
by
Kamil Trzcinski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Generate knapsack reports
parent
86498d4d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
.gitlab-ci.yml
.gitlab-ci.yml
+1
-0
app/controllers/projects/artifacts_controller.rb
app/controllers/projects/artifacts_controller.rb
+1
-1
No files found.
.gitlab-ci.yml
View file @
d8e90d03
...
@@ -52,6 +52,7 @@ prepare:
...
@@ -52,6 +52,7 @@ prepare:
-
export CI_NODE_INDEX=${JOB_NAME[1]}
-
export CI_NODE_INDEX=${JOB_NAME[1]}
-
export CI_NODE_TOTAL=${JOB_NAME[2]}
-
export CI_NODE_TOTAL=${JOB_NAME[2]}
-
export KNAPSACK_REPORT_PATH=knapsack/${JOB_NAME}_node_${CI_NODE_INDEX}_${CI_NODE_TOTAL}_report.json
-
export KNAPSACK_REPORT_PATH=knapsack/${JOB_NAME}_node_${CI_NODE_INDEX}_${CI_NODE_TOTAL}_report.json
-
export KNAPSACK_GENERATE_REPORT=true
-
cp knapsack/${JOB_NAME}_report.json ${KNAPSACK_REPORT_PATH}
-
cp knapsack/${JOB_NAME}_report.json ${KNAPSACK_REPORT_PATH}
-
knapsack ${JOB_NAME[0]}
-
knapsack ${JOB_NAME[0]}
artifacts
:
artifacts
:
...
...
app/controllers/projects/artifacts_controller.rb
View file @
d8e90d03
...
@@ -37,7 +37,7 @@ class Projects::ArtifactsController < Projects::ApplicationController
...
@@ -37,7 +37,7 @@ class Projects::ArtifactsController < Projects::ApplicationController
private
private
def
build
def
build
@build
||=
project
.
builds
.
unscoped
.
find_by!
(
id:
params
[
:build_id
])
@build
||=
project
.
builds
.
find_by!
(
id:
params
[
:build_id
])
end
end
def
artifacts_file
def
artifacts_file
...
...
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