SCM repo: add no-tags option

Change-Id: I5c448776277afa4acbec71fa0a6f38286fe3401b
Signed-off-by: Lucas Dutra Nunes <ldnunes@ossystems.com.br>
This commit is contained in:
Lucas Dutra Nunes 2016-02-15 10:56:50 -02:00
parent 993e82a409
commit 856fc9b354
4 changed files with 5 additions and 0 deletions
jenkins_jobs/modules
tests
macros/fixtures/scm
scm/fixtures

@ -586,6 +586,7 @@ def repo(parser, xml_parent, data):
(default true)
:arg bool force-sync: Continue sync even if a project fails to sync
(default false)
:arg bool no-tags: Don't fetch tags (default false)
:arg str local-manifest: Contents of .repo/local_manifest.xml, written
prior to calling sync (optional)
@ -617,6 +618,7 @@ def repo(parser, xml_parent, data):
("reset-first", 'resetFirst', False),
("quiet", 'quiet', True),
("force-sync", 'forceSync', False),
("no-tags", 'noTags', False),
("local-manifest", 'localManifest', ''),
]

@ -24,6 +24,7 @@
<resetFirst>false</resetFirst>
<quiet>false</quiet>
<forceSync>false</forceSync>
<noTags>false</noTags>
</scm>
<scm class="hudson.plugins.git.GitSCM">
<configVersion>2</configVersion>

@ -14,6 +14,7 @@
<resetFirst>true</resetFirst>
<quiet>false</quiet>
<forceSync>true</forceSync>
<noTags>true</noTags>
<localManifest>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;manifest&gt;
&lt;project path=&quot;external/project&quot; name=&quot;org/project&quot;

@ -12,6 +12,7 @@ scm:
reset-first: true
quiet: false
force-sync: true
no-tags: true
local-manifest: |
<?xml version="1.0" encoding="UTF-8"?>
<manifest>