Skip to content

Commit 81defe2

Browse files
authored
Merge pull request #1242 from bensonhome/main
🎨update .cnb.yml, change to incr scan
2 parents b6c7335 + 493aa3c commit 81defe2

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

.cnb.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
# .cnb.yml
22
"**": # 触发的分支名,默认所有分支,按需修改
3-
push: # push触发,也可以用merge_request等触发
4-
# - docker:
5-
# # 该模式无需缓存
6-
# # 声明缓存目录,/data/tca_cache/tools 为TCA 工具存储目录
7-
# volumes:
8-
# - /data/tca_cache/tools:copy-on-write
3+
push: # push 触发,可按需修改为 pull_request 等
94
- stages:
5+
# 获取 git 变更文件列表,供TCA增量分析使用
6+
- name: git-change-list
7+
image: cnbcool/git-change-list:latest
8+
settings:
9+
# 变更文件列表输出到文件中
10+
changed: changed.txt
1011
# 代码分析
1112
- name: TCA
1213
image: tencentcom/tca-plugin:latest
1314
settings:
15+
from_file: changed.txt
1416
block: false

0 commit comments

Comments
 (0)