build stuck on on mv to webdav-mounted fs on mac os x


I have a bash script which does a simple build. After the build is finished, a zip is 'published' to a webdav-mounted filesystem.

Only on Mac os x the build gets suck during the mv step. The same build on another agent on ubuntu linux works fine.

Here's the simple build script:

#! /bin/bash
[ -z "$REPO" ] && echo "must provide REPO env var " && exit 1;
echo "in directory $PWD"
ionic info || exit -1
rm -rf build/
npm install || exit -1
ionic build -c int || exit -1
npm run test-headless || exit -1

mkdir build
VERSION="build$BUILD_NUMBER" # from teamcity
cd www
echo running zip -D -r "$BASEDIR/build/$ARCHIVE_NAME" *
zip -D -r "$BASEDIR/build/$ARCHIVE_NAME" * || exit -1
echo "done! great!"

Other info about my setup:

$ set | grep REPO

$ mount
/dev/disk1s5 on / (apfs, local, read-only, journaled) on /Volumes/gv0 (webdav, nodev, noexec, nosuid, mounted by petru)

$ uname -a
Darwin mini.local 19.6.0 Darwin Kernel Version 19.6.0: Tue Jan 12 22:13:05 PST 2021; root:xnu-6153.141.16~1/RELEASE_X86_64 x86_64


the build gets stuck indefinitely and inexplicably at the mv. I tried manually the same operation (a mv) from the terminal, it works.

it must be related to the target mount being a webdav remote fs but I see no reason why a simple operation like mv would get stuck indefinitely

any ideas would be appreciated.


Please sign in to leave a comment.