# Build preparation stage

The Build preparation stage is an optional step executed right before reading the [Analyses configuration](/configuration-file/analyses-configuration-file.md), hence before running the analyses.

If a **Global configuration** is used, this stage is executed only if the `Build preparation` stage is enabled in the Project settings:

![](/files/-Me-MX0t2lx1NgCGLQIO)

If a **Committed configuration** is used, this stage is executed only if a `.trustinsoft/prepare.sh` file is committed in the analyzed branch/tag/pull request of the GitHub repository.

During this stage, the build preparation script is run with the following specifications:

* The current working directory is:
  * the repository's root for **Global configurations**
  * the`.trustinsoft/` directory at the repository's root for **Committed configurations**
* On an Ubuntu 18.04 distribution
* With GNU bash, version 4.4
* Limited to 30 minutes of execution
* Some programs (such as `bear`,`cmake`, `autoconf`, ...) are already installed and available
* Network access is enable to:
  * install any other required packages/programs
  * clone other repositories to make other source files available for analyses

{% hint style="info" %}
With a **Committed configuration**, the Build preparation script can also be used to generate the [Analyses configuration](/configuration-file/analyses-configuration-file.md) file!
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.ci.trust-in-soft.com/configuration-file/build-preparation-script.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
