summaryrefslogtreecommitdiffstats
path: root/jenkins_jobs/modules/general.py
diff options
context:
space:
mode:
authorVitaliy Lotorev <lotorev@gmail.com>2014-03-28 00:29:07 +0400
committerVitaliy Lotorev <lotorev@gmail.com>2014-03-28 00:41:22 +0400
commitc9c784aecc0a96fd2adf7b9bcc002686b51cdaac (patch)
treec8b3ebd7d4e423ac5d89d9f5aaec3c6a3df96727 /jenkins_jobs/modules/general.py
parent72c02d41068a3935717d8666531781d7f05ced52 (diff)
downloadpython-jenkins-job-builder-c9c784aecc0a96fd2adf7b9bcc002686b51cdaac.tar.gz
python-jenkins-job-builder-c9c784aecc0a96fd2adf7b9bcc002686b51cdaac.tar.xz
python-jenkins-job-builder-c9c784aecc0a96fd2adf7b9bcc002686b51cdaac.zip
add retry-count in general.py
implement retry-coutn in general.py; update doc and add test fixtures Change-Id: Ifeb4fb645ad0e4bc12d41ef4481aca1888a4041a
Diffstat (limited to 'jenkins_jobs/modules/general.py')
-rw-r--r--jenkins_jobs/modules/general.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/jenkins_jobs/modules/general.py b/jenkins_jobs/modules/general.py
index f1d6a7bb..e25813c8 100644
--- a/jenkins_jobs/modules/general.py
+++ b/jenkins_jobs/modules/general.py
@@ -99,6 +99,10 @@ class General(jenkins_jobs.modules.base.Base):
XML.SubElement(xml, 'canRoam').text = 'false'
else:
XML.SubElement(xml, 'canRoam').text = 'true'
+ if 'retry-count' in data:
+ XML.SubElement(xml, 'scmCheckoutRetryCount').text = \
+ str(data['retry-count'])
+
if 'logrotate' in data:
lr_xml = XML.SubElement(xml, 'logRotator')
logrotate = data['logrotate']