summaryrefslogtreecommitdiffstats
path: root/jenkins_jobs/modules/general.py
diff options
context:
space:
mode:
authorWayne Warren <waynr+launchpad@sdf.org>2016-01-03 21:22:40 -0800
committerThanh Ha <thanh.ha@linuxfoundation.org>2016-08-20 01:24:49 -0400
commitc80e3bc5e9af1001a8227ac1e9ff8905ac5e17b8 (patch)
treea294eaf0f64179bd73d7bbb89dbaf4091aefee40 /jenkins_jobs/modules/general.py
parent0a8928f51ac5b74553e42bca365175bd4488b13d (diff)
downloadpython-jenkins-job-builder-c80e3bc5e9af1001a8227ac1e9ff8905ac5e17b8.tar.gz
python-jenkins-job-builder-c80e3bc5e9af1001a8227ac1e9ff8905ac5e17b8.tar.xz
python-jenkins-job-builder-c80e3bc5e9af1001a8227ac1e9ff8905ac5e17b8.zip
Cleanup various deprecation warnings.
Change-Id: Iec16a5965d62bebb50d3e7307ab93c59304a9ab6
Diffstat (limited to 'jenkins_jobs/modules/general.py')
-rw-r--r--jenkins_jobs/modules/general.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/jenkins_jobs/modules/general.py b/jenkins_jobs/modules/general.py
index 62b5626a..9ba06454 100644
--- a/jenkins_jobs/modules/general.py
+++ b/jenkins_jobs/modules/general.py
@@ -173,9 +173,9 @@ class General(jenkins_jobs.modules.base.Base):
if 'logrotate' in data:
if not self.logrotate_warn_issued:
- logging.warn('logrotate is deprecated on jenkins>=1.637, use '
- 'the property build-discarder on newer jenkins '
- 'instead')
+ logging.warning('logrotate is deprecated on jenkins>=1.637,'
+ ' the property build-discarder on newer'
+ ' jenkins instead')
self.logrotate_warn_issued = True
lr_xml = XML.SubElement(xml, 'logRotator')