I create a pipeline, triggered by a tag, which should launch a custom pipeline on another repository.
I'm an admin for both repos, so probably, should have correct access rights.
The pipeline is starting on tag push, and log bottom is the following:
<span>Status: Downloaded newer image for bitbucketpipelines/trigger-pipeline:5.0.1</span>
<span>INFO: Fetching the tag info for tag:sometag</span>
<span>✖ Failed to get the tag info for sometag from Bitbucket. Response code: 401. Error: </span>
The pipeline is described such way:
- step:
script:
- pipe: atlassian/trigger-pipeline:5.0.1
variables:
BITBUCKET_USERNAME: $BITBUCKET_USERNAME
BITBUCKET_APP_PASSWORD: $BITBUCKET_APP_PASSWORD
REPOSITORY: 'some/repository'
REF_TYPE: 'tag'
REF_NAME: $BITBUCKET_TAG
CUSTOM_PIPELINE_NAME: 'custom-pipeline-name'
How the trigger-pipeline should be used for the case?
I tried the REPOSITORY variable without 'some/' achieving no success.
On first sight automatic pipelines are running from another user's name, but if I launch the pipeline manually I get the same problem.
What is the solution for the case?
Thank you!