Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-10-02 12:10:55 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-10-02 12:10:55 +0300
commitbba49a3dbb8f62b545ec3275995f440c6d435a36 (patch)
tree639fda025038cab649aeadc87d5abe07d6b4f0d2
parentc0dfc72fec6ff5a32997a2ff87de6ce63be6c0b9 (diff)
Add latest changes from gitlab-org/gitlab@master
-rw-r--r--doc/ci/yaml/Screenshot 2023-09-28 at 13.01.18-fs8.pngbin0 -> 15205 bytes
-rw-r--r--doc/ci/yaml/script.md12
2 files changed, 12 insertions, 0 deletions
diff --git a/doc/ci/yaml/Screenshot 2023-09-28 at 13.01.18-fs8.png b/doc/ci/yaml/Screenshot 2023-09-28 at 13.01.18-fs8.png
new file mode 100644
index 00000000000..39a13bd7bc0
--- /dev/null
+++ b/doc/ci/yaml/Screenshot 2023-09-28 at 13.01.18-fs8.png
Binary files differ
diff --git a/doc/ci/yaml/script.md b/doc/ci/yaml/script.md
index 71b9e9fbe0b..4d9befb2ae7 100644
--- a/doc/ci/yaml/script.md
+++ b/doc/ci/yaml/script.md
@@ -340,3 +340,15 @@ Resolve this by either:
"Authorization: Bearer $CI_JOB_TOKEN" \
"${CI_API_V4_URL}/job")
```
+
+### Job log output is not formatted as expected or contains unexpected characters
+
+Sometimes the formatting in the job log displays incorrectly with tools that rely on the `TERM` environment variable for coloring or formatting. For example, with the `mypy` command:
+
+![Example output](<Screenshot 2023-09-28 at 13.01.18-fs8.png>)
+
+GitLab Runner runs the container's shell in non-interactive mode, so the shell's `TERM`
+environment variable is set to `dumb`. To fix the formatting for these tools, you can:
+
+- Add an additional script line to set `TERM=ansi` in the shell's environment before running the command.
+- Add a `TERM` [CI/CD variable](../variables/index.md) with a value of `ansi`.