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
iv
gitlab-ce
Commits
d8cc9e4e
Commit
d8cc9e4e
authored
Dec 28, 2015
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add button to CI build artifacts browser into build summary
parent
87df1df3
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletion
+13
-1
app/models/ci/build.rb
app/models/ci/build.rb
+7
-0
app/views/projects/builds/show.html.haml
app/views/projects/builds/show.html.haml
+6
-1
No files found.
app/models/ci/build.rb
View file @
d8cc9e4e
...
...
@@ -328,6 +328,13 @@ module Ci
end
end
def
artifacts_browse_url
if
artifacts_file
.
exists?
Gitlab
::
Application
.
routes
.
url_helpers
.
browse_namespace_project_build_artifacts_path
(
project
.
namespace
,
project
,
self
)
end
end
def
execute_hooks
build_data
=
Gitlab
::
BuildDataBuilder
.
build
(
self
)
project
.
execute_hooks
(
build_data
.
dup
,
:build_hooks
)
...
...
app/views/projects/builds/show.html.haml
View file @
d8cc9e4e
...
...
@@ -91,7 +91,12 @@
-
if
current_user
&&
can?
(
current_user
,
:download_build_artifacts
,
@project
)
&&
@build
.
download_url
.build-widget.center
=
link_to
"Download artifacts"
,
@build
.
download_url
,
class:
'btn btn-sm btn-primary'
.panel.panel-default
.panel-heading
Build artifacts
.panel-body
.btn-group
{
role: :group
}
=
link_to
"Download"
,
@build
.
download_url
,
class:
'btn btn-sm btn-primary'
=
link_to
"Browse"
,
@build
.
artifacts_browse_url
,
class:
'btn btn-sm btn-primary'
.build-widget
%h4
.title
...
...
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