Skip to content

Commit fcce867

Browse files
committed
Adding updated information on using the build service
1 parent 243d0cd commit fcce867

File tree

4 files changed

+31
-1
lines changed

4 files changed

+31
-1
lines changed

Diff for: docs/pipelines/scripts/git-commands.md

+31-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ ms.custom: seodec18
44
description: Learn how you can run a Git command in a build script for your workflow by using Azure Pipelines or Team Foundation Server (TFS)
55
ms.topic: conceptual
66
ms.assetid: B5481254-F39C-4F1C-BE98-44DC0A95F2AD
7-
ms.date: 03/22/2019
7+
ms.date: 12/22/2020
88
monikerRange: '>= tfs-2015'
99
---
1010

@@ -36,6 +36,34 @@ Git is available on [Microsoft-hosted agents](../agents/hosted.md) and on [on-pr
3636
3737
### Grant version control permissions to the build service
3838
39+
::: moniker range=">= azure-devops-2020"
40+
41+
1. Go to the project settings page for your organization at **Organization Settings** > **General** > **Projects**.
42+
43+
:::image type="content" source="media/organization-project-settings.png" alt-text="Select your organization settings. ":::
44+
45+
1. Select the project you want to edit.
46+
47+
:::image type="content" source="media/select-project.png" alt-text="Select your project. ":::
48+
49+
1. Within **Project Settings**, select **Repositories** in the navigation. Select the repository in which you want to run Git commands
50+
51+
1. Select **Permissions** to edit your repository permissions.
52+
53+
:::image type="content" source="media/modify-repo-permissions.png" alt-text="Choose Permissions to edit your repository permissions. ":::
54+
55+
1. Search for **Project Collection Build Service**. By default, this identity can read from the repo but cannot push any changes back to it. Grant permissions needed for the Git commands you want to run. Typically you'll want to grant:
56+
57+
* **Create branch:** Allow
58+
* **Contribute:** Allow
59+
* **Read:** Allow
60+
* **Create tag:** Allow
61+
62+
63+
::: moniker-end
64+
65+
::: moniker range="<= azure-devops-2019"
66+
3967
Go to the <a data-toggle="collapse" href="#expando-version-control-permissions">Version Control control panel tab &#x25BC;</a>
4068
4169
<div class="collapse" id="expando-version-control-permissions">
@@ -81,6 +109,8 @@ Grant permissions needed for the Git commands you want to run. Typically you'll
81109
82110
When you're done granting the permissions, make sure to click **Save changes**.
83111
112+
::: moniker-end
113+
84114
::: moniker range="< tfs-2018"
85115
86116
### Enable your pipeline to run command-line Git
11.8 KB
Loading
6.25 KB
Loading

Diff for: docs/pipelines/scripts/media/select-project.png

6.74 KB
Loading

0 commit comments

Comments
 (0)