From c0cf8b2b906ea4b9b3a5a9ce85715232bddf6ee5 Mon Sep 17 00:00:00 2001 From: Lucas Dutra Nunes Date: Mon, 15 Feb 2016 11:04:03 -0200 Subject: [PATCH] SCM repo: add trace option Change-Id: Ie347f453dd3b677c343d3682b8e1f5c87cf93c27 Signed-off-by: Lucas Dutra Nunes --- jenkins_jobs/modules/scm.py | 3 +++ tests/macros/fixtures/scm/multi-scms002.xml | 1 + tests/scm/fixtures/repo001.xml | 1 + tests/scm/fixtures/repo001.yaml | 1 + 4 files changed, 6 insertions(+) diff --git a/jenkins_jobs/modules/scm.py b/jenkins_jobs/modules/scm.py index ee7dd38b0..5004d818f 100644 --- a/jenkins_jobs/modules/scm.py +++ b/jenkins_jobs/modules/scm.py @@ -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', ''), ] diff --git a/tests/macros/fixtures/scm/multi-scms002.xml b/tests/macros/fixtures/scm/multi-scms002.xml index a2612a7fa..cf0479def 100644 --- a/tests/macros/fixtures/scm/multi-scms002.xml +++ b/tests/macros/fixtures/scm/multi-scms002.xml @@ -25,6 +25,7 @@ false false false + false 2 diff --git a/tests/scm/fixtures/repo001.xml b/tests/scm/fixtures/repo001.xml index 6cbc85709..a858a7a8f 100644 --- a/tests/scm/fixtures/repo001.xml +++ b/tests/scm/fixtures/repo001.xml @@ -15,6 +15,7 @@ false true true + true <?xml version="1.0" encoding="UTF-8"?> <manifest> <project path="external/project" name="org/project" diff --git a/tests/scm/fixtures/repo001.yaml b/tests/scm/fixtures/repo001.yaml index 5504a9c4e..c25a21b3f 100644 --- a/tests/scm/fixtures/repo001.yaml +++ b/tests/scm/fixtures/repo001.yaml @@ -13,6 +13,7 @@ scm: quiet: false force-sync: true no-tags: true + trace: true local-manifest: |