Page MenuHomePhabricator

wikimedia-portals-build permission error: "dubious ownership in repository"
Closed, DuplicatePublicBUG REPORT

Description

Jenkins build fails with:

+ git submodule update --init
fatal: detected dubious ownership in repository at '/srv/jenkins/workspace/wikimedia-portals-build/src/prod'
To add an exception for this directory, call:

	git config --global --add safe.directory /srv/jenkins/workspace/wikimedia-portals-build/src/prod
Unable to find current revision in submodule path 'prod'

https://integration.wikimedia.org/ci/job/wikimedia-portals-build/

Event Timeline

Maybe this didn't get deployed? https://gerrit.wikimedia.org/r/c/integration/config/+/886927/1/jjb/wikimedia.yaml

Otherwise it should have been in the list of safe directories.

Maybe this didn't get deployed? https://gerrit.wikimedia.org/r/c/integration/config/+/886927/1/jjb/wikimedia.yaml

Otherwise it should have been in the list of safe directories.

I have looked at the job config history from https://integration.wikimedia.org/ci/job/wikimedia-portals-build/jobConfigHistory/ and I have deployed it on 2023-02-07_10-12-13

The change allows src then git complains about the subdirectory src/prod. I will change it to allow anything (safe.directory='*').

Change 891485 had a related patch set uploaded (by Hashar; author: Hashar):

[integration/config@master] jjb: drop git safe.directory for wikimedia-portals-build

https://gerrit.wikimedia.org/r/891485

Change 891485 merged by jenkins-bot:

[integration/config@master] jjb: drop git safe.directory for wikimedia-portals-build

https://gerrit.wikimedia.org/r/891485

Solved by update the git setting to safe.directory='*'. I have marked this as a dupe of the original task T328924 ;)