Reputation: 88
While trying to run CURL command from JIRA i am getting below error:
2017-04-04 18:18:37,351 ERROR [workflow.ScriptWorkflowFunction]: ************************************************************************************* 2017-04-04 18:18:37,351 ERROR [workflow.ScriptWorkflowFunction]: Script function failed on issue: JI-1, actionId: 21, file: java.io.IOException: Cannot run program "curl": CreateProcess error=2, The system cannot find the file specified at Script147.run(Script147.groovy:47) Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified ... 1 more
Upvotes: 0
Views: 715
Reputation: 3298
The error suggests that you will need to specify the full path to the curl
executable, such as below:
"c:\temp\curl.exe -1 -k ..."
If the curl
executable is in a directory that contains spaces, you will either need to add the appropriate quoting to the string or else move the curl
executable somewhere that does not have that problem.
Upvotes: 1