[英]Jenkins to run groovy cmd
I'm trying to run the following cmd 我正在尝试运行以下cmd
groovy http://frankencover.it/with -source-dir MyProject/Classes -required-coverage 85
from a Jenkins server as a bash script. 从Jenkins服务器作为bash脚本。 I get the following error:
我收到以下错误:
/var/folders/mk/jw29t1bj6tg1tymgysyw83b4k_7h97/T/hudson3694832164452107476.sh: line 2: groovy: command not found
Is there a way I can let Jenkins run a groovy command? 有什么办法可以让詹金斯(Jenkins)运行groovy命令吗? When I run the command from the terminal, it totally works fine.
当我从终端运行命令时,它完全可以正常工作。 I do have groovy installed
我确实安装了Groovy
Configure the Groovy path in configure system. 在配置系统中配置Groovy路径。
Then you can use Groovy plugin to execute grrovy scripts 然后,您可以使用Groovy插件执行grrovy脚本
https://wiki.jenkins-ci.org/display/JENKINS/Groovy+plugin https://wiki.jenkins-ci.org/display/JENKINS/Groovy+plugin
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.