26.06.2025・TechStuff
26.06.2025・TechStuff

Bitbucket shell runner behaves weird – git clone fails

Fabian Blechschmidt
+ git clone --branch="MOMA-42" --depth 50 https://x-token-auth:$REPOSITORY_OAUTH_ACCESS_TOKEN@bitbucket.org/$BITBUCKET_REPO_FULL_NAME.git $BUILD_DIR

fatal: destination path '/home/winkelwagen/atlassian-bitbucket-pipelines-runner/bin/../temp/e7ba06bd-f9e6-537d-a0d6-9c32071b4937/build' already exists and is not an empty directory.

If your bitbucket shell runner is doing weird stuff, you might have started the runner two times – in my case under different users (root + winkelwagen) and therefore it didn’t show up when looking for the screen.