summaryrefslogtreecommitdiffstats
path: root/jenkins_jobs/builder.py
diff options
context:
space:
mode:
authorThanh Ha <zxiiro@linux.com>2018-11-15 16:28:38 +0800
committerThanh Ha <zxiiro@linux.com>2018-11-15 16:28:40 +0800
commite07ad13ad0173a4f5e6ab899cfb6d78861c26d42 (patch)
tree089712e966b2bba913d7b982fb09973ea4f7dd61 /jenkins_jobs/builder.py
parent6b6e8fb4e13fa5adbe6699a44680d865d9513a99 (diff)
downloadpython-jenkins-job-builder-e07ad13ad0173a4f5e6ab899cfb6d78861c26d42.tar.gz
python-jenkins-job-builder-e07ad13ad0173a4f5e6ab899cfb6d78861c26d42.tar.xz
python-jenkins-job-builder-e07ad13ad0173a4f5e6ab899cfb6d78861c26d42.zip
Print config-xml warning once
Instead of printing the deprecation warning against every generated config-xml file, print it only once at the beginning of the test command call to not spam the console. Change-Id: Ifdcdb1373d44ba6232ea7a5359662cc760353774 Signed-off-by: Thanh Ha <zxiiro@linux.com>
Diffstat (limited to 'jenkins_jobs/builder.py')
-rw-r--r--jenkins_jobs/builder.py8
1 files changed, 0 insertions, 8 deletions
diff --git a/jenkins_jobs/builder.py b/jenkins_jobs/builder.py
index 7beab940..5d7bbe34 100644
--- a/jenkins_jobs/builder.py
+++ b/jenkins_jobs/builder.py
@@ -79,14 +79,6 @@ class JenkinsManager(object):
output_dir = os.path.join(
output_dir, os.path.basename(item))
output_fn = os.path.join(output_dir, 'config.xml')
- else:
- logger.warn('(Deprecated) The default output behavior of'
- ' `jenkins-jobs test` when given the --output'
- ' flag will change in JJB 3.0.'
- ' Instead of writing jobs to OUTPUT/jobname;'
- ' they will be written to OUTPUT/jobname/config.xml.'
- ' The new behavior can be enabled by the passing'
- ' `--config-xml` parameter.')
if output_dir != output:
logger.debug("Creating directory %s" % output_dir)