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
7d60876b
Commit
7d60876b
authored
Feb 24, 2017
by
Robert Schilling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Backport new behavior to CI API
parent
c280acb0
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
+3
-0
lib/ci/api/builds.rb
lib/ci/api/builds.rb
+1
-0
lib/ci/api/runners.rb
lib/ci/api/runners.rb
+2
-0
No files found.
lib/ci/api/builds.rb
View file @
7d60876b
...
...
@@ -217,6 +217,7 @@ module Ci
build
=
Ci
::
Build
.
find_by_id
(
params
[
:id
])
authenticate_build!
(
build
)
status
(
200
)
build
.
erase_artifacts!
end
end
...
...
lib/ci/api/runners.rb
View file @
7d60876b
...
...
@@ -8,6 +8,8 @@ module Ci
end
delete
"delete"
do
authenticate_runner!
status
(
200
)
Ci
::
Runner
.
find_by_token
(
params
[
:token
]).
destroy
end
...
...
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