~ubuntu-branches/ubuntu/utopic/jenkins-job-builder/utopic

« back to all changes in this revision

Viewing changes to jenkins_jobs/modules/general.py

  • Committer: Package Import Robot
  • Author(s): Paul Belanger
  • Date: 2013-07-28 10:32:09 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20130728103209-6q9hrv6oljkp0qng
Tags: 0.5.0-1
* New upstream release (Closes: #718126)
* debian/patches: Merged upstream
  - 0001-Documentation-fixes-to-make-Sphinx-happy.patch
  - 0002-Remove-setuptools-git-from-setup.py.patch
* debian/patches: Add upstream fixes for packaging
  - 0001-Fixing-documentation.patch

Show diffs side-by-side

added added

removed removed

Lines of Context:
74
74
        else:
75
75
            XML.SubElement(xml,
76
76
                           'blockBuildWhenUpstreamBuilding').text = 'false'
 
77
        if 'auth-token' in data:
 
78
            XML.SubElement(xml, 'authToken').text = data['auth-token']
77
79
        if data.get('concurrent'):
78
80
            XML.SubElement(xml, 'concurrentBuild').text = 'true'
79
81
        else:
80
82
            XML.SubElement(xml, 'concurrentBuild').text = 'false'
 
83
        if 'workspace' in data:
 
84
            XML.SubElement(xml, 'customWorkspace').text = \
 
85
                str(data['workspace'])
81
86
        if('quiet-period' in data):
82
87
            XML.SubElement(xml, 'quietPeriod').text = str(data['quiet-period'])
83
88
        node = data.get('node', None)
84
89
        if node:
85
90
            XML.SubElement(xml, 'assignedNode').text = node
86
91
            XML.SubElement(xml, 'canRoam').text = 'false'
 
92
        else:
 
93
            XML.SubElement(xml, 'canRoam').text = 'true'
87
94
        if 'logrotate' in data:
88
95
            lr_xml = XML.SubElement(xml, 'logRotator')
89
96
            logrotate = data['logrotate']