My first attempt is using two repos created under my Personal Workspace.
There is driving-repo and target-repo.
The driving-repo pipeline looks like this:
script:
- echo Running the trigger
- pipe: atlassian/trigger-pipeline:4.2.1
variables:
BITBUCKET_USERNAME: 'myusername'
BITBUCKET_APP_PASSWORD: 'llllllllllllllllllll'
REPOSITORY: 'target-repo'
PIPELINE_VARIABLES: >
[{
"key": "VERSION",
"value": "999.999.999"
},
{
"key": "SERVICE",
"value": "specific-service-name",
}]
WAIT: 'true'
CUSTOM_PIPELINE_NAME: 'update-pipeline.yml'
DEBUG: 'true'
(it just attempts to invoke the target-repo and pass it vars)
The target-repo has the custom pipeline file "update-pipeline.yml":
pipelines:
default:
- step:
name: Test the trigger
script:
- git status
- echo $SERVICE
- echo $VERSION
But it complains about some other file name:
✖ Error: {"error": {"message": "Bad request", "detail": "bitbucket-pipelines.yml not found.", "data": {"key": "result-service.pipeline.yml-not-found", "arguments": {}}}}
Build teardown<1s
Well, this Q sucks....but any pointers will be appreciated!
It is confirmed.
I can add that that error came from the CUSTOM_PIPELINE_NAME setting.
Well, I simplified the driver project down to just the target repo name and credentials and it worked fine:
✔ Build started successfully. Build number: 5.
So that is that. I must have an issue with my passed parameters....
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.