From a704ed52cbeffa0d0a29829ad17feac5c2a056a3 Mon Sep 17 00:00:00 2001 From: Nigel Babu Date: Mon, 14 Aug 2017 17:15:45 +0530 Subject: Run clang in a fedora chroot This job builds a chroot, installs clang, copies the code inside, does a clang analyze inside the chroot and then copies the results out. Change-Id: I3899cf0a41c3ff5c772cb6d98b15ff1634f8cdb8 --- build-gluster-org/jobs/clang.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'build-gluster-org/jobs/clang.yml') diff --git a/build-gluster-org/jobs/clang.yml b/build-gluster-org/jobs/clang.yml index 9d789ca..6001004 100644 --- a/build-gluster-org/jobs/clang.yml +++ b/build-gluster-org/jobs/clang.yml @@ -27,7 +27,13 @@ publishers: - scan-build: mark-unstable: true - threshold: 899 + threshold: 955 + - post-tasks: + - matches: + - log-text: Building remotely + script: | + sudo mock -r fedora-26-x86_64 --clean + sudo chown -R jenkins:jenkins clangScanBuildReports parameters: - string: -- cgit