Jenkins CI + Grails 2.3.9安装,构建步骤'Build With Grails'标记构建为失败

时间:2014-07-03 17:03:16

标签: grails jenkins continuous-integration

我关注如何在Ubuntu上设置Jenkins this tutorial!我能够毫无问题地进行设置。我甚至可以用git lab连接它,这样每次推动时,jenkins都会开始构建。但是,我没有成功地弄清楚如何做一个测试应用程序甚至是简单的grails清理它。堆栈跟踪没有明确解释失败的原因。我已经安装了grails和java,并在jenkins>manage jenkins>configure system

上设置了它
Building in workspace /var/lib/jenkins/jobs/test/workspace
 > git rev-parse --is-inside-work-tree
Fetching changes from the remote Git repository
 > git config remote.origin.url git@gitlab.com:xyza/test.git
Fetching upstream changes from git@gitlab.com:xyza/test.git
 > git --version
 > git fetch --tags --progress git@gitlab.com:xyza/test.git +refs/heads/*:refs/remotes/origin/*
 > git rev-parse origin/develop^{commit}
Checking out Revision c76d153311fe24a9f282e3ec4ac33f73cb600420 (origin/develop)
 > git config core.sparsecheckout
 > git checkout -f c76d153311fe24a9f282e3ec4ac33f73cb600420
 > git rev-list c76d153311fe24a9f282e3ec4ac33f73cb600420
[workspace] $ /var/lib/jenkins/tools/com.g2one.hudson.grails.GrailsInstallation/Grails_2.3.9/bin/grails -Dgrails.work.dir=/var/lib/jenkins/jobs/test/workspace//target clean --non-interactive --plain-output
|Loading Grails 2.3.9
Build step 'Build With Grails' marked build as failure
Finished: FAILURE

我目前的设置如下:http://i.stack.imgur.com/472qo.png。任何帮助,将不胜感激。 :)

编辑:

正如有人建议的那样,我尝试使用jenkins生成的命令手动运行应用程序,但我收到此错误:

user@shiva:~$ /var/lib/jenkins/tools/com.g2one.hudson.grails.GrailsInstallation/Grails_2.3.9/bin/grails -Dgrails.work.dir=/var/lib/jenkins/jobs/test/workspace//target clean --non-interactive --plain-output
|Loading Grails 2.3.9
|Configuring classpath
Error |
/var/lib/jenkins does not appear to be part of a Grails application.
Error |
The following commands are supported outside of a project:
    add-proxy
    clear-proxy
    create-app
    create-multi-project-build
    create-plugin
    help
    install-app-templates
    list-plugins
    package-plugin
    plugin-info
    remove-proxy
    set-proxy
|Run 'grails help' for a complete list of available scripts.

0 个答案:

没有答案