Skip to content
Success

Changes

Summary

  1. Fix building tiflash using clang-17 docker image (#2712) (commit: a5cf22b) (details)
Commit a5cf22bf24f75eed22f5d0df22438f0d7cff8719 by noreply
Fix building tiflash using clang-17 docker image (#2712)

Try to build tiflash using clang-17 docker image
https://github.com/pingcap/tiflash/pull/8537

But the CI will run into errors like
https://ci.pingcap.net/job/tiflash-build-common/33843/console
```
[2023-12-30T15:06:42.887Z] + git log -1 --format=%H
[2023-12-30T15:06:42.887Z] fatal: detected dubious ownership in repository at '/home/jenkins/agent/workspace/tiflash-build-common/tiflash/contrib/tiflash-proxy'
[2023-12-30T15:06:42.887Z] To add an exception for this directory, call:
```
```
23:16:59  fatal: detected dubious ownership in repository at '/home/jenkins/agent/workspace/tiflash-build-common/tiflash'
23:16:59  To add an exception for this directory, call:
23:16:59 
23:16:59  git config --global --add safe.directory /home/jenkins/agent/workspace/tiflash-build-common/tiflash
23:16:59  CMake Error at dbms/cmake/version.cmake:20 (execute_process):
23:16:59    execute_process failed command indexes:
23:16:59 
23:16:59      1: "Child return code: 128"
23:16:59 
23:16:59  Call Stack (most recent call first):
23:16:59    dbms/CMakeLists.txt:25 (include)
```

Add git safe.directory to workaround the errors. After these changes,
the pipeline can build tiflash with clang-17 successfully:
https://ci.pingcap.net/job/tiflash-build-common/33844/consoleFull

Signed-off-by: JaySon-Huang <tshent@qq.com>
(commit: a5cf22b)
The file was modifiedjenkins/pipelines/ci/tiflash/tiflash-build-common.groovy (diff)