3
3
4
4
# Nodes with values to reuse in the pipeline.
5
5
common_params :
6
- # Common plugin settings to use with the `plugins` key.
7
- - &common_plugins
8
- - automattic/a8c-ci-toolkit#2.15.0
9
6
# Common artifact paths used across steps
10
7
- &artifact_paths
11
8
- " **/build/test-results/**/*"
21
18
- label : " Gradle Wrapper Validation"
22
19
command : |
23
20
validate_gradle_wrapper
24
- plugins : *common_plugins
21
+ plugins : [$CI_TOOLKIT]
25
22
notify :
26
23
- github_commit_status :
27
24
context : " Gradle Wrapper Validation"
40
37
cp gradle.properties-example gradle.properties && cp -a example/properties-example/ example/properties/
41
38
./gradlew checkstyle
42
39
artifact_paths : *artifact_paths
43
- plugins : *common_plugins
40
+ plugins : [$CI_TOOLKIT]
44
41
notify :
45
42
- github_commit_status :
46
43
context : " checkstyle"
50
47
cp gradle.properties-example gradle.properties && cp -a example/properties-example/ example/properties/
51
48
./gradlew detekt
52
49
artifact_paths : *artifact_paths
53
- plugins : *common_plugins
50
+ plugins : [$CI_TOOLKIT]
54
51
notify :
55
52
- github_commit_status :
56
53
context : " detekt"
61
58
./gradlew lintRelease || (grep -A20 -B2 'severity="Error"' */build/**/*.xml; exit 1);
62
59
find . -iname "*XMLRPCClient*java" | xargs grep getSiteId && (echo "You should not use _getSiteId_ in a XMLRPClient, did you mean _selfHostedId_?" && exit 1) || exit 0;
63
60
artifact_paths : *artifact_paths
64
- plugins : *common_plugins
61
+ plugins : [$CI_TOOLKIT]
65
62
notify :
66
63
- github_commit_status :
67
64
context : " Lint"
@@ -75,15 +72,15 @@ steps:
75
72
- label : " 🔬 Unit Test"
76
73
command : .buildkite/unit-tests.sh
77
74
artifact_paths : *artifact_paths
78
- plugins : *common_plugins
75
+ plugins : [$CI_TOOLKIT]
79
76
notify :
80
77
- github_commit_status :
81
78
context : " Unit Test"
82
79
83
80
- label : " 🔬 WooCommerce Tests"
84
81
command : .buildkite/woocommerce-tests.sh
85
82
artifact_paths : *artifact_paths
86
- plugins : *common_plugins
83
+ plugins : [$CI_TOOLKIT]
87
84
notify :
88
85
- github_commit_status :
89
86
context : " WooCommerce Tests"
95
92
key : connected-tests
96
93
command : .buildkite/connected-tests.sh
97
94
artifact_paths : *artifact_paths
98
- plugins : *common_plugins
95
+ plugins : [$CI_TOOLKIT]
99
96
notify :
100
97
- github_commit_status :
101
98
context : " Publish :fluxc-build-connected-tests"
@@ -112,7 +109,7 @@ steps:
112
109
- label : " 🚀 Publish :fluxc-annotations"
113
110
key : " publish-fluxc-annotations"
114
111
command : .buildkite/publish-fluxc-annotations.sh
115
- plugins : *common_plugins
112
+ plugins : [$CI_TOOLKIT]
116
113
notify :
117
114
- github_commit_status :
118
115
context : " Publish :fluxc-annotations"
@@ -122,7 +119,7 @@ steps:
122
119
depends_on :
123
120
- " publish-fluxc-annotations"
124
121
command : .buildkite/publish-fluxc-processor.sh
125
- plugins : *common_plugins
122
+ plugins : [$CI_TOOLKIT]
126
123
notify :
127
124
- github_commit_status :
128
125
context : " Publish :fluxc-processor"
@@ -133,7 +130,7 @@ steps:
133
130
- " publish-fluxc-processor"
134
131
- " publish-fluxc-annotations"
135
132
command : .buildkite/publish-fluxc.sh
136
- plugins : *common_plugins
133
+ plugins : [$CI_TOOLKIT]
137
134
notify :
138
135
- github_commit_status :
139
136
context : " Publish :fluxc"
@@ -145,7 +142,7 @@ steps:
145
142
- " publish-fluxc-annotations"
146
143
- " publish-fluxc"
147
144
command : .buildkite/publish-plugins-woocommerce.sh
148
- plugins : *common_plugins
145
+ plugins : [$CI_TOOLKIT]
149
146
notify :
150
147
- github_commit_status :
151
148
context : " Publish :plugins:woocommerce"
0 commit comments