Hi all,

Since our trunk-packages build always has random failures caused by
external resources ban. (
https://ci.bigtop.apache.org/view/Packages/job/Bigtop-trunk-packages)
I've added a naive hack to randomly sleep 300 seconds before build started.
Now our build script looks like the following:



# Random sleep 300 seconds to avoid banned by external resources
sleep $((RANDOM%300))

NEXUS="--net=container:nexus"
CONFIGURE_NEXUS=configure-nexus

# Disable NEXUS on ppc64le and arch64
(echo $OS | egrep "ppc64le|aarch64" ) && NEXUS="" && CONFIGURE_NEXUS=""

# Build
docker run --rm -v `pwd`:/ws --workdir /ws -e COMPONENTS=$COMPONENTS  -e
CONFIGURE_NEXUS=$CONFIGURE_NEXUS $NEXUS  bigtop/slaves:trunk-$OS \
bash -c '. /etc/profile.d/bigtop.sh; ./gradlew allclean $CONFIGURE_NEXUS
$COMPONENTS-pkg'


Not sure whether this fixed the problem, let's see how it goes...

Evans

Reply via email to