Skip to content

Commit

Permalink
Git mirror cache for Mac minor wording and formatting tweaks.
Browse files Browse the repository at this point in the history
  • Loading branch information
gilesgas committed Sep 11, 2024
1 parent 97da0ea commit 5363890
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
8 changes: 4 additions & 4 deletions pages/pipelines/hosted_agents/linux.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ steps:
```
{: codeblock-file="pipeline.yml"}
Required attributes:
#### Required attributes
<table data-attributes data-attributes-required>
<tr>
Expand All @@ -86,7 +86,7 @@ Required attributes:
</tr>
</table>
Optional attributes:
#### Optional attributes
<table data-attributes data-attributes-required>
<tr>
Expand All @@ -100,7 +100,7 @@ Optional attributes:
<tr>
<td><code>size</code></td>
<td>
The size of the cache volume. The default size is 20 gigabytes. A minimum of 20 gigabytes of cache can be requested.<br> Units are in gigabytes, specified as <code>Ng</code>, where <code>N</code> is the size in gigabytes, and <code>g</code> indicates gigabytes.<br>
The size of the cache volume. The default size is 20 gigabytes, which is also the minimum cache size that can be requested.<br/>Units are in gigabytes, specified as <code>Ng</code>, where <code>N</code> is the size in gigabytes, and <code>g</code> indicates gigabytes.<br>
<em>Example:</em> <code>"20g"</code><br>
</td>
</tr>
Expand Down Expand Up @@ -128,7 +128,7 @@ An additional (smaller) charge is made per gigabyte of _active cache_, where act

### Git mirror cache

The Git mirror cache is a special type of cache volume that is used to speed up Git operations by caching the Git repository between builds. This is useful for large repositories that are slow to clone.
The Git mirror cache is a specialized type of cache volume designed to accelerate Git operations by caching the Git repository between builds. This is useful for large repositories that are slow to clone.

Git mirror caching can be enabled on the cluster's cache volumes settings page. Once enabled, the Git mirror cache will be used for all hosted jobs in that cluster. A separate cache volume will be created for each repository.

Expand Down
8 changes: 5 additions & 3 deletions pages/pipelines/hosted_agents/mac.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,14 +155,16 @@ Updated Xcode versions will be available one week after Apple offers them for do

## Git mirror cache

The Git mirror cache is a specialized type of cache volume designed to accelerate Git operation by caching the Git repository between builds. This is useful for large repositories that are slow to clone. These volumes are attached on a best-effort basis depending on their locality, expiration and current usage, and therefore, should not be relied upon as durable data storage. By default, a Git mirror cache is created for each repository.
The Git mirror cache is a specialized type of cache volume designed to accelerate Git operations by caching the Git repository between builds. This is useful for large repositories that are slow to clone.

These volumes are attached on a best-effort basis depending on their locality, expiration and current usage, and therefore, should not be relied upon as durable data storage. By default, a Git mirror cache is created for each repository.

### Enabling Git mirror cache

To enable Git mirror cache for your hosted agents:

1. Select **Agents** in the global navigation to access the **Clusters** page.
1. Select the cluster in which to enable Git mirror cache.
1. Select the cluster in which to enable the Git mirror cache feature.
1. Select **Cache Storage**, then select the **Settings** tab.
1. Select **Enable Git mirror**, then select **Save cache settings** to enable Git mirrors for the selected hosted cluster.

Expand All @@ -177,7 +179,7 @@ Deleting a cache volume may affect the build time for the associated pipelines u
To delete a git mirror cache:

1. Select **Agents** in the global navigation to access the **Clusters** page.
1. Select the cluster in which to delete Git mirror cache.
1. Select the cluster whose Git mirror cache is to be deleted.
1. Select **Cache Storage**, then select the **Volumes** tab to view a list of all exiting cache volumes.
1. Select **Delete** for the Git mirror cache volume you wish to remove.
1. Confirm the deletion by selecting **Delete Cache Volume**.

0 comments on commit 5363890

Please sign in to comment.