mirror of
https://github.com/ansible/awx.git
synced 2026-05-07 17:37:37 -02:30
Merge pull request #10005 from AlanCoding/force_on_override
Update with force option if branch_override Addresses a reported issue where force-pushing to feature branches did not work. Connect #9371 (comment) Reviewed-by: Bill Nottingham <None>
This commit is contained in:
@@ -1767,6 +1767,7 @@ class RunJob(BaseTask):
|
|||||||
)
|
)
|
||||||
if branch_override:
|
if branch_override:
|
||||||
sync_metafields['scm_branch'] = job.scm_branch
|
sync_metafields['scm_branch'] = job.scm_branch
|
||||||
|
sync_metafields['scm_clean'] = True # to accomidate force pushes
|
||||||
if 'update_' not in sync_metafields['job_tags']:
|
if 'update_' not in sync_metafields['job_tags']:
|
||||||
sync_metafields['scm_revision'] = job_revision
|
sync_metafields['scm_revision'] = job_revision
|
||||||
local_project_sync = job.project.create_project_update(_eager_fields=sync_metafields)
|
local_project_sync = job.project.create_project_update(_eager_fields=sync_metafields)
|
||||||
|
|||||||
Reference in New Issue
Block a user