Merge "SCM repo: add no-tags option"

This commit is contained in:
Jenkins 2016-02-25 19:01:03 +00:00 committed by Gerrit Code Review
commit 57898442bc
4 changed files with 5 additions and 0 deletions
jenkins_jobs/modules
tests
macros/fixtures/scm
scm/fixtures

@ -587,6 +587,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)
@ -618,6 +619,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>