-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Closed
Labels
Resolution-FixedThe issue is fixed.The issue is fixed.WG-Enginecore PowerShell engine, interpreter, and runtimecore PowerShell engine, interpreter, and runtime
Milestone
Description
I;m trying to update the Jenkins PowerShell plugin to handle Linux as well as Windows. At the moment, it passes -ExecutionPolicy Bypass as a command line parameter. While testing, I noticed that this causes PowerShell 6.0 on Linux to throw an "Aborted" error and exit with error code 134:
daniel@debian-test:/tmp$ echo "Write-Output 'Hello World'" > test.ps1
daniel@debian-test:/tmp$ powershell ./test.ps1
Hello World
daniel@debian-test:/tmp$ powershell -ExecutionPolicy Bypass ./test.ps1
Aborted
daniel@debian-test:/tmp$ echo $?
134
I know that script signing currently isn't implemented for non-Windows platforms, but perhaps it could just ignore the option?
Environment data
> $PSVersionTable
Name Value
---- -----
PSVersion 6.0.0-alpha
PSEdition Core
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 3.0.0.0
GitCommitId v6.0.0-alpha.12
CLRVersion
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
Metadata
Metadata
Assignees
Labels
Resolution-FixedThe issue is fixed.The issue is fixed.WG-Enginecore PowerShell engine, interpreter, and runtimecore PowerShell engine, interpreter, and runtime