blob: b4d5f209c8c0acee79cf6cc6088f4990ea5fb753 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#!/bin/bash
CORES=4
if [[ -z ${NODE_NAME+x} || -z ${NODE_LABELS+x} ]]
then
echo "NODE_NAME or NODE_LABELS is not set, using defaults for parallel build/test"
else
for NODE_LABEL in $NODE_LABELS
do
# NODE_LABELS is jenkins-SOMEHEX and the label we're looking for
# NODE_NAME is jenkins-SOMEHEX
if [[ $NODE_NAME != $NODE_LABEL ]]
then
# Found label such as ubuntu1604arm-us
break
fi
done
if [[ $NODE_LABEL == 'ubuntu1604arm-us' ]]
then
CORES=16
fi
fi
echo "Using MAKE_PARALLEL_FLAGS='-j $CORES' TEST_JOBS=$CORES for parallel build/test"
export MAKE_PARALLEL_FLAGS="-j $CORES"
TEST_JOBS=$CORES
|