0

We have a repository which now draws from a private repository for a particular component.
A BitBucket SSH key is required to get access to this.

It is a Flutter app and the private repo reference in pubspec.yaml looks like this:

  our_private_api-repo:
    git:
      url: [email protected]:our_org/our-private-api-repo.git
      ref: master

That all works just fine for local development.

Now I am trying to make the CircleCI deployment work.

I worked from these instructions, and these, successfully adding my "Additional SSH Key".

The problem has arisen with the step where I am supposed to add reference to the ssh key, as per the instructions:

      - add_ssh_keys:
          fingerprints:
            - "SO:ME:FIN:G:ER:PR:IN:T"

I've got the correct fingerprint from the CircleCI backend, and I've put the lines in the correct place (just under the steps section for my job, but when I push this change, CircleCI now reports the following errors:

> # |   |   3. [#/jobs/my-job/steps/3/fingerprints] no subschema matched out of the total 2 subschemas
> # |   |   |   1. [#/jobs/my-job/steps/3/fingerprints] expected type: Mapping, found: Sequence
> # |   |   |   |   SCHEMA:
> # |   |   |   |     type:
> # |   |   |   |     - object
> # |   |   |   |     - string
> # |   |   |   |   INPUT:
> # |   |   |   |     - 84:1a:fe:etc..(this is not it exactly)..:31:0f
> # |   |   |   2. [#/jobs/my-job/steps/3/fingerprints] expected type: String, found: Sequence
> # |   |   |   |   SCHEMA:
> # |   |   |   |     type:
> # |   |   |   |     - object
> # |   |   |   |     - string
> # |   |   |   |   INPUT:
> # |   |   |   |     - 84:1a:fe:etc..(this is not it exactly)..:31:0f

The error goes away if I remove the add_ssh_keys/fingerprints/fingerprint lines.

1 Answer 1

0

This was due to missing a tab in my config.yml file.

Changed:

      - add_ssh_keys:
        fingerprints:
          - "84:1a:fe:SO:ME:FIN:G:ER:PR:IN:T"

To:

      - add_ssh_keys:
          fingerprints:
            - "84:1a:fe:SO:ME:FIN:G:ER:PR:IN:T"
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.