-
Bug
-
Resolution: Fixed
-
Major
-
None
-
gradle-plugin: 1.24
Jenkins: 1.656
In the output log this command below produced a "Task not found" error
Command:
cmd.exe /C "gradle.bat -DghprbTargetBranch=master... '"-DghprbPullLongDescription=It was found that ANYvalid NEC format IR code would trigger a \""force occupied\"" event...
Error:
- What went wrong:
Task 'occupied"" event...' not found in root project 'jUnit'.
It appears that the quotations are not being escaped correctly in this instance, causing gradle to think that the text of DghprbPullLongDescription is a task.
The text as posted on github is as follows:
It was found that ANYvalid NEC format IR code would trigger a "force occupied" event...
Looks as if development on this plug-in may have halted some time ago, but on the slight chance I am wrong... It appears to me that the plug-in is grabbing all environment variables set in the job and adding them on via the -D option, which is why a ghprb variable appears in the command. Not sure of the reasoning behind this as it seems inefficient and could easily fail the command as seen here. A suggestion would be to instead let the user decide what to pass on.