]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-build-pull-requests: pass --config-xml to "jenkins-jobs test" 1392/head
authorKefu Chai <kchai@redhat.com>
Sat, 7 Sep 2019 17:59:09 +0000 (01:59 +0800)
committerKefu Chai <kchai@redhat.com>
Sat, 7 Sep 2019 18:11:28 +0000 (02:11 +0800)
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 <kchai@redhat.com>
ceph-build-pull-requests/build/build

index 2766cc0fdbc10411e02ec16ab9cabc03aa342a94..89cb8f7ca0c537272ee691081cf47a1444ed3c57 100644 (file)
@@ -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