Bitrise with Fastlane match always fails to access to repo

fastlane
#1

I have a fastlane file and the certs repo resides in Gitlab privately. I’ve been trying almost a week and I never make it work. I tried to enable deploy keys with private keys on Gitlab but still nothing happened.
I follow this steps in order to verify myself

What bugs me is my repo and match files resides in the same repo. Bitrise successfully clone the repo but not the Fastlane match files.

Here is my Matchfile:

git_url("git@gitlab.com:my_username/private_cert-files.git")

storage_mode("git")

type("adhoc")

Here is my FastFile:

lane :sync_signing_assets do |options|
    # sync_device_info
    selected_type = options[:type]
    match(type: selected_type, readonly: true, git_private_key: "SHA256:LzEnYd7ZZbnKW3LmwSm11233XYG3NB4iDUMMY_DATA_wY")
  end

I also set secret env variable MATCH_PASSWORD which is my gitlab password. But still giving me the error:

[21:54:50]: Exit status: 128

[21:54:50]: Error cloning certificates repo, please make sure you have read access to the repository you want to use

Thanks bunch any help and recommendations.

1 Like

#2

Hi @serhat-sezer
Thank you for reaching out to Bitrise.
According to the logs, it looks like there is a problem with accessing the git repository. Your CI machine should have an access to the repository where you are storing the certificates.

Following a Git storage and Git repo access sections from fastlane documentation should help you to resolve the issue.

Can you give it a try and tell us how did it go?

Thanks
Chaitanya

0 Likes

closed #3

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.

0 Likes