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
I'm trying to fetch the latest BITBUCKET_BUILD_NUMBER via Bitbucket API.
This is a default Repository Variable and is not included among the API's request to list variables for a repository.
It's possible to update the next builder number, but there is no available endpoint for reading.
Is it not possible to fetch this value?
If not, can this functionality be added in the future?
We do not expose the internal variable in the API endpoint hence you are not getting any output for the internal variables.
Could you give me a use case on why you wish to have this exposed so I can create a Feature request for you?
This is for an Android App.
I use the Build Number as an internal version number. It's is used for the app's version code and also displayed as part of the version name on certain builds. My intent is to fetch the latest Build Number from the repository instead of manually updating.
The exercise is mostly a POC and not critical should exposing these variables require a lot of effort; however, given that we're able to update the Build Number, I feel that access to read it would make this more complete.