Skip to content

Commit 69258cd

Browse files
aozimagitee-org
authored andcommitted
!38 【更新】Jenkinsfile 并行构建
Merge pull request !38 from 国际哥/jenkins_build
2 parents fed1634 + 6fb2ab2 commit 69258cd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Jenkinsfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,8 @@ pipeline {
127127
128128
echo \$RTT_EXEC_PATH
129129
130-
scons -C bsp/\$RTT_BSP
130+
export CPUS=\$(cat /proc/cpuinfo | grep "processor" | sort | uniq | wc -l)
131+
scons -j\${CPUS} -C bsp/\$RTT_BSP
131132
"""
132133
}
133134
}

0 commit comments

Comments
 (0)