2017-10-13 38 views
2

我試圖從Jenkins管道中的文件運行Powershell腳本。從Jenkins管道中的文件運行Powershell腳本

我已閱讀this,其中顯示瞭如何運行輸入到管道中的powershell腳本,但我無法獲取腳本從文件運行。

我曾嘗試:

powershell returnStatus: true, script: '-File build.ps1' 

和各種組合,但無法弄清楚如何做到這一點。

回答

4

想通了後不久,此行應該已經閱讀

powershell returnStatus: true, script: '.\\build.ps1' 
相關問題