I'm beginning with pipelines. I have a simple project, and I'm trying to get it to run with the local pipeline. (my runners are version 5, if that matters)
The issue is in the default build setup.
One of the lines reads:
" echo ".bitbucket/pipelines/generated" >> .git/info/exclude".
The problem is that .git/info doesn't get automatically created when the git checkout happens, therefore, that fails, meaning that it never gets to ANY of the steps from my actual pipeline (which are the basic, swift default build and test steps).
I can't find any way to modify that build script it runs, nor can I find any way to have that directory auto-created by git.
Does anyone have any ideas?
Hey @Drew Schatt
Welcome to the community.
You can’t change the bootstrap script itself, the most robust workaround on a self‑hosted macOS runner is to ensure that every new repo has an info/ directory when git init runs, by using a Git template directory.
On the macOS machine that runs the Pipelines runner:
info directory:
mkdir -p ~/.git-templates/infogit config --global init.templateDir ~/.git-templatesFrom now on, when the runner’s clone script does:
git init
...
echo ".bitbucket/pipelines/generated" >> .git/info/exclude.git/info will already exist (copied from your template), so the echo line succeeds and the pipeline can proceed to your Swift steps.
Let me know how it goes.
Regards,
Syahrul
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.