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
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):