From 87610b063d64f56836708ff567e3493d584c413e Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Sun, 8 Sep 2019 01:59:09 +0800 Subject: [PATCH] ceph-build-pull-requests: pass --config-xml to "jenkins-jobs test" to silence warnings like WARNING:jenkins_jobs.cli.subcommand.test:(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. also redirect the test result to /dev/null, otherwise the test will fail because the output directory may already exist. Signed-off-by: Kefu Chai --- ceph-build-pull-requests/build/build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ceph-build-pull-requests/build/build b/ceph-build-pull-requests/build/build index 2766cc0f..89cb8f7c 100644 --- a/ceph-build-pull-requests/build/build +++ b/ceph-build-pull-requests/build/build @@ -17,7 +17,7 @@ for dir in `find . -maxdepth 1 -path ./.git -prune -o -type d -print`; do echo "found definitions directory: $definitions_dir" # Test the definitions - $VENV/jenkins-jobs test $definitions_dir -o /tmp/output + $VENV/jenkins-jobs test $definitions_dir --config-xml > /dev/null fi done -- 2.39.5