Skip to content
代码片段 群组 项目
未验证 提交 428327f3 编辑于 作者: Kosuke Kamiya's avatar Kosuke Kamiya 提交者: GitLab
浏览文件

Fix overwriting the SOURCE_CODE variable in Code Quality

This change fixes overwrite of SOURCE_CODE environment variable.

Changelog: fixed
上级 4449adc1
No related branches found
No related tags found
无相关合并请求
......@@ -254,7 +254,7 @@ Code Quality can be customized by defining available CI/CD variables:
| `ENGINE_MEMORY_LIMIT_BYTES` | Set the memory limit for engines. Default: 1,024,000,000 bytes. |
| `REPORT_STDOUT` | Set to print the report to `STDOUT` instead of generating the usual report file. |
| `REPORT_FORMAT` | Set to control the format of the generated report file. Either `json` or `html`. |
| `SOURCE_CODE` | Path to the source code to scan. |
| `SOURCE_CODE` | Path to the source code to scan. Must be the absolute path to a directory where cloned sources are stored. |
| `TIMEOUT_SECONDS` | Custom timeout per engine container for the `codeclimate analyze` command. Default: 900 seconds (15 minutes) |
## Output
......
......@@ -15,7 +15,7 @@ code_quality:
DOCKER_SOCKET_PATH: /var/run/docker.sock
needs: []
script:
- export SOURCE_CODE=$PWD
- export SOURCE_CODE=${SOURCE_CODE:-$PWD}
- |
if ! docker info &>/dev/null; then
if [ -z "$DOCKER_HOST" ] && [ -n "$KUBERNETES_PORT" ]; then
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册