Forum Discussion

kaushal_1's avatar
kaushal_1
New Contributor
13 years ago

Error invoking groovy script from trigger

Hi,  

I am trying to add a comment to the review file using groovy, but I am getting the following error   

java.io.IOException: ccollab --url http://localhost:8080 --user ***** --password ***** --quiet --non-interactive admin review comment create --file MyFile.java --line-number 30 1 Firstautocomment CreateProcess: error=2 .



Any thoughts why it could not be working. The script works fine when I execute it from command prompt or groovy ui.

Can you please provide some input on this.



My trigger configuration

Executable: C:\Software\groovy-2.0.2\bin\groovy.exe

Parameter: C:\CodecollabratorDemo\temp\ParseFB.groovy



Thanks in advance



Kaushal
  • Anonymous's avatar
    Anonymous

    Hi Kaushal, 


    That
    Java create process error=2 from your groovy code indicates that getRuntime() can't find the specified command/file.

    Try checking your path separators as described here:



    http://www.java.net/node/684204