Skip to content

Commit 9e96462

Browse files
committed
CI: Use shared buildkite pipeline vars file
1 parent 35e17ad commit 9e96462

File tree

3 files changed

+16
-20
lines changed

3 files changed

+16
-20
lines changed

.buildkite/pipeline.yml

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,14 @@
11
# yaml-language-server: $schema=https://raw.githubusercontent.com/buildkite/pipeline-schema/main/schema.json
22
---
33

4-
common_params:
5-
# Common plugin settings to use with the `plugins` key.
6-
- &common_plugins
7-
- automattic/a8c-ci-toolkit#3.4.2
8-
94
agents:
105
queue: "android"
116

127
steps:
138
- label: "Gradle Wrapper Validation"
149
command: |
1510
validate_gradle_wrapper
16-
plugins: *common_plugins
11+
plugins: [$CI_TOOLKIT]
1712

1813
# Wait for Gradle Wrapper to be validated before running any other jobs
1914
- wait
@@ -22,12 +17,12 @@ steps:
2217
key: "detekt"
2318
command: |
2419
./gradlew detekt
25-
plugins: *common_plugins
20+
plugins: [$CI_TOOLKIT]
2621
artifact_paths:
2722
- "**/build/reports/detekt/detekt.html"
2823
- label: "lint"
2924
key: "lint"
30-
plugins: *common_plugins
25+
plugins: [$CI_TOOLKIT]
3126
command: |
3227
./gradlew lintRelease
3328
artifact_paths:
@@ -39,36 +34,36 @@ steps:
3934
depends_on:
4035
- "detekt"
4136
- "lint"
42-
plugins: *common_plugins
37+
plugins: [$CI_TOOLKIT]
4338
command: |
4439
.buildkite/publish-mediapicker-domain.sh
4540
- label: "Publish :mediapicker:source-device"
4641
depends_on:
4742
- "publish-mediapicker-domain"
48-
plugins: *common_plugins
43+
plugins: [$CI_TOOLKIT]
4944
command: |
5045
.buildkite/publish-mediapicker-source-device.sh
5146
- label: "Publish :mediapicker:source-camera"
5247
depends_on:
5348
- "publish-mediapicker-domain"
54-
plugins: *common_plugins
49+
plugins: [$CI_TOOLKIT]
5550
command: |
5651
.buildkite/publish-mediapicker-source-camera.sh
5752
- label: "Publish :mediapicker:source-gif"
5853
depends_on:
5954
- "publish-mediapicker-domain"
60-
plugins: *common_plugins
55+
plugins: [$CI_TOOLKIT]
6156
command: |
6257
.buildkite/publish-mediapicker-source-gif.sh
6358
- label: "Publish :mediapicker:source-wordpress"
6459
depends_on:
6560
- "publish-mediapicker-domain"
66-
plugins: *common_plugins
61+
plugins: [$CI_TOOLKIT]
6762
command: |
6863
.buildkite/publish-mediapicker-source-wordpress.sh
6964
- label: "Publish :mediapicker"
7065
depends_on:
7166
- "publish-mediapicker-domain"
72-
plugins: *common_plugins
67+
plugins: [$CI_TOOLKIT]
7368
command: |
7469
.buildkite/publish-mediapicker.sh

.buildkite/schedules/dependency-analysis.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
# yaml-language-server: $schema=https://raw.githubusercontent.com/buildkite/pipeline-schema/main/schema.json
22
---
33

4-
common_params:
5-
# Common plugin settings to use with the `plugins` key.
6-
- &common_plugins
7-
- automattic/a8c-ci-toolkit#3.4.2
8-
94
agents:
105
queue: "android"
116

@@ -14,7 +9,7 @@ steps:
149
command: |
1510
echo "--- 📊 Analyzing"
1611
./gradlew buildHealth
17-
plugins: *common_plugins
12+
plugins: [$CI_TOOLKIT]
1813
artifact_paths:
1914
- "build/reports/dependency-analysis/build-health-report.*"
2015
notify:

.buildkite/shared-pipeline-vars

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/sh
2+
3+
# This file is `source`'d before calling `buildkite-agent pipeline upload`, and can be used
4+
# to set up some variables that will be interpolated in the `.yml` pipeline before uploading it.
5+
6+
export CI_TOOLKIT="automattic/a8c-ci-toolkit#3.4.2"

0 commit comments

Comments
 (0)