Skip to content

Commit ac1ca20

Browse files
authored
Merge pull request DataDog#15976 from DataDog/albertvaka/ci-mandatory-git-metadata
[CI] Manual git metadata: mention mandatory fields
2 parents 2fafa08 + a14db7b commit ac1ca20

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

content/en/continuous_integration/troubleshooting.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,14 @@ If you can see test results data in the **Test Runs** tab, but not the **Tests**
3333
2. Next, tracers fetch Git metadata using the local `.git` folder, if present, by executing `git` commands. This populates all Git metadata fields, including commit message, author, and committer information. Ensure the `.git` folder is present and the `git` binary is installed and in `$PATH`. This information is used to populate attributes not detected in the previous step.
3434
3. You can also provide Git information manually using environment variables, which override information detected by any of the previous steps. The supported environment variables for providing Git information are the following:
3535

36-
`DD_GIT_REPOSITORY_URL`
36+
`DD_GIT_REPOSITORY_URL` **(required)**
3737
: URL of the repository where the code is stored. Both HTTP and SSH URLs are supported.<br/>
3838
**Example**: `git@github.com:MyCompany/MyApp.git`, `https://github.com/MyCompany/MyApp.git`
3939

40+
`DD_GIT_COMMIT_SHA` **(required)**
41+
: Full (40-character long SHA1) commit hash.<br/>
42+
**Example**: `a18ebf361cc831f5535e58ec4fae04ffd98d8152`
43+
4044
`DD_GIT_BRANCH`
4145
: Git branch being tested. Leave empty if providing tag information instead.<br/>
4246
**Example**: `develop`
@@ -45,10 +49,6 @@ If you can see test results data in the **Test Runs** tab, but not the **Tests**
4549
: Git tag being tested (if applicable). Leave empty if providing branch information instead.<br/>
4650
**Example**: `1.0.1`
4751

48-
`DD_GIT_COMMIT_SHA`
49-
: Full commit hash.<br/>
50-
**Example**: `a18ebf361cc831f5535e58ec4fae04ffd98d8152`
51-
5252
`DD_GIT_COMMIT_MESSAGE`
5353
: Commit message.<br/>
5454
**Example**: `Set release number`

0 commit comments

Comments
 (0)