I want to run codenarc on our jenkins it always fails and all I get in the output is
$ /opt/grails/bin/grails -Dgrails.work.dir=/var/lib/jenkins/.grails-codenarc codenarc --non-interactive
| Loading Grails 2.4.4
| Configuring classpath
| Running pre-compiled script
| Error Script not found: Codenarc
Build step 'Build With Grails' marked build as failure
Of course I included it in the BuildConfig.groovy
plugins {
build ":tomcat:$tomcatVersion"
compile ':codenarc:0.22'
...
}
Also, when I run it on the server within a bash as the jenkins user, it works perfectly and is creating the expected output files.
Any ideas?
如果该版本执行干净签出,则需要在运行任何脚本之前运行grails compile
以确保已安装插件
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.