Skip to content

Commit

Permalink
(#139) Another attempt to fix this build
Browse files Browse the repository at this point in the history
As per the blog post in the last commit, going to attempt to explicitly
set OutputToAppConsole to false, to allow this to run on TeamCity.
  • Loading branch information
gep13 committed Mar 18, 2024
1 parent bb2e60b commit 31061d4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Chocolatey.Cake.Recipe/Content/psscriptanalyzer.cake
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ BuildParameters.Tasks.PSScriptAnalyzerTask = Task("Run-PSScriptAnalyzer")
.WithModule("ConvertToSARIF")
.WithModule("Microsoft.PowerShell.Management")
.WithModule("Microsoft.PowerShell.Utility")
.OutputToAppConsole(false)
.WithArguments(args => {
args.AppendQuoted("AnalyzePath", PSScriptAnalyzerSetting.AnalysisPath.ToString())
.AppendQuoted("SettingsPath", PSScriptAnalyzerSetting.SettingsPath.ToString())
Expand All @@ -66,6 +67,7 @@ BuildParameters.Tasks.PSScriptAnalyzerTask = Task("Run-PSScriptAnalyzer")
.WithModule("ConvertToSARIF")
.WithModule("Microsoft.PowerShell.Management")
.WithModule("Microsoft.PowerShell.Utility")
.OutputToAppConsole(false)
.WithArguments(args => {
args.AppendQuoted("AnalyzePath", BuildParameters.RootDirectoryPath.ToString())
.AppendQuoted("SettingsPath", settingsFile.ToString())
Expand Down

0 comments on commit 31061d4

Please sign in to comment.