Invocations
Invocation is a key concept in remote caching, one that we use often in the guides. An invocation is a single Gradle or Bazel command execution. This means running a specific Gradle or Bazel command to achieve a particular goal.
Invocation is a key concept in remote caching. An invocation is a single Gradle or Bazel command execution. This means running a specific Gradle or Bazel command to achieve a particular goal.
Invocations are only counted for billing purposes when the Bitrise Build Cache and/or analytics are enabled.
Checking invocations
You can check the details of every single invocation in your cache history.
-
Open the Build Cache.
-
Select the tab of your build tool, either Gradle or Bazel.
-
Select your filter. You can filter for:
-
Dates
-
Bitrise projects
-
CI providers
-
Invocation status
-
Bitrise Workflow
-
-
In the invocation list, click the downward arrow to the left of any given invocation to see the basic information about it:
-
Invocation ID.
-
The CI provider used.
-
The build URL.
If you use the Bitrise CI, you will see the Workflow and the Step in which the command was executed.
-
-
Click the arrow on the right to get to the details page of the invocation.
Invocation details
The invocation details page shows:
-
The command name and the event data of its invocation (such as CI provider, build tool, duration, cache hit rate).
-
The critical path: the longest chain of dependent build tasks within an invocation. Executed cacheable tasks can be fixed to improve build cache performance.
-
Uploads and downloads during the invocation. Large items or a high number of items increase invocation size. This can impact cache efficiency.
The details page allows you to compare the metrics of this invocation to the averages from the last 30 days for the same command:

If you use the Bitrise CI, the command card can take you to the project's build list:

For even more invocation metrics, check out Insights.
Comparing invocation differences
You can compare two command invocations side-by-side to quickly identify what changed between them. This helps debugging and failure root cause analysis.
For example, in Bitrise Insights you see an increase in command failure. You check which command started to fail. On the build cache page, you can check out the differences between two invocations of the command.
To check the differences:
-
Open the Build Cache.
-
Select the tab of your build tool, either Gradle or Bazel.
-
Set any filters you might need.
-
Click
. -
Check the box to the right of the invocations you want to compare.
-
Click
to see the difference.In this example, you can immediately see that the duration of the more recent invocation has doubled compared to the previous one. You can dive in to the detailed comparison to see why.
The
demo.wait.seconds
Gradle property changed from 28 to 56.
Invocation details
You can also access the compare function from the Invocation details page: you can find the button in the top right corner of the page.