The "Groovy executable is NULL" message probably means that you've not configured the Jenkins groovy plugin to know where to find command line groovy on your system (or systems). Refer to the groovy plugin documentation <https://wiki.jenkins-ci.org/display/JENKINS/Groovy+plugin> for more hints on plugin configuration.
The later messages indicate that you are probably running a Unix variant (Linux), have a script named /usr/bin/groovy, but the PATH environment variable is damaged in the context where that script is run. I'm not sure what would cause that damage, but after you've resolved the global configuration of the location of the groovy interpreter, you may still need to fix some additional configurations. Mark Waite On Mon, Jan 9, 2017 at 6:46 AM Gb Gb <[email protected]> wrote: > Im trying to execute groovy command using the groovy plugin > In "execute groovy script" i tried both groovy command and groovy script > file. > getting error: > > Groovy executable is NULL, please check your Groovy configuration, trying > fallback 'groovy' instead. > ..... groovy /path_to_file_name.groovy > /usr/bin/groovy: line 40: ls: command not found > /usr/bin/groovy: line 41: expr: command not found > /usr/bin/groovy: line 42: expr: command not found > /usr/bin/groovy: line 45: dirname: command not found > /usr/bin/groovy: line 49: dirname: command not found > /usr/bin/groovy: line 51: /startGroovy: No such file or directory > > > > so > 1) how should i configure groovy to work with jenkins? > 2) how should i configure jenkins groovy plugin? > 3) any other relevant how to. > > Thanks. > > > -- > You received this message because you are subscribed to the Google Groups > "Jenkins Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jenkinsci-users/ee861651-718d-4622-9500-6f387859bba7%40googlegroups.com > <https://groups.google.com/d/msgid/jenkinsci-users/ee861651-718d-4622-9500-6f387859bba7%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtFmfr_7NNJX_r%2Byowqe_fCE%3DGO4KQAWp8JTL01dr6vWkw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
