diff --git a/.azure-pipelines/powershell-core.yml b/.azure-pipelines/powershell-core.yml index 47b707e4c24f..9ff20d90df68 100644 --- a/.azure-pipelines/powershell-core.yml +++ b/.azure-pipelines/powershell-core.yml @@ -8,6 +8,7 @@ variables: TestFramework: netcoreapp2.2 TestTarget: Test Configuration: Debug + DebugLocalBuildTasks: true jobs: - job: Build diff --git a/.azure-pipelines/windows-powershell.yml b/.azure-pipelines/windows-powershell.yml index fdcbefc6e3b9..0b4b9c789aa5 100644 --- a/.azure-pipelines/windows-powershell.yml +++ b/.azure-pipelines/windows-powershell.yml @@ -4,6 +4,7 @@ variables: TestFramework: netcoreapp2.2 TestTarget: Test Configuration: Debug + DebugLocalBuildTasks: true jobs: - job: Build diff --git a/tools/BuildPackagesTask/Microsoft.Azure.Build.Tasks/FilesChangedTask.cs b/tools/BuildPackagesTask/Microsoft.Azure.Build.Tasks/FilesChangedTask.cs index 20993ebd557e..0451eed9ea06 100644 --- a/tools/BuildPackagesTask/Microsoft.Azure.Build.Tasks/FilesChangedTask.cs +++ b/tools/BuildPackagesTask/Microsoft.Azure.Build.Tasks/FilesChangedTask.cs @@ -66,12 +66,18 @@ public override bool Execute() } var debugEnvironmentVariable = Environment.GetEnvironmentVariable("DebugLocalBuildTasks"); + Console.WriteLine("DebugLocalBuildTasks:" + debugEnvironmentVariable); bool debug; if (!Boolean.TryParse(debugEnvironmentVariable, out debug)) { debug = false; } + if (debug) + { + Console.WriteLine("PullRequestNumber:" + PullRequestNumber); + } + int ParsedPullRequestNumber; // The next statement will convert the string representation of a number to its integer equivalent. diff --git a/tools/BuildPackagesTask/Microsoft.Azure.Build.Tasks/FilterTask.cs b/tools/BuildPackagesTask/Microsoft.Azure.Build.Tasks/FilterTask.cs index a4d785aab771..48048f79f854 100644 --- a/tools/BuildPackagesTask/Microsoft.Azure.Build.Tasks/FilterTask.cs +++ b/tools/BuildPackagesTask/Microsoft.Azure.Build.Tasks/FilterTask.cs @@ -77,6 +77,15 @@ public override bool Execute() } else { + if (debug) + { + Console.WriteLine("Debug: ModuleMapping.json"); + var lines = File.ReadAllLines(MapFilePath); + foreach (var line in lines) + { + Console.WriteLine(line); + } + } var set = new HashSet(); var dictionary = JsonConvert.DeserializeObject>(File.ReadAllText(MapFilePath)); foreach (KeyValuePair pair in dictionary) diff --git a/tools/BuildPackagesTask/Microsoft.Azure.Build.Tasks/Microsoft.Azure.Build.Tasks.csproj b/tools/BuildPackagesTask/Microsoft.Azure.Build.Tasks/Microsoft.Azure.Build.Tasks.csproj index 01c6ef2ef2b4..7d56c13f9a10 100644 --- a/tools/BuildPackagesTask/Microsoft.Azure.Build.Tasks/Microsoft.Azure.Build.Tasks.csproj +++ b/tools/BuildPackagesTask/Microsoft.Azure.Build.Tasks/Microsoft.Azure.Build.Tasks.csproj @@ -1,4 +1,4 @@ - + @@ -23,7 +23,7 @@ - +