From 890e4e8215a9f5137386893c2376429c78c974a7 Mon Sep 17 00:00:00 2001 From: Adam Dobrowolski Date: Tue, 16 Nov 2021 12:20:09 +0100 Subject: [PATCH] [EGD-7975] Added more cores and general ccache more cores in use - one jenkins at once with all might we can get ccache one 100gb catalog --- Jenkinsfile | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 5794e270d3d9b749c3203c2176de2900fc4342ca..72cc082b01392b8eb2cbc48c7a3135a255ee1d4c 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -27,7 +27,7 @@ pipeline { parallelsAlwaysFailFast() } environment { - JOBS=15 + JOBS=30 PATH="/usr/local/cmake-3.21.3-linux-x86_64/bin:/usr/local/gcc-arm-none-eabi-10-2020-q4-major/bin:$PATH" } @@ -90,7 +90,7 @@ pipeline { } stage('Build RT1051') { environment { - CCACHE_DIR="/ccache/RT1051" + CCACHE_DIR="/ccache/" XDG_CACHE_HOME="/clang-cache" } steps { @@ -106,10 +106,10 @@ pipeline { popd''' sh '''#!/bin/bash -e - export JOBS=${JOBS:-6} - export CCACHE_DIR=/ccache/RT1051 - + export JOBS=${JOBS} + export CCACHE_DIR=/ccache/ echo "JOBS=${JOBS}" + echo "cmake path=$(which cmake)" echo "\'workspace dir:${WORKSPACE}\'" @@ -141,14 +141,14 @@ pipeline { popd''' echo "CCache stats" sh '''#!/bin/bash - export CCACHE_DIR=/ccache/RT1051 + export CCACHE_DIR=/ccache/ ccache --show-stats''' } } stage('Build Linux - Pure') { environment { - CCACHE_DIR="/ccache/Linux" + CCACHE_DIR="/ccache/" XDG_CACHE_HOME="/clang-cache" } @@ -204,7 +204,7 @@ pipeline { echo "CCache stats" sh '''#!/bin/bash - export CCACHE_DIR=/ccache/Linux + export CCACHE_DIR=/ccache/ ccache --show-stats''' echo "Check for Statics" @@ -215,7 +215,7 @@ pipeline { echo "Run Unit Tests" sh '''#!/bin/bash -e - export JOBS=${JOBS:-6} + export JOBS=${JOBS} echo "JOBS=${JOBS}" pushd "${WORKSPACE}" @@ -237,7 +237,7 @@ pipeline { stage('Build Linux - Bell') { environment { - CCACHE_DIR="/ccache/Linux" + CCACHE_DIR="/ccache/" XDG_CACHE_HOME="/clang-cache" } when { @@ -296,7 +296,7 @@ pipeline { echo "CCache stats" sh '''#!/bin/bash - export CCACHE_DIR=/ccache/Linux + export CCACHE_DIR=/ccache/ ccache --show-stats''' echo "Check for Statics" @@ -307,7 +307,7 @@ pipeline { echo "Run Unit Tests" sh '''#!/bin/bash -e - export JOBS=${JOBS:-6} + export JOBS=${JOBS} echo "JOBS=${JOBS}" pushd "${WORKSPACE}"