job_re: implement removing submission
authorEd Bartosh <eduard.bartosh@intel.com>
Sat, 10 Jan 2015 20:39:50 +0000 (22:39 +0200)
committerZhuoX Li <zhuox.li@intel.com>
Wed, 14 Jan 2015 06:26:13 +0000 (14:26 +0800)
Implemented by removing prerelease project.

Fixes: #2307

Change-Id: I051f099f2f3cb859805e7b330934794cdc603f30
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
job_re.py

index 456f86e..58491fd 100755 (executable)
--- 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: