Skip to content

Commit 381b3f6

Browse files
committed
Don't error if stopping mysql fails in CI
And mask mysql to prevent it from being started
1 parent d8810e3 commit 381b3f6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ci/scripts/free-disk-space.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,8 @@ execAndMeasureSpaceChange() {
152152
# REF: https://github.com/apache/flink/blob/master/tools/azure-pipelines/free_disk_space.sh
153153
cleanPackages() {
154154
# Stop services to avoid issues when removing their packages.
155-
sudo systemctl stop mysql
155+
sudo systemctl stop mysql || echo "::warning::The command [sudo systemctl stop mysql] failed"
156+
sudo systemctl mask mysql || echo "::warning::The command [sudo systemctl mask mysql] failed"
156157

157158
local packages=(
158159
'^aspnetcore-.*'

0 commit comments

Comments
 (0)