diff options
author | Jacek Blaszczynski <biosciencenow@outlook.com> | 2017-11-22 17:00:00 +0100 |
---|---|---|
committer | Jan Kotas <jkotas@microsoft.com> | 2017-11-22 08:00:00 -0800 |
commit | 5b1895dd0600b6536410b373d26baa604b88de90 (patch) | |
tree | d6dbe3006ec720bbcc833e467cf9782b74e1cab9 /netci.groovy | |
parent | 776690aad2bf8f5ecf69ea7b26c66bcd17489637 (diff) | |
download | coreclr-5b1895dd0600b6536410b373d26baa604b88de90.tar.gz coreclr-5b1895dd0600b6536410b373d26baa604b88de90.tar.bz2 coreclr-5b1895dd0600b6536410b373d26baa604b88de90.zip |
Fix all powershell invocations in scripts, CI code and tests to include -NoProfile (#15164)
Code execution in several scripts and tests can be affected by powershell profile
execution at startup. Adding -NoProfile option to all powershell invocations which
may be affected by execution of profile startup code.
Diffstat (limited to 'netci.groovy')
-rwxr-xr-x | netci.groovy | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/netci.groovy b/netci.groovy index d31f74cead..9974a9e88c 100755 --- a/netci.groovy +++ b/netci.groovy @@ -1533,7 +1533,7 @@ def static calculateBuildCommands(def newJob, def scenario, def branch, def isPR // Zip up the tests directory so that we don't use so much space/time copying // 10s of thousands of files around. - buildCommands += "powershell -Command \"Add-Type -Assembly 'System.IO.Compression.FileSystem'; [System.IO.Compression.ZipFile]::CreateFromDirectory('.\\bin\\tests\\${osGroup}.${arch}.${configuration}', '.\\bin\\tests\\tests.zip')\""; + buildCommands += "powershell -NoProfile -Command \"Add-Type -Assembly 'System.IO.Compression.FileSystem'; [System.IO.Compression.ZipFile]::CreateFromDirectory('.\\bin\\tests\\${osGroup}.${arch}.${configuration}', '.\\bin\\tests\\tests.zip')\""; if (!isJitStressScenario(scenario)) { // For windows, pull full test results and test drops for x86/x64. @@ -1589,7 +1589,7 @@ def static calculateBuildCommands(def newJob, def scenario, def branch, def isPR // Zip up the tests directory so that we don't use so much space/time copying // 10s of thousands of files around. - buildCommands += "powershell -Command \"Add-Type -Assembly 'System.IO.Compression.FileSystem'; [System.IO.Compression.ZipFile]::CreateFromDirectory('.\\bin\\tests\\${osGroup}.${buildArchitecture}.${configuration}', '.\\bin\\tests\\tests.zip')\""; + buildCommands += "powershell -NoProfile -Command \"Add-Type -Assembly 'System.IO.Compression.FileSystem'; [System.IO.Compression.ZipFile]::CreateFromDirectory('.\\bin\\tests\\${osGroup}.${buildArchitecture}.${configuration}', '.\\bin\\tests\\tests.zip')\""; // Add archival. Utilities.addArchival(newJob, "bin/Product/**,bin/tests/tests.zip", "bin/Product/**/.nuget/**") @@ -1617,7 +1617,7 @@ def static calculateBuildCommands(def newJob, def scenario, def branch, def isPR // Zip up the tests directory so that we don't use so much space/time copying // 10s of thousands of files around. - buildCommands += "powershell -Command \"Add-Type -Assembly 'System.IO.Compression.FileSystem'; [System.IO.Compression.ZipFile]::CreateFromDirectory('.\\bin\\tests\\${osGroup}.${architecture}.${configuration}', '.\\bin\\tests\\tests.zip')\""; + buildCommands += "powershell -NoProfile -Command \"Add-Type -Assembly 'System.IO.Compression.FileSystem'; [System.IO.Compression.ZipFile]::CreateFromDirectory('.\\bin\\tests\\${osGroup}.${architecture}.${configuration}', '.\\bin\\tests\\tests.zip')\""; // Add archival. Utilities.addArchival(newJob, "bin/Product/**,bin/tests/tests.zip", "bin/Product/**/.nuget/**") @@ -2427,7 +2427,7 @@ Constants.allScenarios.each { scenario -> else { // windowsArmJob == true // Unzip tests. - batchFile("powershell -Command \"Add-Type -Assembly 'System.IO.Compression.FileSystem'; [System.IO.Compression.ZipFile]::ExtractToDirectory('bin\\tests\\tests.zip', 'bin\\tests\\${osGroup}.${architecture}.${configuration}')") + batchFile("powershell -NoProfile -Command \"Add-Type -Assembly 'System.IO.Compression.FileSystem'; [System.IO.Compression.ZipFile]::ExtractToDirectory('bin\\tests\\tests.zip', 'bin\\tests\\${osGroup}.${architecture}.${configuration}')") // Build the build commands def buildCommands = "" |