[libvirt] [jenkins-ci PATCH] jobs: Fix autotools-check-job

Andrea Bolognani abologna at redhat.com
Wed Jan 8 14:39:59 UTC 2020


find expects {} to be used as placeholder for filenames, but that
confuses Jenkins Job Builder which uses {foo} for variables. Use
xargs in a pipe instead.

Signed-off-by: Andrea Bolognani <abologna at redhat.com>
---
Pushed under the build breaker rule.

 guests/playbooks/build/jobs/autotools-check-job.yml | 2 +-
 jenkins/jobs/autotools.yaml                         | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/guests/playbooks/build/jobs/autotools-check-job.yml b/guests/playbooks/build/jobs/autotools-check-job.yml
index a306902..7aa2a04 100644
--- a/guests/playbooks/build/jobs/autotools-check-job.yml
+++ b/guests/playbooks/build/jobs/autotools-check-job.yml
@@ -9,7 +9,7 @@
     cd build
     if ! $MAKE check
     then
-        find -name test-suite.log -exec cat {} \;
+        find -name test-suite.log | xargs cat
         exit 1
     fi
   when:
diff --git a/jenkins/jobs/autotools.yaml b/jenkins/jobs/autotools.yaml
index 72dd72e..413af73 100644
--- a/jenkins/jobs/autotools.yaml
+++ b/jenkins/jobs/autotools.yaml
@@ -126,7 +126,7 @@
           cd build
           if ! $MAKE check
           then
-              find -name test-suite.log -exec cat {} \;
+              find -name test-suite.log | xargs cat
               exit 1
           fi
     publishers:
-- 
2.24.1




More information about the libvir-list mailing list