Skip to content

Commit 6fb2ab2

Browse files
committed
【修改】$符号转义,避免 Groovy 语法歧义
1 parent 2986b55 commit 6fb2ab2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Jenkinsfile

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

0 commit comments

Comments
 (0)