从Jenkins管道中的文件运行Powershell脚本
问题描述:
我试图从Jenkins管道中的文件运行Powershell脚本。从Jenkins管道中的文件运行Powershell脚本
我已阅读this,其中显示了如何运行输入到管道中的powershell脚本,但我无法获取脚本从文件运行。
我曾尝试:
powershell returnStatus: true, script: '-File build.ps1'
和各种组合,但无法弄清楚如何做到这一点。
答
想通了后不久,此行应该已经阅读
powershell returnStatus: true, script: '.\\build.ps1'