Skip to content
Browse files

Better handling of jenkins added quotes

  • Loading branch information...
1 parent 3e8f1fd commit 4abef288f2ad2d5b836bd7ff5d202b290b604328 Carles Barrobés committed Nov 1, 2011
Showing with 4 additions and 1 deletion.
  1. +2 −0 .gitignore
  2. +2 −1 autojenkins/jobs.py
View
2 .gitignore
@@ -1,2 +1,4 @@
*.pyc
.idea/
+dist/
+MANIFEST
View
3 autojenkins/jobs.py
@@ -68,7 +68,8 @@ def create_copy(self, jobname, template_job, enable=True, **context):
# file.write(config)
# remove stupid quotes added by Jenkins
- config = config.replace('"{{branch}}"', '{{branch}}')
+ config = config.replace('>"{{', '>{{')
+ config = config.replace('}}&quot;<', '}}<')
template_config = Template(config)
config = template_config.render(**context)

0 comments on commit 4abef28

Please sign in to comment.
Something went wrong with that request. Please try again.