1+ # yaml-language-server: $schema=https://raw.githubusercontent.com/buildkite/pipeline-schema/main/schema.json
2+ ---
3+
14# Nodes with values to reuse in the pipeline.
25common_params :
3- # Common plugin settings to use with the `plugins` key.
4- - &ci_toolkit
5- automattic/a8c-ci-toolkit#2.18.2
6- - &test_collector
7- test-collector#v1.8.0
86 - &test_collector_common_params
97 files : " buildkite-test-analytics/*.xml"
108 format : " junit"
1917 - label : " Gradle Wrapper Validation"
2018 command : |
2119 validate_gradle_wrapper
22- plugins : [*ci_toolkit ]
20+ plugins : [$CI_TOOLKIT ]
2321
2422 # Wait for Gradle Wrapper to be validated before running any other jobs
2523 - wait
@@ -43,15 +41,15 @@ steps:
4341 command : |
4442 cp gradle.properties-example gradle.properties
4543 ./gradlew checkstyle
46- plugins : [*ci_toolkit ]
44+ plugins : [$CI_TOOLKIT ]
4745 artifact_paths :
4846 - " **/build/reports/checkstyle/checkstyle.*"
4947
5048 - label : " 🕵️ detekt"
5149 command : |
5250 cp gradle.properties-example gradle.properties
5351 ./gradlew detekt
54- plugins : [*ci_toolkit ]
52+ plugins : [$CI_TOOLKIT ]
5553 artifact_paths :
5654 - " **/build/reports/detekt/detekt.html"
5755
7068 cp gradle.properties-example gradle.properties
7169 .buildkite/commands/dependency-tree-diff.sh
7270 if : build.pull_request.id != null
73- plugins : [*ci_toolkit ]
71+ plugins : [$CI_TOOLKIT ]
7472
7573 # ################
7674 # Unit Tests
8078 - label : " 🔬 Unit Test WordPress"
8179 command : " .buildkite/commands/run-unit-tests.sh wordpress"
8280 plugins :
83- - *ci_toolkit
84- - *test_collector :
81+ - $CI_TOOLKIT
82+ - $TEST_COLLECTOR :
8583 << : *test_collector_common_params
8684 api-token-env-name : " BUILDKITE_ANALYTICS_TOKEN_UNIT_TESTS_WORDPRESS"
8785 artifact_paths :
9088 - label : " 🔬 Unit Test Processors"
9189 command : " .buildkite/commands/run-unit-tests.sh processors"
9290 plugins :
93- - *ci_toolkit
94- - *test_collector :
91+ - $CI_TOOLKIT
92+ - $TEST_COLLECTOR :
9593 << : *test_collector_common_params
9694 api-token-env-name : " BUILDKITE_ANALYTICS_TOKEN_UNIT_TESTS_PROCESSORS"
9795 artifact_paths :
@@ -100,8 +98,8 @@ steps:
10098 - label : " 🔬 Unit Test Image Editor"
10199 command : " .buildkite/commands/run-unit-tests.sh image-editor"
102100 plugins :
103- - *ci_toolkit
104- - *test_collector :
101+ - $CI_TOOLKIT
102+ - $TEST_COLLECTOR :
105103 << : *test_collector_common_params
106104 api-token-env-name : " BUILDKITE_ANALYTICS_TOKEN_UNIT_TESTS_IMAGE_EDITOR"
107105 artifact_paths :
@@ -115,8 +113,8 @@ steps:
115113 - label : " :wordpress: 🔬 Instrumented tests"
116114 command : " .buildkite/commands/run-instrumented-tests.sh wordpress"
117115 plugins :
118- - *ci_toolkit
119- - *test_collector :
116+ - $CI_TOOLKIT
117+ - $TEST_COLLECTOR :
120118 << : *test_collector_common_params
121119 api-token-env-name : " BUILDKITE_ANALYTICS_TOKEN_INSTRUMENTED_TESTS_WORDPRESS"
122120 artifact_paths :
@@ -125,8 +123,8 @@ steps:
125123 - label : " :jetpack: 🔬 Instrumented tests"
126124 command : " .buildkite/commands/run-instrumented-tests.sh jetpack"
127125 plugins :
128- - *ci_toolkit
129- - *test_collector :
126+ - $CI_TOOLKIT
127+ - $TEST_COLLECTOR :
130128 << : *test_collector_common_params
131129 api-token-env-name : " BUILDKITE_ANALYTICS_TOKEN_INSTRUMENTED_TESTS_JETPACK"
132130 artifact_paths :
@@ -140,9 +138,9 @@ steps:
140138 - label : " :wordpress: :android: Prototype Build"
141139 command : " .buildkite/commands/prototype-build.sh wordpress"
142140 if : build.pull_request.id != null
143- plugins : [*ci_toolkit ]
141+ plugins : [$CI_TOOLKIT ]
144142
145143 - label : " :jetpack: :android: Prototype Build"
146144 command : " .buildkite/commands/prototype-build.sh jetpack"
147145 if : build.pull_request.id != null
148- plugins : [*ci_toolkit ]
146+ plugins : [$CI_TOOLKIT ]
0 commit comments