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:
[ -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
VERSION="build$BUILD_NUMBER" # from teamcity
echo running zip -D -r "$BASEDIR/build/$ARCHIVE_NAME" *
zip -D -r "$BASEDIR/build/$ARCHIVE_NAME" * || exit -1
echo mv $BASEDIR/build/$ARCHIVE_NAME $TARGETDIR
mv $BASEDIR/build/$ARCHIVE_NAME $TARGETDIR || exit -1
echo "done! great!"
Other info about my setup:
$ set | grep REPO
/dev/disk1s5 on / (apfs, local, read-only, journaled)
https://scriptorium.org/gv0/ 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.