We use Azure DevOps Pipelines and have a pipeline using Microsoft hosted agent.
There is a step we need in our build pipeline that runs 'yarn install' to fetch a repo hosted on our Bitbucket Cloud private repository.
We have tried:
- persistCredentials: true
- Dynamically editing the URL in the package.json file from within the Pipeline to https://:@bitbucket.org/... (where is a secure variable) but this seems to be written as '***'
- InstallSSHKey@0 task to then use ssh instead of https to fetch, but this also fails.
We are expecting yarn install to be able to authenticate with our private Bitbucket cloud repo and pull the package/repo.