尝试从 Jira 运行 curl

Trying to run curl from Jira

尝试从 JIRA 运行 CURL 命令时出现以下错误:

2017-04-04 18:18:37,351 错误 [workflow.ScriptWorkflowFunction]: ************************ ****************************************************** *********** 2017-04-04 18:18:37,351 错误 [workflow.ScriptWorkflowFunction]:脚本函数在问题上失败:JI-1,actionId:21,文件: java.io.IOException: Cannot 运行 program "curl": CreateProcess error=2, 系统找不到指定的文件 在 Script147.run(Script147.groovy:47) Caused by: java.io.IOException: CreateProcess error=2, 系统找不到指定的文件 ... 1 个

该错误提示您需要指定 curl 可执行文件的完整路径,如下所示:

"c:\temp\curl.exe -1 -k ..."

如果 curl 可执行文件位于包含空格的目录中,您将需要在字符串中添加适当的引号,或者将 curl 可执行文件移动到没有该问题的位置.