Commit 1971269f authored by intrigeri's avatar intrigeri
Browse files

Move TAILS_RM_EMAIL to a script constant.

It's not specific to the BuildTailsISOJob class.
parent 3036e0da
......@@ -2,9 +2,9 @@
import yaml
class BuildTailsISOJob:
TAILS_RM_EMAIL = 'tails-rm@boum.org'
TAILS_RM_EMAIL = 'tails-rm@boum.org'
class BuildTailsISOJob:
DESCRIPTION_TEMPLATE = \
'''<p>This job is managed by jenkins-job-builder. Do not edit it through this web interface, your changes would be overwritten.</p>
......@@ -41,7 +41,7 @@ wrappers:
'url': 'gitolite@puppet-git.lizard:tails'}
}]
if branch['base_branch']:
self.job['publishers'] = [{'email': { 'recipients': self.TAILS_RM_EMAIL}}]
self.job['publishers'] = [{'email': { 'recipients': TAILS_RM_EMAIL}}]
self.job['description'] = self.DESCRIPTION_TEMPLATE % {
'job_name': self.job['name']
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment