summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZuul <zuul@review.openstack.org>2018-09-16 17:50:14 +0000
committerGerrit Code Review <review@openstack.org>2018-09-16 17:50:14 +0000
commit723ca6951c8ae6fec1a23843dfb781cf038dc8a9 (patch)
tree1a3e2d12c5fde8e9db1c811f6518caab708a1f34
parent22307f715f42aeb5499e167d5ff9dea9c6d472b1 (diff)
parent1c3efc130f804cd81d62c6a7ef3252b41f229bf9 (diff)
Merge "cvs: Fix indentation"
-rw-r--r--jenkins_jobs/modules/scm.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/jenkins_jobs/modules/scm.py b/jenkins_jobs/modules/scm.py
index dffbbdc..93d5926 100644
--- a/jenkins_jobs/modules/scm.py
+++ b/jenkins_jobs/modules/scm.py
@@ -561,14 +561,17 @@ def cvs(registry, xml_parent, data):
561 :language: yaml 561 :language: yaml
562 """ 562 """
563 prefix = 'hudson.scm.' 563 prefix = 'hudson.scm.'
564 valid_loc_types = {'HEAD': 'Head', 'TAG': 'Tag', 'BRANCH': 'Branch'} 564 valid_loc_types = {
565 'HEAD': 'Head',
566 'TAG': 'Tag',
567 'BRANCH': 'Branch'
568 }
565 569
566 cvs = XML.SubElement(xml_parent, 'scm', {'class': prefix + 'CVSSCM'}) 570 cvs = XML.SubElement(xml_parent, 'scm', {'class': prefix + 'CVSSCM'})
567 repos = data.get('repos') 571 repos = data.get('repos')
568 repos_tag = XML.SubElement(cvs, 'repositories') 572 repos_tag = XML.SubElement(cvs, 'repositories')
569 for repo in repos: 573 for repo in repos:
570 repo_tag = XML.SubElement(repos_tag, prefix + 'CvsRepository') 574 repo_tag = XML.SubElement(repos_tag, prefix + 'CvsRepository')
571
572 compression_level = repo.get('compression-level', '-1') 575 compression_level = repo.get('compression-level', '-1')
573 repo_mapping = [ 576 repo_mapping = [
574 ('root', 'cvsRoot', None), 577 ('root', 'cvsRoot', None),