From: Yonghee Han Date: Tue, 11 Jul 2017 02:56:35 +0000 (+0900) Subject: DXLTTC-783 Problems with pre-release projects X-Git-Tag: submit/trunk/20190927.012743~380^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F63%2F138063%2F2;p=services%2Fjenkins-scripts.git DXLTTC-783 Problems with pre-release projects 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 --- diff --git a/job_request.py b/job_request.py index 83acd4b..a3c7c06 100644 --- a/job_request.py +++ b/job_request.py @@ -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):