mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 02:14:43 +00:00
Bug 1349667 - do not used files-changed to conditionally exclude tasks when run from a cron job. r=dustin
MozReview-Commit-ID: 9SOjTxPprMV
This commit is contained in:
parent
cff2217b9d
commit
4b7908e0dd
@ -228,6 +228,10 @@ def opt_seta(task, params):
|
||||
|
||||
@optimization('files-changed')
|
||||
def opt_files_changed(task, params, file_patterns):
|
||||
# pushlog_id == -1 - this is the case when run from a cron.yml job
|
||||
if params.get('pushlog_id') == -1:
|
||||
return True, None
|
||||
|
||||
changed = files_changed.check(params, file_patterns)
|
||||
if not changed:
|
||||
logger.debug('no files found matching a pattern in `when.files-changed` for ' +
|
||||
|
Loading…
Reference in New Issue
Block a user