Adding the scm_track_submodules option which should fix the https://github.com/ansible/awx/issues/7846

Signed-off-by: mazhead <mazhead@gmail.com>
This commit is contained in:
mazhead
2021-02-03 11:52:43 +01:00
parent 311c44341e
commit c6eb7da68d
18 changed files with 95 additions and 3 deletions

View File

@@ -78,6 +78,11 @@ options:
- Remove the repository completely before updating.
type: bool
default: 'no'
scm_track_submodules:
description:
- Track submodules latest commit on specified branch.
type: bool
default: 'no'
scm_update_on_launch:
description:
- Before an update to the local repository before launching a job with this project.
@@ -245,6 +250,7 @@ def main():
credential=dict(aliases=['scm_credential']),
scm_clean=dict(type='bool', default=False),
scm_delete_on_update=dict(type='bool', default=False),
scm_track_submodules=dict(type='bool', default=False),
scm_update_on_launch=dict(type='bool', default=False),
scm_update_cache_timeout=dict(type='int', default=0),
allow_override=dict(type='bool', aliases=['scm_allow_override']),
@@ -345,6 +351,7 @@ def main():
'scm_refspec',
'scm_clean',
'scm_delete_on_update',
"scm_track_submodules",
'timeout',
'scm_update_cache_timeout',
'custom_virtualenv',
@@ -380,3 +387,4 @@ def main():
if __name__ == '__main__':
main()