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

Andrea Bolognani posted 1 patch 20 weeks ago
Failed in applying to current master (apply log)
guests/playbooks/build/jobs/autotools-check-job.yml | 2 +-
jenkins/jobs/autotools.yaml                         | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)

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

Posted by Andrea Bolognani 20 weeks ago
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@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

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list