From: Ed Bartosh Date: Sat, 10 Jan 2015 20:39:50 +0000 (+0200) Subject: job_re: implement removing submission X-Git-Tag: 1.0~28 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=82a6d5a03a9c8da7190cfc698b32e0af7552ea3a;p=services%2Fjenkins-scripts.git job_re: implement removing submission Implemented by removing prerelease project. Fixes: #2307 Change-Id: I051f099f2f3cb859805e7b330934794cdc603f30 Signed-off-by: Ed Bartosh --- diff --git a/job_re.py b/job_re.py index 456f86e..58491fd 100755 --- a/job_re.py +++ b/job_re.py @@ -106,7 +106,9 @@ def main(): elif action == "rebuild": print "Not implemented yet" elif action == "remove": - print "Not implemented yet" + prj = get_project_by_name(build, submission, target_project)[0] + build.delete_project(prj, force=True, msg=comment) + print "Submission %s has been removed" % submission else: raise LocalError("Unsupported action: '%s'" % action) elif not submission: