Two issues with working directory cleanup

327 views
Skip to first unread message

i...@virgon.eu

unread,
Apr 8, 2015, 5:28:46 AM4/8/15
to go...@googlegroups.com
Hello,

I'm using Go 14.4 on Ubuntu Trusty and I have these two problems:

- the default behavior of using git clean isn't working - "[GIT] Cleaning all unversioned files in working copyError performing command: --- Command --- git clean -dff"

All of the files shown on stderr have a dollar sign in their names and are created from within a docker container running in the working directory. Manually execiting git clean -dff does the trick, however.

- I'm unable to clean the working directory even if I've explicitly set the flag to do that - "Clean working directory is set to true. Unable to clean working directory for agent" - the file that this is failing for has no special characters in it.

/var/lib/go-agent/pipelines is symlinked. Both the origin and destination filesystems are formatted as ext4.

Does anyone have any ideas as to what's happening?

i...@virgon.eu

unread,
Apr 9, 2015, 3:32:11 AM4/9/15
to go...@googlegroups.com
Oh well, that's embarassing. Note to self - don't forget to check files' permissions - that did the trick.

Fredrik Wendt

unread,
Sep 25, 2015, 6:05:14 AM9/25/15
to go-cd
This happens every now and then if you mount local filesystem into a docker container (-v), run something as root that creates files or directories. I've heard other people have this problem. ;-)

/ Fredrik
Reply all
Reply to author
Forward
0 new messages