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
Next: Root
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
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
Good morning to everyone!
Already readed:
- Bitbucket-questions/Trigger-teamcity-build-on-pull-request
- confluence.jetbrains.com/REST+API
- confluence.jetbrains.com/Accessing+Server+by+HTTP
We have:
- Bitbucket Cloud
- Local TeamCity server and agents
The problem is the following: run build with webhooks and not with polling.
TeamCity side, for trig a build there are only two POST URL:
- a deprecated one with parameters in the query string (note: docs says "HTTP GET" but "405 Only POST method is allowed for this request")
- the "new" one with parameters in the request body
Bitbucket side:
- webhook are only in GET (we need to make a POST)
- i can't find how to specify wildcard/placeholder for URL/Body parameters as "actual branch"
- there are little few plugins that can help, but they aren't available for cloud
Nice plugin: http-request-hook-for-bitbucket-server - it will solve our problem, performing a request with a wildcard to the deprecated Teamcity url... but isn't available for Bitbucket Cloud.
Any suggestions on how to make this works?
Thanks in advance.
do you resolved the problem ? I have the same problem, I want to do a POST to run a specific build configuration when a story change of the status.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you for answer.
Then I need to create a POST request that contains information when a JIRA status changes from In Progress to Done, and then receive it.
But i dont understand where I call the Teamcity API, because already have the curl request to run a build.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I created a TeamCity plugin to solve this exact problem.
It listens for webhooks and then allows you to extract variables from a webhook payload using JSONPath, and assign them to build parameters for TeamCity. Then it triggers the build.
See more here: https://github.com/tcplugins/tcWebHookTrigger
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
do you resolved the problem ? I have the same problem, I want to do a POST to run a specific build configuration when a story change of the status.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.