DXLTTC-783 Problems with pre-release projects 63/138063/2
authorYonghee Han <onstudy@samsung.com>
Tue, 11 Jul 2017 02:56:35 +0000 (11:56 +0900)
committerJunghyun Kim <jh0822.kim@samsung.com>
Tue, 11 Jul 2017 03:29:56 +0000 (03:29 +0000)
Problem : remain the project folder in /srv/obs/build of backend server.
Solution :  change the delete_project function from the cleanup funtion in a job_request job.
_bs.delete_project(prj) -> _bs.cleanup(prj, "This project has expired")

Change-Id: I56e3d22a97fc3d65438eb47640dbd62b9aa8a80c

job_request.py

index 83acd4b..a3c7c06 100644 (file)
@@ -199,7 +199,7 @@ def delete_from_obs(prj, pkg, target_project=None, comments=None):
     try:
         if 'home:prerelease:' in prj:
             print 'Removing %s' % prj
-            _bs.delete_project(prj)
+            _bs.cleanup(prj, "This project has expired")
     except ObsError, error:
         print error
         if 'HTTP Error 404' in str(error):