From b6d7e79d4473b7863cd67112565a605ff7f0354d Mon Sep 17 00:00:00 2001 From: Maria Zhelezova <43066499+mazhelez@users.noreply.github.com> Date: Tue, 21 Nov 2023 08:59:40 +0100 Subject: [PATCH] Utilize useCompilerFolder when creating dev env (#831) Fixes #824 --- Actions/AL-Go-Helper.ps1 | 3 ++- Actions/RunPipeline/RunPipeline.ps1 | 10 +++------- RELEASENOTES.md | 1 + 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/Actions/AL-Go-Helper.ps1 b/Actions/AL-Go-Helper.ps1 index 417080b33..4e4b88fd8 100644 --- a/Actions/AL-Go-Helper.ps1 +++ b/Actions/AL-Go-Helper.ps1 @@ -1832,7 +1832,8 @@ function CreateDevEnv { "enableCodeCop", "enableAppSourceCop", "enablePerTenantExtensionCop", - "enableUICop" | ForEach-Object { + "enableUICop", + "useCompilerFolder" | ForEach-Object { if ($settings."$_") { $runAlPipelineParams += @{ "$_" = $true } } } diff --git a/Actions/RunPipeline/RunPipeline.ps1 b/Actions/RunPipeline/RunPipeline.ps1 index efae54ab3..a60a20265 100644 --- a/Actions/RunPipeline/RunPipeline.ps1 +++ b/Actions/RunPipeline/RunPipeline.ps1 @@ -101,12 +101,7 @@ try { } $analyzeRepoParams = @{} - # If UseCompilerFolder is set, set the parameter on Run-AlPipeline - if ($settings.useCompilerFolder) { - $runAlPipelineParams += @{ - "useCompilerFolder" = $true - } - } + if ($artifact) { # Avoid checking the artifact setting in AnalyzeRepo if we have an artifactUrl $settings.artifact = $artifact @@ -340,7 +335,8 @@ try { "enableCodeCop", "enableAppSourceCop", "enablePerTenantExtensionCop", - "enableUICop" | ForEach-Object { + "enableUICop", + "useCompilerFolder" | ForEach-Object { if ($settings."$_") { $runAlPipelineParams += @{ "$_" = $true } } } diff --git a/RELEASENOTES.md b/RELEASENOTES.md index 0e2dee476..436a00f36 100644 --- a/RELEASENOTES.md +++ b/RELEASENOTES.md @@ -6,6 +6,7 @@ Note that when using the preview version of AL-Go for GitHub, we recommend you U - Issue 782 Exclude '.altestrunner/' from template .gitignore - Issue 823 Dependencies from prior build jobs are not included when using useProjectDependencies - App artifacts for version 'latest' are now fetched from the latest CICD run that completed and successfully built all the projects for the corresponding branch. +- Issue 824 Utilize `useCompilerFolder` setting when creating an development environment for an AL-Go project. ## v4.0