Skip to content

Commit e2b985b

Browse files
ggouaillardetbwbarrett
authored andcommitted
jenkins: output config.log if configure fails
Signed-off-by: Gilles Gouaillardet <[email protected]>
1 parent 6749322 commit e2b985b

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

jenkins/open-mpi-build-script.sh

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,16 @@ else
177177
fi
178178

179179
echo "--> running ./configure --prefix=\"${PREFIX}\" ${CONFIGURE_ARGS}"
180-
./configure --prefix="${PREFIX}" ${CONFIGURE_ARGS}
180+
if ! ./configure --prefix="${PREFIX}" ${CONFIGURE_ARGS}; then
181+
echo "./configure --prefix=\"${PREFIX}\" ${CONFIGURE_ARGS} failed, ABORTING !"
182+
if test -f config.log; then
183+
echo "config.log content :"
184+
cat config.log
185+
else
186+
echo "no config.log was generated"
187+
fi
188+
exit 1
189+
fi
181190

182191
# shortcut for the distcheck case, as it won't run any tests beyond
183192
# the build-in make check tests.

0 commit comments

Comments
 (0)