This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def exec(Map map = [:], command){ | |
def debug = map.debug ?: false | |
if (debug) echo "[DEBUG] powershell method called with parameter: \n $command" | |
def returnFileName = new Date().format("yyyyMMddHHmmssSSS") | |
if (debug) echo "[DEBUG] The return file name will is $returnFileName" | |
def pwCommand = "powershell.exe -ExecutionPolicy Bypass -NoLogo -NonInteractive -NoProfile -Command \"$command\" > $returnFileName" |