powershell - 如何通过 jenkins 使用 powershell 64bit exe 运行 .ps1 脚本?
问题描述
Powershell 32 位模式不支持 Powershell 工作流。因此我想使用powershell 64位模式执行脚本。如何通过jenkins在64位模式下运行.ps1脚本?
解决方案
它通过使用 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 的更多信息
推荐阅读
- angular - 如何解决错误“请求的资源上不存在‘Access-Control-Allow-Origin’标头。” 在角度
- mysql - 我该如何解决这个不正确的数据?
- html - 我正在使用 Ajax 在页面上显示 html。我希望添加的 css 不会影响整个页面
- reactjs - MUI Paper 覆盖 MUI 警报背景
- r - 为什么 gtools::combinations 和 permutations 不适用于包含相同元素的向量?
- php - 使用默认的 Woocommerce 单一产品页面覆盖变体描述
- imagemagick - Redmine 4.2.3 和 FreeBSD 13.0 上的 MiniMagick::Error(您必须安装 ImageMagick 或 GraphicsMagick)
- java - 为什么会发生 PoolingException?
- node.js - 如何通过 Postman 发送嵌套数组
- php - 字母数字正则表达式不适用于非罗马字符