首页 > 解决方案 > 如何通过 jenkins 使用 powershell 64bit exe 运行 .ps1 脚本?

问题描述

Powershell 32 位模式不支持 Powershell 工作流。因此我想使用powershell 64位模式执行脚本。如何通过jenkins在64位模式下运行.ps1脚本?

标签: powershelljenkins

解决方案


它通过使用 c:\windows\sysnative\WindowsPowerShell\v1.0\powershell.exe 而不是 c:\windows\system32\WindowsPowerShell\v1.0\powershell.exe 调用来工作

在https://www.thewindowsclub.com/sysnative-folder-in-windows-64-bit找到有关 sysnative 的更多信息


推荐阅读