jenkins build告诉我,我的项目不是grails应用程序的一部分
您好,我正在运行一个用于grails应用程序构建和部署的jenkins实例,但是,我现在遇到了一个问题,在构建过程中的某个地方,it告诉我我的checkedout项目不是grails应用程序的一部分。 记录的消息是:jenkins build告诉我,我的项目不是grails应用程序的一部分,grails,build,jenkins,jenkins-plugins,cloudbees,Grails,Build,Jenkins,Jenkins Plugins,Cloudbees,您好,我正在运行一个用于grails应用程序构建和部署的jenkins实例,但是,我现在遇到了一个问题,在构建过程中的某个地方,it告诉我我的checkedout项目不是grails应用程序的一部分。 记录的消息是: Started by GitHub push by pedrospaulus Building remotely on s-ea17527f in workspace /scratch/jenkins/workspace/cloudbees_doofry_jenkins_2 Che
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您需要在所需grails应用程序的上下文中运行构建
似乎
/scratch/jenkins/workspace/cloudbees\u doofry\u jenkins\u 2/您的grails应用程序
应该是您应该启动构建的基本目录结构。是应用程序。属性
在git存储库的根目录中吗?(未忽略)@isammoc,是的,我在github codebase上的应用程序中包含应用程序属性?你认为这可能有问题吗???谢谢确实项目结构不好,我重组了它,现在一切都好了构建成功通过了。@user1194459如果答案有帮助,接受它将帮助其他人跟随你的道路。