You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
following tech stack is used at the moment:
strapi headless cms
nuxt static site generator
I would like to use the strapi webhook to start a new pipeline to generate the nuxt full static site if some new content has been published. I tried to find a solution via bitbucket documentation, but it already fails at the authorization to perform an API call.
Do you have any best practises to get this working?
Many thanks in advance
Thank you for contacting Atlassian Community, my name is Norbert and I'm a Bitbucket Cloud Support Engineer, it's nice to meet with you! Welcome to the Atlassian Community!
I'd like to inform you the best way to start Pipeline is with an API call, let me give you an example for an API call, that you can use the start Pipelines:
curl -X POST -is -u username:apppassword -H 'Content-Type: application/json' https://api.bitbucket.org/2.0/repositories/workspaceid/repositoryname/pipelines/ \
By doing this API call, you're starting Pipelines on "workspaceid/repositoryname" repository, on the "branchname" branch. You can generate an app password by following the steps in this documentation: https://support.atlassian.com/bitbucket-cloud/docs/app-passwords/
Please let me know how it goes.
Atlassian Bitbucket Cloud Support