Skip to content

Commit 1ec71a5

Browse files
committed
debug race condition in chown -R jenkins
1 parent a6caff3 commit 1ec71a5

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

ci/setup-cfengine-build-host.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,11 @@ fuser -k "$CHROOT_ROOT" >/dev/null 2>&1 || true
2626
# Unmount the /proc filesystem if it was previously mounted inside the chroot.
2727
umount "${CHROOT_ROOT}proc" >/dev/null 2>&1 || true
2828

29-
chown -R jenkins /home/jenkins
29+
echo craig debug chown trying to operate on missing files, race condition? background process?
30+
ps -efl
31+
set -x
32+
33+
chown -R jenkins /home/jenkins || true
3034

3135
# cleanup any previous runs cfengine-masterfiles tar balls
3236
rm -rf cfengine-masterfiles*

0 commit comments

Comments
 (0)