mirror of
https://github.com/odoo/runbot.git
synced 2025-03-27 13:25:47 +07:00
[FIX] runbot: allow rebuild and kill
This commit is contained in:
parent
0b1ff4dd49
commit
1543c8d0d8
@ -139,13 +139,13 @@ class Runbot(http.Controller):
|
|||||||
|
|
||||||
@http.route(['/runbot/build/<int:build_id>/kill'], type='http', auth="user", methods=['POST'], csrf=False)
|
@http.route(['/runbot/build/<int:build_id>/kill'], type='http', auth="user", methods=['POST'], csrf=False)
|
||||||
def build_ask_kill(self, build_id, search=None, **post):
|
def build_ask_kill(self, build_id, search=None, **post):
|
||||||
build = request.env['runbot.build'].browse(build_id)
|
build = request.env['runbot.build'].sudo().browse(build_id)
|
||||||
build._ask_kill()
|
build._ask_kill()
|
||||||
return werkzeug.utils.redirect('/runbot/repo/%s' % build.repo_id.id + ('?search=%s' % search if search else ''))
|
return werkzeug.utils.redirect('/runbot/repo/%s' % build.repo_id.id + ('?search=%s' % search if search else ''))
|
||||||
|
|
||||||
@http.route(['/runbot/build/<int:build_id>/force'], type='http', auth="public", methods=['POST'], csrf=False)
|
@http.route(['/runbot/build/<int:build_id>/force'], type='http', auth="public", methods=['POST'], csrf=False)
|
||||||
def build_force(self, build_id, search=None, **post):
|
def build_force(self, build_id, search=None, **post):
|
||||||
build = request.env['runbot.build'].browse(build_id)
|
build = request.env['runbot.build'].sudo().browse(build_id)
|
||||||
build._force()
|
build._force()
|
||||||
return werkzeug.utils.redirect('/runbot/repo/%s' % build.repo_id.id + ('?search=%s' % search if search else ''))
|
return werkzeug.utils.redirect('/runbot/repo/%s' % build.repo_id.id + ('?search=%s' % search if search else ''))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user