From 147b10135e6ecefb21a7395d8a5ca0b7825a9bdd Mon Sep 17 00:00:00 2001 From: Maria Zhelezova <43066499+mazhelez@users.noreply.github.com> Date: Tue, 14 Jan 2025 10:54:10 +0100 Subject: [PATCH] [releases/24.2] Run CLEAN mode only on main and major release branches (#2735) This pull request backports #2732 to releases/24.2 Fixes [AB#561502](https://dynamicssmb2.visualstudio.com/1fcb79e7-ab07-432a-a3c6-6cf5a88ba4a5/_workitems/edit/561502) --- .github/AL-Go-Settings.json | 36 +++++++++++++++++++++++++----------- 1 file changed, 25 insertions(+), 11 deletions(-) diff --git a/.github/AL-Go-Settings.json b/.github/AL-Go-Settings.json index 545e77d2b2..0203ab80fe 100644 --- a/.github/AL-Go-Settings.json +++ b/.github/AL-Go-Settings.json @@ -9,15 +9,30 @@ "country": "base", "useProjectDependencies": true, "repoVersion": "24.2", - "cleanModePreprocessorSymbols": [ - "CLEAN17", - "CLEAN18", - "CLEAN19", - "CLEAN20", - "CLEAN21", - "CLEAN22", - "CLEAN23", - "CLEAN24" + "conditionalSettings": [ + { + "buildModes": [ "Clean" ], + "settings": { + "preprocessorSymbols": [ + "CLEAN17", + "CLEAN18", + "CLEAN19", + "CLEAN20", + "CLEAN21", + "CLEAN22", + "CLEAN23", + "CLEAN24", + "CLEAN25", + "CLEAN26" + ] + } + }, + { + "branches": [ "main", "releases/*.x" ], + "settings": { + "buildModes": [ "Clean" ] + } + } ], "unusedALGoSystemFiles": [ "AddExistingAppOrTestApp.yaml", @@ -36,8 +51,7 @@ "Official-Build" ], "buildModes": [ - "Default", - "Clean" + "Default" ], "CICDPushBranches": [ "main",