-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathci_analyzer.yaml
96 lines (92 loc) · 3.93 KB
/
ci_analyzer.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
# yaml-language-server: $schema=https://raw.githubusercontent.com/Kesin11/CIAnalyzer/master/schema.json
# This is sample CIAnalyzer config yaml.
# Copy it and change to your config.
# Also you don't forget copy Line 1 magic comment. You can given validating and completion support from vscode-yaml extension!
github:
# baseUrl: https://api.github.com # Change it if you using GitHub Enterprise Server
repos:
- name: Kesin11/CIAnalyzer
tests:
- '**/*.xml' # Test report JUnit XML path in artifact that uploaded by actions/upload-artifact
customReports:
- name: $CUSTOM_REPORT_NAME # It must be same bigquery.customReports[].name
paths:
- 'custom_report.json' # Path at inside of artifact.
- Kesin11/ts-junit2json # Can use abbr format if don't collect test report
exporter: &exporter # Can use yaml anchor
local:
outDir: ./output # default: output
format: json # default: json. 'json' and 'json_lines' are supported.
bigquery:
project: $GCP_PROJECT_ID
dataset: $DATASET
reports:
- name: workflow
table: $WORKFLOW_TABLE
- name: test_report
table: $TEST_REPORT_TABLE
customReports:
- name: $CUSTOM_REPORT_NAME # It must be same repos[].customReports[].name
table: $CUSTOM_REPORT_TABLE
schema: ./$SCHEMA_DIR/$CUSTOM_REPORT_TABLE_SCHEMA.json # It accepts absolute path or relative path from this config yaml.
maxBadRecords: 0 # (Optional) default: 0. If set > 0, skip bad record. This option should only be used for workaround.
gcs:
project: $GCP_PROJECT_ID
bucket: $BUCKET_NAME
# {reportType} placeholder is Required.
# {YYYY}, {MM}, {DD} placeholders are optional.
# If you want to use BigQuery external tables, the GCS path should be in a format supported by Hive partitions like this
prefixTemplate: "ci_analyzer/{reportType}/dt={YYYY}-{MM}-{DD}/"
lastRunStore:
backend: gcs # Recommend using 'gcs' backend
project: $GCP_PROJECT_ID
bucket: $BUCKET_NAME
path: ci_analyzer/last_run/github.json # (Optional) default: ci_analyzer/last_run/${service}.json
circleci:
# baseUrl: https://circleci.com/api/ # Change it if you using CircleCI Enterprise
version: 2
repos:
- Kesin11/CIAnalyzer # Can use abbr format
- name: Kesin11/CIAnalyzer
vcs_type: github # github or bitbucket. default: github
customReports:
- name: $CUSTOM_REPORT_NAME
paths:
- 'custom_report.json'
vcsBaseUrl:
# Using for collect git tag data. **Currently only support github**
github: https://api.github.com # Change it if you using GitHub Enterprise Server
exporter: *exporter # Can use yaml anchor
lastRunStore:
backend: local # 'local' backend is not recommended but it useful for debug
path: .ci_analyzer/last_run/circleci.json # default: .ci_analyzer/last_run/${service}.json
jenkins:
baseUrl: http://localhost:8080 # Your jenkins url
collectAllJobs: # Enable collect all pipeline jobs
filterLastBuildDay: 30 # Filter by last build day. default: 30
isRecursively: false # Also collect jobs under folders. default: false
jobs: # Job names in your Jenkins
- name: ci_analyzer
tests:
- 'junit/junit.xml' # Test report JUnit XML path in artifact
customReports:
- name: $CUSTOM_REPORT_NAME
paths:
- 'custom.json'
- ci_analyzer_pull_request
exporter: *exporter
# If 'lastRunStore' is omitted, local backend is used
bitrise:
baseUrl: https://api.bitrise.io/v0.1 # default
apps:
# {repo_owner}/{title} from https://api.bitrise.io/v0.1/apps API response
# see: https://api-docs.bitrise.io/
- name: Kesin11/FlutterGettingStarted
tests:
- "*_test_results.xml"
customReports:
- name: $CUSTOM_REPORT_NAME
paths:
- 'custom_*.json'
- Kesin11/FlutterGettingStarted2 # Can use abbr format
exporter: *exporter