Skip to content

Commit ee88960

Browse files
authored
Merge pull request #2637 from jsiirola/jenkins-pyutilib
Jenkins: remove requirement for a 'pyutilib' directory
2 parents 99b5f48 + 0cbeb68 commit ee88960

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.jenkins.sh

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,13 @@ if test -z "$MODE" -o "$MODE" == setup; then
8686
echo "#"
8787
echo "# Installing pyomo modules"
8888
echo "#"
89-
pushd "$WORKSPACE/pyutilib" || echo "PyUtilib not found"
90-
python setup.py develop || echo "PyUtilib failed - skipping."
91-
popd
89+
if test -d "$WORKSPACE/pyutilib"; then
90+
pushd "$WORKSPACE/pyutilib"
91+
python setup.py develop || echo "PyUtilib failed - skipping."
92+
popd
93+
else
94+
echo "PyUtilib not found; skipping"
95+
fi
9296
pushd "$WORKSPACE/pyomo" || exit 1
9397
python setup.py develop $PYOMO_SETUP_ARGS || exit 1
9498
popd

0 commit comments

Comments
 (0)