I use a local Jenkins service on Ubuntu. I have created a local git repository with a Jenkinsfile:
git init
git add .
git commit -m "Initial commit"
The path to the local git repository looks this way: /home/my_user/projects/my_repo
Next I have created a mulitbranch pipeline job. I haved added Source/Git
with the following path:
file:///home/my_user/projects/my_repo.git
and Credentials “None”
in the job configuration. Jenkins return the following message:
stderr: fatal: '/home/my_user/projects/my_repo.git' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
How to fix that ?