jenkins groovy plugin - setup and failures

1,170 views
Skip to first unread message

Gb Gb

unread,
Jan 9, 2017, 8:46:39 AM1/9/17
to Jenkins Users
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.


Mark Waite

unread,
Jan 9, 2017, 8:52:57 AM1/9/17
to Jenkins Users
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 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

--
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 jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/ee861651-718d-4622-9500-6f387859bba7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages