SCM repo: add trace option

Change-Id: Ie347f453dd3b677c343d3682b8e1f5c87cf93c27
Signed-off-by: Lucas Dutra Nunes <ldnunes@ossystems.com.br>
This commit is contained in:
Lucas Dutra Nunes 2016-02-15 11:04:03 -02:00
parent 856fc9b354
commit c0cf8b2b90
4 changed files with 6 additions and 0 deletions

View File

@ -587,6 +587,8 @@ def repo(parser, xml_parent, data):
: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 bool trace: Trace git command execution into the build logs. (default
false)
:arg str local-manifest: Contents of .repo/local_manifest.xml, written
prior to calling sync (optional)
@ -619,6 +621,7 @@ def repo(parser, xml_parent, data):
("quiet", 'quiet', True),
("force-sync", 'forceSync', False),
("no-tags", 'noTags', False),
("trace", 'trace', False),
("local-manifest", 'localManifest', ''),
]

View File

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

View File

@ -15,6 +15,7 @@
<quiet>false</quiet>
<forceSync>true</forceSync>
<noTags>true</noTags>
<trace>true</trace>
<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;

View File

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