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?
Hi @RyeGordo
G'Day!
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?
Cheers,
Syahrul
Hi @Syahrul
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.
Thanks,
Ryan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @RyeGordo
Noted, thanks for sharing your use case, I have proceeded to raise a feature request and I highly suggest you to Watch the feature request so that you'll receive an update whenever we have any at:
I hope this helps.
Cheers,
Syahrul
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.