Skip to content

Commit 7ca8f48

Browse files
authored
[Tooling] Use buildkite_pipeline_upload action to inline Buildkite release pipelines (#23782)
* Update gem dependencies * Update Fastfile to add the `buildkite_pipeline_upload` call * Checkout the release branch before creating a new build * Move echo call to .buildkite/commands/checkout-release-branch.sh and standardize script calls * [TO REVERT] Disable side effects to complete-code-freeze pipeline for testing * Revert "[TO REVERT] Disable side effects to complete-code-freeze pipeline for testing" This reverts commit 7863f25.
1 parent 5b3871e commit 7ca8f48

File tree

13 files changed

+55
-41
lines changed

13 files changed

+55
-41
lines changed

.buildkite/commands/checkout-release-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 release branch'
4+
35
RELEASE_NUMBER=$1
46

57
if [[ -z "${RELEASE_NUMBER}" ]]; then

.buildkite/commands/complete-code-freeze.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ fi
1010
echo '--- :robot_face: Use bot for Git operations'
1111
source use-bot-for-git
1212

13-
echo '--- :git: Checkout release branch'
1413
.buildkite/commands/checkout-release-branch.sh "$RELEASE_NUMBER"
1514

1615
echo '--- :ruby: Setup Ruby tools'

.buildkite/commands/finalize-hotfix.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ fi
1010
echo '--- :robot_face: Use bot for Git operations'
1111
source use-bot-for-git
1212

13-
echo '--- :git: Checkout release branch'
1413
.buildkite/commands/checkout-release-branch.sh "$RELEASE_NUMBER"
1514

1615
echo '--- :ruby: Setup Ruby tools'

.buildkite/commands/finalize-release.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ fi
1010
echo '--- :robot_face: Use bot for Git operations'
1111
source use-bot-for-git
1212

13-
echo '--- :git: Checkout release branch'
1413
.buildkite/commands/checkout-release-branch.sh "$RELEASE_NUMBER"
1514

1615
echo '--- :ruby: Setup Ruby tools'

.buildkite/commands/log-outdated-pods.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ fi
1010
echo '--- :robot_face: Use bot for Git operations'
1111
source use-bot-for-git
1212

13-
echo '--- :git: Checkout release branch'
1413
.buildkite/commands/checkout-release-branch.sh "$RELEASE_NUMBER"
1514

1615
echo '--- :ruby: Setup Ruby tools'

.buildkite/release-builds.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ env:
88
steps:
99

1010
- label: ":wordpress: :testflight: WordPress Release Build (App Store Connect)"
11-
command: ".buildkite/commands/release-build-wordpress.sh $BETA_RELEASE"
11+
command: |
12+
.buildkite/commands/checkout-release-branch.sh "$RELEASE_VERSION"
13+
.buildkite/commands/release-build-wordpress.sh $IS_BETA_RELEASE
1214
plugins: [$CI_TOOLKIT_PLUGIN]
1315
notify:
1416
- slack: "#build-and-ship"
@@ -18,7 +20,9 @@ steps:
1820
allowed: false
1921

2022
- label: ":jetpack: :testflight: Jetpack Release Build (App Store Connect)"
21-
command: ".buildkite/commands/release-build-jetpack.sh"
23+
command: |
24+
.buildkite/commands/checkout-release-branch.sh "$RELEASE_VERSION"
25+
.buildkite/commands/release-build-jetpack.sh
2226
plugins: [$CI_TOOLKIT_PLUGIN]
2327
notify:
2428
- slack: "#build-and-ship"

.buildkite/release-pipelines/complete-code-freeze.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ steps:
1212
- label: Complete Code Freeze
1313
key: complete_code_freeze
1414
plugins: [$CI_TOOLKIT_PLUGIN]
15-
command: .buildkite/commands/complete-code-freeze.sh $RELEASE_VERSION
15+
command: .buildkite/commands/complete-code-freeze.sh "$RELEASE_VERSION"
1616
retry:
1717
manual:
1818
# If those jobs fail, one should always prefer re-triggering a new build from ReleaseV2 rather than retrying the individual job from Buildkite
@@ -21,7 +21,7 @@ steps:
2121
- label: Log Outdated Pods
2222
depends_on: complete_code_freeze
2323
plugins: [$CI_TOOLKIT_PLUGIN]
24-
command: .buildkite/commands/log-outdated-pods.sh $RELEASE_VERSION
24+
command: .buildkite/commands/log-outdated-pods.sh "$RELEASE_VERSION"
2525
retry:
2626
manual:
2727
# If those jobs fail, one should always prefer re-triggering a new build from ReleaseV2 rather than retrying the individual job from Buildkite

.buildkite/release-pipelines/finalize-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ steps:
1212
- label: Finalize Release
1313
plugins:
1414
- $CI_TOOLKIT_PLUGIN
15-
command: .buildkite/commands/finalize-release.sh $RELEASE_VERSION
15+
command: .buildkite/commands/finalize-release.sh "$RELEASE_VERSION"
1616
retry:
1717
manual:
1818
# If those jobs fail, one should always prefer re-triggering a new build from ReleaseV2 rather than retrying the individual job from Buildkite

.buildkite/release-pipelines/publish-release.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ steps:
1414
echo '--- :robot_face: Use bot for Git operations'
1515
source use-bot-for-git
1616
17-
echo '--- :git: Checkout release branch'
18-
.buildkite/commands/checkout-release-branch.sh $RELEASE_VERSION
17+
.buildkite/commands/checkout-release-branch.sh "$RELEASE_VERSION"
1918
2019
echo '--- :ruby: Setup Ruby tools'
2120
install_gems

Gemfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
source 'https://rubygems.org'
44

55
gem 'cocoapods', '~> 1.16'
6-
gem 'danger-dangermattic', '~> 1.1'
6+
gem 'danger-dangermattic', '~> 1.2'
77
gem 'dotenv'
88
# 2.223.1 includes a fix for an ASC-interfacing issue
99
#
@@ -15,9 +15,9 @@ gem 'fastlane-plugin-sentry'
1515
# This comment avoids typing to switch to a development version for testing.
1616
#
1717
# gem 'fastlane-plugin-wpmreleasetoolkit', git: 'https://github.com/wordpress-mobile/release-toolkit', ref: ''
18-
gem 'fastlane-plugin-wpmreleasetoolkit', '~> 12.2'
18+
gem 'fastlane-plugin-wpmreleasetoolkit', '~> 12.3'
1919
gem 'rake'
20-
gem 'rubocop', '~> 1.60'
20+
gem 'rubocop', '~> 1.68'
2121
gem 'rubocop-rake', '~> 0.6'
2222
gem 'xcpretty-travis-formatter'
2323

0 commit comments

Comments
 (0)