# How To

**URL:** https://discuss.bitrise.io/c/how-to/5.md

[Latest](https://discuss.bitrise.io/latest.md) · [Categories](https://discuss.bitrise.io/categories.md) · [Tags](https://discuss.bitrise.io/tags.md)

---

## [About the How To category](https://discuss.bitrise.io/t/about-the-how-to-category/12)

<div class="topic-metadata">

**Author:** [@discourseadmin](https://discuss.bitrise.io/u/discourseadmin)\
**Replies:** 0

</div>

Share best practices with the community. Do you use Bitrise in a surprising / clever way? The community would love to hear about it! If you want to ask a question please do that in #question-answer, this category is fo…

---

## [Gradle Dependency Verification fails on Bitrise - what should I do? (BitriseMirrorApacheCentral)](https://discuss.bitrise.io/t/gradle-dependency-verification-fails-on-bitrise-what-should-i-do-bitrisemirrorapachecentral/25911)

<div class="topic-metadata">

**Author:** [@viktorbenei](https://discuss.bitrise.io/u/viktorbenei)\
**Replies:** 0\
**Last updated:** [April 30, 2026, 3:36pm UTC](https://discuss.bitrise.io/t/gradle-dependency-verification-fails-on-bitrise-what-should-i-do-bitrisemirrorapachecentral/25911 "2026-04-30T15:36:13Z")

</div>

The error If your Android build on Bitrise started failing with a Gradle dependency verification error, look for these signals in the Install missing Android SDK components step (or in Activate Gradle Mirrors / Gradle Ru…

---

## [Gradle "Build Finished Plugin"](https://discuss.bitrise.io/t/gradle-build-finished-plugin/25489)

<div class="topic-metadata">

**Author:** [@viktorbenei](https://discuss.bitrise.io/u/viktorbenei)\
**Replies:** 0\
**Last updated:** [August 15, 2025, 1:18pm UTC](https://discuss.bitrise.io/t/gradle-build-finished-plugin/25489 "2025-08-15T13:18:11Z")

</div>

Our Advanced CI team is always trying to push what we have further, which often means we have to support APIs and code that are not yet fully stable. On the other hand, we are committed to supporting projects that are us…

---

## [How to register a GitHub Enterprise repository](https://discuss.bitrise.io/t/how-to-register-a-github-enterprise-repository/218)

<div class="topic-metadata">

**Author:** [@viktorbenei](https://discuss.bitrise.io/u/viktorbenei)\
**Replies:** 12\
**Last updated:** [February 13, 2024, 2:36pm UTC](https://discuss.bitrise.io/t/how-to-register-a-github-enterprise-repository/218 "2024-02-13T14:36:16Z")

</div>

GitHub Enterprise is supported, and you can have the same features as with GitHub.com with two exceptions: You can't use the automatic options during the Add New App process, you'll have to manually specify the git cl…

---

## [How to build a Unity project](https://discuss.bitrise.io/t/how-to-build-a-unity-project/1317)

<div class="topic-metadata">

**Author:** [@tamaspapik](https://discuss.bitrise.io/u/tamaspapik)\
**Replies:** 25\
**Last updated:** [January 26, 2024, 9:08am UTC](https://discuss.bitrise.io/t/how-to-build-a-unity-project/1317 "2024-01-26T09:08:30Z")

</div>

steps summary download unity + support platform pkgs install all downloaded pkgs run unity for about 10-30 seconds without -batchmode and -nographics flags → this will create CACerts for unity → needed to run unity so …

---

## [Gradle Build Cache - Best Practices](https://discuss.bitrise.io/t/gradle-build-cache-best-practices/23289)

<div class="topic-metadata">

**Author:** [@viktorbenei](https://discuss.bitrise.io/u/viktorbenei)\
**Replies:** 0\
**Last updated:** [September 7, 2023, 6:33am UTC](https://discuss.bitrise.io/t/gradle-build-cache-best-practices/23289 "2023-09-07T06:33:06Z")

</div>

Below you can find a collection of best practices related to Gradle Build Caching. Don’t allow developers to upload their results to a shared cache Allowing developers to upload their results to a shared cache is possi…

---

## [How to change brew core from mirror to official?](https://discuss.bitrise.io/t/how-to-change-brew-core-from-mirror-to-official/16033)

<div class="topic-metadata">

**Author:** [@viktorbenei](https://discuss.bitrise.io/u/viktorbenei)\
**Replies:** 5\
**Last updated:** [December 7, 2023, 11:32pm UTC](https://discuss.bitrise.io/t/how-to-change-brew-core-from-mirror-to-official/16033 "2023-12-07T23:32:03Z")

</div>

For stability and for increased build performance by default the macOS VMs have brew installed but the main source is changed from the official GitHub - Homebrew/homebrew-core: 🍻 Default formulae for the missing package …

---

## [I need to update the parameter "manage\_version\_and build\_number"](https://discuss.bitrise.io/t/i-need-to-update-the-parameter-manage-version-and-build-number/23273)

<div class="topic-metadata">

**Author:** [@mobile\_team](https://discuss.bitrise.io/u/mobile_team)\
**Replies:** 0\
**Last updated:** [September 5, 2023, 9:14am UTC](https://discuss.bitrise.io/t/i-need-to-update-the-parameter-manage-version-and-build-number/23273 "2023-09-05T09:14:54Z")

</div>

Hello, I need to update the parameter “manage\_version\_and build\_number” to true, but I don’t know where to make this change, can anyone help me?

---

## [How to cache a tool which you install during the build](https://discuss.bitrise.io/t/how-to-cache-a-tool-which-you-install-during-the-build/23220)

<div class="topic-metadata">

**Author:** [@viktorbenei](https://discuss.bitrise.io/u/viktorbenei)\
**Replies:** 0\
**Last updated:** [August 29, 2023, 10:20am UTC](https://discuss.bitrise.io/t/how-to-cache-a-tool-which-you-install-during-the-build/23220 "2023-08-29T10:20:29Z")

</div>

The following example shows how Bitrise Key-Value Caching can be used to cache a tool which you install during the build. Why would you want to cache a tool you install during the build? To reduce potential network is…

---

## [Make repo that was cloned available to subsequent stages in a pipeline](https://discuss.bitrise.io/t/make-repo-that-was-cloned-available-to-subsequent-stages-in-a-pipeline/22958)

<div class="topic-metadata">

**Author:** [@jswigut](https://discuss.bitrise.io/u/jswigut)\
**Replies:** 1\
**Last updated:** [June 28, 2023, 10:48am UTC](https://discuss.bitrise.io/t/make-repo-that-was-cloned-available-to-subsequent-stages-in-a-pipeline/22958 "2023-06-28T10:48:26Z")

</div>

pipelines: pipeline-release-all: stages: - stage-setup: {} - stage-test: {} - stage-version-all: {} - stage-publish-all: {} - stage-finish: {} I have this pipeline which calls the git-clone ste…

---

## [How to install cmake using Android sdkmanager?](https://discuss.bitrise.io/t/how-to-install-cmake-using-android-sdkmanager/876)

<div class="topic-metadata">

**Author:** [@viktorbenei](https://discuss.bitrise.io/u/viktorbenei)\
**Replies:** 3\
**Last updated:** [April 5, 2023, 1:04pm UTC](https://discuss.bitrise.io/t/how-to-install-cmake-using-android-sdkmanager/876 "2023-04-05T13:04:03Z")

</div>

You can do this with a simple Script step: (source: Remove pre-installed CMake by viktorbenei · Pull Request #38 · bitrise-io/android-ndk · GitHub ) #!/bin/bash set -ex mkdir -p "${ANDROID\_HOME}/licenses" echo "8933bad…

---

## [How to set Brew 4 to use upstream JSON downloads](https://discuss.bitrise.io/t/how-to-set-brew-4-to-use-upstream-json-downloads/22426)

<div class="topic-metadata">

**Author:** [@tomash](https://discuss.bitrise.io/u/tomash)\
**Replies:** 0\
**Last updated:** [March 23, 2023, 2:06pm UTC](https://discuss.bitrise.io/t/how-to-set-brew-4-to-use-upstream-json-downloads/22426 "2023-03-23T14:06:30Z")

</div>

During regular stack updates in March of 2023, Brew has been upgraded to version 4. Homebrew 4.0.0 There is a significant increase in package repository update speed from their changes, if you require the very latest p…

---

## [Auto-increment app version if the app was approved by AppStore](https://discuss.bitrise.io/t/auto-increment-app-version-if-the-app-was-approved-by-appstore/22392)

<div class="topic-metadata">

**Author:** [@akim89](https://discuss.bitrise.io/u/akim89)\
**Replies:** 1\
**Last updated:** [March 21, 2023, 10:48pm UTC](https://discuss.bitrise.io/t/auto-increment-app-version-if-the-app-was-approved-by-appstore/22392 "2023-03-21T22:48:28Z")

</div>

Hi all, I have two separate numbers for version and build. Let’s say version starts from 1.0.1 and build - 1. We made some multiple updates and now we have build number - 17 and version stays the same - 1.0.1. We send i…

---

## [Integrating AWS CodeCommit with Bitrise](https://discuss.bitrise.io/t/integrating-aws-codecommit-with-bitrise/158)

<div class="topic-metadata">

**Author:** [@viktorbenei](https://discuss.bitrise.io/u/viktorbenei)\
**Replies:** 1\
**Last updated:** [March 16, 2023, 4:29pm UTC](https://discuss.bitrise.io/t/integrating-aws-codecommit-with-bitrise/158 "2023-03-16T16:29:30Z")

</div>

This guide was originally shared at GitHub - danielmklein/AWSCodeCommitBitrise: This repo contains an AWS Lambda script along with an explanation of how to set up your AWS CodeCommit repositories to automatically trigge…

---

## [How to set up for a 2nd Git Clone Repository Step?](https://discuss.bitrise.io/t/how-to-set-up-for-a-2nd-git-clone-repository-step/12899)

<div class="topic-metadata">

**Author:** [@zoeli](https://discuss.bitrise.io/u/zoeli)\
**Replies:** 1\
**Last updated:** [June 2, 2020, 8:12am UTC](https://discuss.bitrise.io/t/how-to-set-up-for-a-2nd-git-clone-repository-step/12899 "2020-06-02T08:12:10Z")

</div>

Hi there, After adding the step to git clone my project, I am trying to add another Git Clone Step to clone the emscripten SDK repo which I will use that emscripten compiler to compile afterwards. But I checked the 2nd …

---

## [Script mkdir cmd permission denied](https://discuss.bitrise.io/t/script-mkdir-cmd-permission-denied/22210)

<div class="topic-metadata">

**Author:** [@abdo400](https://discuss.bitrise.io/u/abdo400)\
**Replies:** 9\
**Last updated:** [February 14, 2023, 8:10pm UTC](https://discuss.bitrise.io/t/script-mkdir-cmd-permission-denied/22210 "2023-02-14T20:10:39Z")

</div>

I am trying to install a custom NDK version. I followed the steps from this post but I got a permission error: + mkdir /opt/android-ndk-tmp mkdir: /opt/android-ndk-tmp: Permission denied exit status 1 For context, I…

---

## [A guide on how to use fastlane and fastlane Match on Bitrise](https://discuss.bitrise.io/t/a-guide-on-how-to-use-fastlane-and-fastlane-match-on-bitrise/22107)

<div class="topic-metadata">

**Author:** [@moataznabil21](https://discuss.bitrise.io/u/moataznabil21)\
**Replies:** 0\
**Last updated:** [January 26, 2023, 10:03am UTC](https://discuss.bitrise.io/t/a-guide-on-how-to-use-fastlane-and-fastlane-match-on-bitrise/22107 "2023-01-26T10:03:43Z")

</div>

Hi everyone, we recently published a blog post about using fastlane and fastlane Match to manage iOS code signing for multiple apps :tada: If you need to manage code signing for more than one app such as 20 or 30 app…

---

## [Configuring network access for Bitrise](https://discuss.bitrise.io/t/configuring-network-access-for-bitrise/21497)

<div class="topic-metadata">

**Author:** [@MadsRoothman](https://discuss.bitrise.io/u/MadsRoothman)\
**Replies:** 0\
**Last updated:** [October 20, 2022, 1:35pm UTC](https://discuss.bitrise.io/t/configuring-network-access-for-bitrise/21497 "2022-10-20T13:35:43Z")

</div>

Depending on your company’s security policy, you may need to configure network access — as well as the type of network access — to use our data centers and the Bitrise website from behind a private network or a firewa…

---

## [How to build different flavors of an Android project](https://discuss.bitrise.io/t/how-to-build-different-flavors-of-an-android-project/4223)

<div class="topic-metadata">

**Author:** [@tamaspapik](https://discuss.bitrise.io/u/tamaspapik)\
**Replies:** 7\
**Last updated:** [October 25, 2022, 1:13pm UTC](https://discuss.bitrise.io/t/how-to-build-different-flavors-of-an-android-project/4223 "2022-10-25T13:13:03Z")

</div>

It might happen that you will have multiple flavors of APKs. Usually gradle makes it very easy to select the flavor of the project by putting the flavor name to the specified place in the gradle task’s name. Here is a s…

---

## [Detect if app in building in Bitrise in project build phase](https://discuss.bitrise.io/t/detect-if-app-in-building-in-bitrise-in-project-build-phase/21188)

<div class="topic-metadata">

**Author:** [@vladimirbakalov](https://discuss.bitrise.io/u/vladimirbakalov)\
**Replies:** 1\
**Last updated:** [September 22, 2022, 10:45pm UTC](https://discuss.bitrise.io/t/detect-if-app-in-building-in-bitrise-in-project-build-phase/21188 "2022-09-22T22:45:52Z")

</div>

I have a build phase script where I want to detect if the app is building locally or in Bitrise, and toggle the path to the Info.plist accordingly. I have tried that approach but it doesn’t seem to work. Any ideas? #!/…

---

## [Detect merge conflicts early](https://discuss.bitrise.io/t/detect-merge-conflicts-early/8093)

<div class="topic-metadata">

**Author:** [@jpalten](https://discuss.bitrise.io/u/jpalten)\
**Replies:** 6\
**Last updated:** [July 18, 2022, 10:24pm UTC](https://discuss.bitrise.io/t/detect-merge-conflicts-early/8093 "2022-07-18T22:24:28Z")

</div>

I added a script in my workflow, to make merge conflicts visible early in the development process. Perhaps this can help others too. For each commit, I’d like to know if it could cause merge conflicts to (in my case) d…

---

## [How to Cache the Source Code directory](https://discuss.bitrise.io/t/how-to-cache-the-source-code-directory/1533)

<div class="topic-metadata">

**Author:** [@viktorbenei](https://discuss.bitrise.io/u/viktorbenei)\
**Replies:** 10\
**Last updated:** [June 3, 2022, 11:52am UTC](https://discuss.bitrise.io/t/how-to-cache-the-source-code-directory/1533 "2022-06-03T11:52:06Z")

</div>

Bitrise does not do automatic git/source code caching, unless you configure it for yourself. This is part of our Security policy too (that we don’t store your code and we never access it outside of the ephemeral build VM…

---

## [How to experiment with Bitrise configs locally, on your Mac/Linux](https://discuss.bitrise.io/t/how-to-experiment-with-bitrise-configs-locally-on-your-mac-linux/1751)

<div class="topic-metadata">

**Author:** [@viktorbenei](https://discuss.bitrise.io/u/viktorbenei)\
**Replies:** 22\
**Last updated:** [April 13, 2022, 7:05am UTC](https://discuss.bitrise.io/t/how-to-experiment-with-bitrise-configs-locally-on-your-mac-linux/1751 "2022-04-13T07:05:22Z")

</div>

Do you want to run a custom Script in your builds, or do you want to experiment with things you just found on the DevCenter, but would love to make the process faster? If you do, this is the right place for you! It’s a…

---

## [How to configure bitrise to access an internally hosted git repository](https://discuss.bitrise.io/t/how-to-configure-bitrise-to-access-an-internally-hosted-git-repository/85)

<div class="topic-metadata">

**Author:** [@viktorbenei](https://discuss.bitrise.io/u/viktorbenei)\
**Replies:** 17\
**Last updated:** [December 17, 2021, 5:06pm UTC](https://discuss.bitrise.io/t/how-to-configure-bitrise-to-access-an-internally-hosted-git-repository/85 "2021-12-17T17:06:05Z")

</div>

In general you have a couple of options to securely connect to a private repository: Only allow SSH login on the repository server; SSH keys are fully supported on bitrise.io Restrict by IP: configure your server to …

---

## [How-to run Android tests on Firebase TestLab](https://discuss.bitrise.io/t/how-to-run-android-tests-on-firebase-testlab/2192)

<div class="topic-metadata">

**Author:** [@tamaspapik](https://discuss.bitrise.io/u/tamaspapik)\
**Replies:** 16\
**Last updated:** [September 15, 2021, 7:47am UTC](https://discuss.bitrise.io/t/how-to-run-android-tests-on-firebase-testlab/2192 "2021-09-15T07:47:30Z")

</div>

On Android stacks we have the gcloud and gsutil tools pre-installed, this guide is based on these tools. If you want to use it on other stacks, you will need to install these first. ###What you’ll need a Google Cloud…

---

## [How to override environment variables through the Build Trigger API](https://discuss.bitrise.io/t/how-to-override-environment-variables-through-the-build-trigger-api/191)

<div class="topic-metadata">

**Author:** [@viktorbenei](https://discuss.bitrise.io/u/viktorbenei)\
**Replies:** 10\
**Last updated:** [June 3, 2021, 11:39am UTC](https://discuss.bitrise.io/t/how-to-override-environment-variables-through-the-build-trigger-api/191 "2021-06-03T11:39:42Z")

</div>

Environment Variables are set (processed) in a specific order. An environment variable processed before another one can’t override the second one, but the second one can use the first one. If you use the Build Trigger A…

---

## [Git: force to use SSH URL instead of HTTPS for github.com](https://discuss.bitrise.io/t/git-force-to-use-ssh-url-instead-of-https-for-github-com/4384)

<div class="topic-metadata">

**Author:** [@viktorbenei](https://discuss.bitrise.io/u/viktorbenei)\
**Replies:** 2\
**Last updated:** [May 18, 2021, 11:04am UTC](https://discuss.bitrise.io/t/git-force-to-use-ssh-url-instead-of-https-for-github-com/4384 "2021-05-18T11:04:43Z")

</div>

You can instruct git to use the SSH git clone url (git@...) instead of HTTPS one (https://) in every case. Regardless of whether e.g. your CocoaPods spec includes the SSH or HTTPS github.com git clone url git will alway…

---

## [How to cache Gradle dependencies](https://discuss.bitrise.io/t/how-to-cache-gradle-dependencies/194)

<div class="topic-metadata">

**Author:** [@viktorbenei](https://discuss.bitrise.io/u/viktorbenei)\
**Replies:** 20\
**Last updated:** [March 1, 2021, 8:28am UTC](https://discuss.bitrise.io/t/how-to-cache-gradle-dependencies/194 "2021-03-01T08:28:42Z")

</div>

Setup Put the Cache:Pull step after the Git Clone step Put the Cache:Push step to the very end of the Workflow If you use v1.0 or newer of the Cache steps and the latest Gradle Runner step then that’s all you have to d…

---

## [How to avoid deadlocks using the API](https://discuss.bitrise.io/t/how-to-avoid-deadlocks-using-the-api/15675)

<div class="topic-metadata">

**Author:** [@jcyu0208](https://discuss.bitrise.io/u/jcyu0208)\
**Replies:** 1\
**Last updated:** [February 24, 2021, 3:54pm UTC](https://discuss.bitrise.io/t/how-to-avoid-deadlocks-using-the-api/15675 "2021-02-24T15:54:55Z")

</div>

How to check the number of concurrency available for a build? In the post that discusses how to fan out steps in a workflow, there was a mention about avoiding deadlocks and a brief description of a solution. Which par…

---

## [How to cache Carthage dependencies](https://discuss.bitrise.io/t/how-to-cache-carthage-dependencies/197)

<div class="topic-metadata">

**Author:** [@viktorbenei](https://discuss.bitrise.io/u/viktorbenei)\
**Replies:** 14\
**Last updated:** [December 18, 2020, 4:04pm UTC](https://discuss.bitrise.io/t/how-to-cache-carthage-dependencies/197 "2020-12-18T16:04:59Z")

</div>

Setup (If not already added) Add the Cache:Pull step after the Git Clone step Add the Cache:Push step to the very end of the Workflow If you use v1.0 or newer of the Cache steps and the latest Carthage step then that’…

[Next page](https://discuss.bitrise.io/c/how-to/5.md?page=1)
