Skip to content

Commit 9d32788

Browse files
Merge remote-tracking branch 'origin/trunk' into adam/gravatar_quickeditor
2 parents c704bda + 835f19a commit 9d32788

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+342
-354
lines changed

.buildkite/beta-builds.yml

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ steps:
1313
#################
1414
- label: "Gradle Wrapper Validation"
1515
command: |
16+
.buildkite/commands/checkout-release-branch.sh "$RELEASE_VERSION"
1617
validate_gradle_wrapper
1718
plugins: [$CI_TOOLKIT]
1819

@@ -27,14 +28,18 @@ steps:
2728

2829
- label: "🕵️ Lint WordPress"
2930
key: wplint
30-
command: ".buildkite/commands/lint.sh wordpress"
31+
command: |
32+
.buildkite/commands/checkout-release-branch.sh "$RELEASE_VERSION"
33+
.buildkite/commands/lint.sh wordpress
3134
plugins: [$CI_TOOLKIT]
3235
artifact_paths:
3336
- "**/build/reports/lint-results*.*"
3437

3538
- label: "🕵️ Lint Jetpack"
3639
key: jplint
37-
command: ".buildkite/commands/lint.sh jetpack"
40+
command: |
41+
.buildkite/commands/checkout-release-branch.sh "$RELEASE_VERSION"
42+
.buildkite/commands/lint.sh jetpack
3843
plugins: [$CI_TOOLKIT]
3944
artifact_paths:
4045
- "**/build/reports/lint-results*.*"
@@ -47,7 +52,9 @@ steps:
4752

4853
- label: ":wordpress: :android: Beta Build"
4954
key: wpbuild
50-
command: ".buildkite/commands/beta-build.sh wordpress"
55+
command: |
56+
.buildkite/commands/checkout-release-branch.sh "$RELEASE_VERSION"
57+
.buildkite/commands/beta-build.sh wordpress
5158
depends_on: wplint
5259
plugins: [$CI_TOOLKIT]
5360
notify:
@@ -59,7 +66,9 @@ steps:
5966

6067
- label: ":jetpack: :android: Beta Build"
6168
key: jpbuild
62-
command: ".buildkite/commands/beta-build.sh jetpack"
69+
command: |
70+
.buildkite/commands/checkout-release-branch.sh "$RELEASE_VERSION"
71+
.buildkite/commands/beta-build.sh jetpack
6372
depends_on: jplint
6473
plugins: [$CI_TOOLKIT]
6574
notify:
@@ -76,5 +85,7 @@ steps:
7685
depends_on:
7786
- wpbuild
7887
- jpbuild
79-
command: ".buildkite/commands/create-github-release.sh"
88+
command: |
89+
.buildkite/commands/checkout-release-branch.sh "$RELEASE_VERSION"
90+
.buildkite/commands/create-github-release.sh
8091
plugins: [$CI_TOOLKIT]

.buildkite/commands/checkout-editorial-branch.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/bin/bash -eu
22

3+
echo '--- :git: Checkout Editorial Branch'
4+
35
# EDITORIAL_BRANCH is passed as an environment variable from fastlane to Buildkite
46
#
57
if [[ -z "${EDITORIAL_BRANCH}" ]]; then

.buildkite/commands/checkout-release-branch.sh

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
#!/bin/bash -eu
22

3-
# RELEASE_VERSION is passed as an environment variable passed to Buildkite by ReleasesV2.
4-
if [[ -z "${RELEASE_VERSION}" ]]; then
5-
echo "RELEASE_VERSION is not set."
6-
exit 1
7-
fi
3+
echo "--- :git: Checkout Release Branch"
4+
5+
RELEASE_VERSION="${1?Please provide a release version as an argument.}"
86

97
# Buildkite, by default, checks out a specific commit. For many release actions, we need to be
108
# on a release branch instead.

.buildkite/commands/lint.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
echo "--- :rubygems: Setting up Gems"
44
install_gems
55

6-
echo "--- :clipboard: Copying gradle.properties"
7-
cp gradle.properties-example gradle.properties
8-
96
echo "--- :globe_with_meridians: Check Locales Declaration Consistency"
107
bundle exec fastlane check_declared_locales_consistency app:"$1"
118

.buildkite/commands/run-unit-tests.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ else
3232
exit 1
3333
fi
3434

35-
cp gradle.properties-example gradle.properties
3635
./gradlew $test_suite
3736
TESTS_EXIT_STATUS=$?
3837
set -e

.buildkite/complete-code-freeze.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ steps:
88
echo '--- :robot_face: Use bot for git operations'
99
source use-bot-for-git
1010
11-
echo '--- :git: Checkout Release Branch'
12-
.buildkite/commands/checkout-release-branch.sh
11+
.buildkite/commands/checkout-release-branch.sh "$RELEASE_VERSION"
1312
1413
echo '--- :ruby: Setup Ruby Tools'
1514
install_gems

.buildkite/finalize-release.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,11 @@ steps:
88
echo '--- :robot_face: Use bot for git operations'
99
source use-bot-for-git
1010
11-
echo '--- :git: Checkout Release Branch'
12-
.buildkite/commands/checkout-release-branch.sh
11+
.buildkite/commands/checkout-release-branch.sh "$RELEASE_VERSION"
1312
1413
echo '--- :ruby: Setup Ruby Tools'
1514
install_gems
1615
17-
cp gradle.properties-example gradle.properties
18-
1916
echo '--- :shipit: Finalize Release'
2017
bundle exec fastlane finalize_release skip_confirm:true
2118
agents:

.buildkite/new-beta-release.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ steps:
1111
echo '--- :ruby: Setup Ruby Tools'
1212
install_gems
1313
14-
cp gradle.properties-example gradle.properties
15-
1614
echo '--- :shipit: New Beta Release'
1715
bundle exec fastlane new_beta_release skip_confirm:true
1816
agents:

.buildkite/pipeline.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,13 @@ steps:
3939

4040
- label: "🕵️ checkstyle"
4141
command: |
42-
cp gradle.properties-example gradle.properties
4342
./gradlew checkstyle
4443
plugins: [$CI_TOOLKIT]
4544
artifact_paths:
4645
- "**/build/reports/checkstyle/checkstyle.*"
4746

4847
- label: "🕵️ detekt"
4948
command: |
50-
cp gradle.properties-example gradle.properties
5149
./gradlew detekt
5250
plugins: [$CI_TOOLKIT]
5351
artifact_paths:
@@ -67,7 +65,6 @@ steps:
6765

6866
- label: "Dependency Tree Diff"
6967
command: |
70-
cp gradle.properties-example gradle.properties
7168
comment_with_dependency_diff 'WordPress' 'wordpressVanillaReleaseRuntimeClasspath'
7269
if: build.pull_request.id != null
7370
plugins: [$CI_TOOLKIT]

.buildkite/publish-release.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ steps:
88
echo '--- :robot_face: Use bot for git operations'
99
source use-bot-for-git
1010
11-
echo '--- :git: Checkout Release Branch'
12-
.buildkite/commands/checkout-release-branch.sh
11+
.buildkite/commands/checkout-release-branch.sh "$RELEASE_VERSION"
1312
1413
echo '--- :ruby: Setup Ruby tools'
1514
install_gems

0 commit comments

Comments
 (0)