Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Do I need Root Access to setup an atlassian/trigger-pipeline?

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!   

2 answers

1 accepted

0 votes
Answer accepted

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....

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket

New improvements to user management in Bitbucket Cloud 👥

Hey Community! We’re willing to wager that quite a few of you not only use Bitbucket, but administer it too. Our team is excited to share that we’ll be releasing improvements throughout this month of...

3,826 views 10 16
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you