Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Are pipelines just broken on macOS?

Drew Schatt
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 5, 2025

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?

1 answer

0 votes
Syahrul
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 15, 2025

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:

  1. Create a Git template with an info directory:
    mkdir -p ~/.git-templates/info
    (You can optionally drop an empty file there, but the empty directory is enough.)
  2. Tell Git to use this template for all repos:
    git config --global init.templateDir ~/.git-templates
  3. Restart the Bitbucket Pipelines runner (so it picks up the user’s Git config).

From 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

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin Site Admin
TAGS
AUG Leaders

Atlassian Community Events