Fix an issue with sync vs run project updates

We need to not remove the source tree on project update run which
happens in the context of the job run to prevent the directory from
being deleted out from under the job runners. Since those will
inherently not block each other as the project update would
This commit is contained in:
Matthew Jones 2017-02-24 11:00:57 -05:00
parent d8151b05b8
commit 1a946d51c1

View File

@ -1218,7 +1218,7 @@ class RunProjectUpdate(BaseTask):
'scm_url': scm_url,
'scm_branch': scm_branch,
'scm_clean': project_update.scm_clean,
'scm_delete_on_update': project_update.scm_delete_on_update,
'scm_delete_on_update': project_update.scm_delete_on_update if project_update.job_type == 'sync' else False,
'scm_full_checkout': True if project_update.job_type == 'run' else False,
'scm_revision_output': self.revision_path
})