]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-perf-pull-requests: install clang for crimson build 1576/head
authorKefu Chai <kchai@redhat.com>
Mon, 1 Jun 2020 08:52:16 +0000 (16:52 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 1 Jun 2020 09:23:45 +0000 (17:23 +0800)
so we can detect build failures on clang

Signed-off-by: Kefu Chai <kchai@redhat.com>
ceph-perf-pull-requests/config/definitions/ceph-perf-pull-requests.yml

index 32a72a72453d6ddd9b1f453e702303ff03d9d9ca..cf39aa6dedd0d01c3813e52423fcae09a17e791b 100644 (file)
@@ -94,6 +94,7 @@
     project-type: freestyle
     defaults: global
     concurrent: true
+    # use lastest rhel and ubuntu for crimson for clang build
     node: performance
     display-name: 'ceph: {osd-flavor} perf test'
     quiet-period: 5
       - shell: |
           cd ${{WORKSPACE}}/cbt
           source /etc/os-release || ID=ubuntu
+          if test {osd-flavor} = "crimson" ; then
+              extra_pkgs=clang
+          fi
           case $ID in
           debian|ubuntu)
-              sudo env DEBIAN_FRONTEND=noninteractive apt-get install -y python3-yaml python3-lxml python3-prettytable;;
+              sudo env DEBIAN_FRONTEND=noninteractive apt-get install -y python3-yaml python3-lxml python3-prettytable ${{extra_pkgs}};;
           centos|fedora|rhel)
-              sudo yum install -y python3-pyyaml python3-lxml python3-prettytable;;
+              sudo yum install -y python3-pyyaml python3-lxml python3-prettytable ${{extra_pkgs}};;
           *)
               echo "unknown distro: $ID"
               exit 1