0

嗨,我正在为 grails 应用程序构建和部署运行 jenkins 实例,但是,我现在遇到了一个问题,在构建过程中的某个地方它告诉我我的签出项目不是 grails 应用程序的一部分。记录的消息是:

Started by GitHub push by pedrospaulus
Building remotely on s-ea17527f in workspace /scratch/jenkins/workspace/cloudbees_doofry_jenkins_2
Checkout:cloudbees_doofry_jenkins_2 / /scratch/jenkins/workspace/cloudbees_doofry_jenkins_2 - hudson.remoting.Channel@3a1ecfab:s-ea17527f
Using strategy: Default
Last Built Revision: Revision 7d9e4790f577b6c4d3a53338653647d1f1400701 (origin/HEAD, origin/master)
Fetching changes from 1 remote Git repository
Fetching upstream changes from origin
Seen branch in repository origin/HEAD
Seen branch in repository origin/master
Seen 2 remote branches
Commencing build of Revision 4716cf96f4edcc7eef3a4d6826ef3a966aa9a670 (origin/HEAD, origin/master)
Checking out Revision 4716cf96f4edcc7eef3a4d6826ef3a966aa9a670 (origin/HEAD, origin/master)
Warning : There are multiple branch changesets here
[cloudbees_doofry_jenkins_2] $ /opt/grails/grails-1.3.7/bin/grails war target/cloudbees_doofry.war --non-interactive
Welcome to Grails 1.3.7 - http://grails.org/
Licensed under Apache Standard License 2.0
Grails home is set to: /opt/grails/grails-1.3.7

Base Directory: /scratch/jenkins/workspace/cloudbees_doofry_jenkins_2
Resolving dependencies...
Dependencies resolved in 4346ms.
/scratch/jenkins/workspace/cloudbees_doofry_jenkins_2 does not appear to be part of a Grails application.
The following commands are supported outside of a project:
    add-proxy
    clear-proxy
    create-app
    create-plugin
    help
    list-plugins
    package-plugin
    plugin-info
    remove-proxy
    set-proxy
Run 'grails help' for a complete list of available scripts.
Build step 'Build With Grails' marked build as failure
Archiving artifacts
[cloudbees-deployer] Skipping deployment as build result is FAILURE
Sending e-mails to: pedrospaulus@gmail.com
Finished: FAILURE

知道我做错了什么吗?tkx

4

1 回答 1

0

您需要在所需的 grails 应用程序的上下文中运行构建。

似乎/scratch/jenkins/workspace/cloudbees_doofry_jenkins_2/your-grails-app应该是您应该启动构建的基本目录结构。

于 2013-06-14T18:47:42.443 回答