From 2986b5512a4dbe74d866eb91f992308fcd5748f3 Mon Sep 17 00:00:00 2001 From: shaoguoji Date: Thu, 16 Jul 2020 10:04:34 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E3=80=90=E6=9B=B4=E6=96=B0=E3=80=91scons?= =?UTF-8?q?=20=E5=A4=9A=E6=A0=B8=E7=BC=96=E8=AF=91=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Jenkinsfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index b6e08fb65b..ffcdceee2b 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -127,7 +127,8 @@ pipeline { echo \$RTT_EXEC_PATH - scons -C bsp/\$RTT_BSP + export CPUS=$(cat /proc/cpuinfo | grep "processor" | sort | uniq | wc -l) + scons -j${env.CPUS} -C bsp/\$RTT_BSP """ } } -- Gitee From 6fb2ab2f0637e690bf2158670865515043af81c3 Mon Sep 17 00:00:00 2001 From: shaoguoji Date: Thu, 16 Jul 2020 11:09:50 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E3=80=90=E4=BF=AE=E6=94=B9=E3=80=91$?= =?UTF-8?q?=E7=AC=A6=E5=8F=B7=E8=BD=AC=E4=B9=89=EF=BC=8C=E9=81=BF=E5=85=8D?= =?UTF-8?q?=20Groovy=20=E8=AF=AD=E6=B3=95=E6=AD=A7=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index ffcdceee2b..a106793bbb 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -127,8 +127,8 @@ pipeline { echo \$RTT_EXEC_PATH - export CPUS=$(cat /proc/cpuinfo | grep "processor" | sort | uniq | wc -l) - scons -j${env.CPUS} -C bsp/\$RTT_BSP + export CPUS=\$(cat /proc/cpuinfo | grep "processor" | sort | uniq | wc -l) + scons -j\${CPUS} -C bsp/\$RTT_BSP """ } } -- Gitee