Ah yes sorry you’re right
Defining a workflow which only install dependencies and push cache… Correct.
Thanks for this idea. I dont know why I make it so complex
Ah yes sorry you’re right
Defining a workflow which only install dependencies and push cache… Correct.
Thanks for this idea. I dont know why I make it so complex
No problem, it’s not trivial to find the easiest solution when there are multiple solutions (each one might be the easiest solution for a given use case ;)).
It’d be useful for us to track the size of the build artifacts over time - say for tracking significant changes in app binary size. I noticed that the WIP endpoint for getting details on a build artifact doesn’t include file size. It’d be great if it did, does that sound reasonable?
There is a workaround to get arttifact file size. I’ve used the following pipe:
curl -sH ‘Authorization: token THE-ACCESS-TOKEN’ ‘https://api.bitrise.io/v0.1/apps/APP-SLUG/builds/BUILD-SLUG/artifacts/ARTIFACT-SLUG’ | jq -r .data.expiring_download_url | xargs curl -sD - | dd count=1 2>/dev/null | grep -e Content-Length | cut -d" " -f 2
@jeffremer definitely makes sense and shouldn’t take too much time - I’ll schedule a task for this!
@koral that’s a nice trick, thanks for sharing!
Hello @viktorbenei!
Thanks for a nice API!
Is there a way i can get all apps including the latest build info?
Either by default including it or adding a query parameter.
I’m requesting this because it will not be good performance in an app.
Lets say there is a list with 50 apps and then need to fetch 50 builds afterwards?
I hope you understand me
// Kim
Not yet, you’ll have to iterate over all the apps (/me/apps
) and then get the builds for those (to get only the latest one you can use ../builds?limit=1
).
Okay!
Is the latest build in the pipeline?
@kimdv latest build can be retrieved with the ../builds
endpoint, if you specify limit=1
. It’s not in the API docs yet but should be, just created an issue for it
https://github.com/bitrise-io/devcenter/issues/157
That said you can already see examples in the API docs, e.g. at the builds list endpoint docs, curl example: http://devcenter.bitrise.io/api/v0.1/#example-curl-request_3
@viktorbenei maybe I wasn’t clear in my question.
Is the latest build within the apps endpoints, something similar to the example below?
For app usage it will be a lot more performant to download a lot of data at once, instead of downloading a single build for every app.
{
"slug": "slug",
"title": "Test",
"project_type": "ios",
"provider": "github",
"repo_owner": "kimdv",
"repo_url": "git@github.com:kimdv/Test.git",
"repo_slug": "Test",
"is_disabled": false,
"latestBuild": {
"slug": "slug"
// MORE DATA
}
}
Ahh I see. Not planned yet, feel free to create a separate #feature-request for it (we’ll close this one soon and will start to track api related feature requests separately)
@jeffremer & @koral Artifact file size is now included in the response, no need for hacks/workarounds anymore
See e.g. http://devcenter.bitrise.io/api/v0.1/#get-appsapp-slugbuildsbuild-slugartifactsartifact-slug - file_size_bytes
Hi guys, thanks for the idea of the API, it’s great !
I use Bitrise for quite a long time for my company and I start using it for me.
I have started a postman collections about the API, you can find this here :
https://www.getpostman.com/collections/f0e338f8eaebe68d9779
You will have to add some environnements variables (with bulk edit it will be very fast)
bearer: —your token----
appSlug: —someAppSlug----
buildSlug: —someBuildSlug—
artifactSlug:—someArtifactSlug—
I think of creating a small Android application to handle bitrise , but the main problem for this is the authentification. Is there no way to handle a auth workflow, where we send email/password?
We send userName, password, and the api such as bitrise/auth do a callback with the token?
That way, no need to go to the website, in security and generate a token.
If it is not something you are going to do, i’ll do with a webview but it is not very user friendly ^^
Well, thanks a lot for your projects, it is really much easier to use than jenkins/gitlab or else, so i wanted to be involved in my way
Cheers,
Jocelyn
Awesome, thank you @z17jdavi for sharing! I’m sure this’ll help others too - we’re also working on an auto generated Swagger definition, that will hopefully help as well
Re: auth: we don’t have plans for it right now, but feel free to create a separate #feature-request for it. Personally I’d love to see this, but we might have to wait it until the end of the “v1” scope, or can work on it after the “v1” scope, so a separate #feature-request would be really helpful!
Hi @viktorbenei,
I builded a new dashboard on Google Data Studio, but i wanted only count of all builds of each apps without pagging and with period time, because this way would more easy to obtain.
It is possible to add in the future?!
@ipirangamobile sure, definitely possible - please create a separate Feature Requests for it (at Feature Requests - Bitrise Discussions ), as it’s a bit out of scope for this one (as we already have the required API endpoints as far as I know) and it’s more about a dashboard / UI than about the API.
P.S.: actually this feature request seems to be related: Build dashboard / Build Time Trend / Stats / Analytics so feel free to just vote & comment there!
Hi guys,
I am currently developping an android app in order to download very quickly apk that are create with bitrise.
For that I have been able to connect with writing a token using a webview, and go from build to the artifacts and download it.
It would be easier for user if there was an endpoint to generate a token, using email/password , is it in your roadmap?
Now I am looking for ways to start a build from the app but it seems difficult for some reasons :
Anyway, thanks for the good work , I’ll send you an APK for the app when it will be almost done (a bitrise link for sure ;D)
Hey @z17jdavi
There’s no endpoint for getting the workflows right now, but we definitely plan to provide two related endpoints in the near future:
bitrise.yml
config (in JSON format), from which you can filter the workflowsDefinitely a great idea! Can you please create a Feature Requests for this? It’s definitely on our roadmap, but a Feature Requests would bump its priority
Glad to hear, thank you! If you’d have any questions just let us know! Happy Building!
It would be great to have more data on the artifacts, especially version (and build number). This is already displayed on the public install page but currently not exposed via the api.
Hi @viktorbenei! Can you give me a list of all possible values for artifact_type
and project_type
? The only ones mentioned in the documentation are:
artifact_type
: file
, android-apk
, ios-ipa
project_type
: android
, ios
, xamarin
, macos