【问题标题】:jenkins build tells my project is not a part of grails applicationjenkins build 告诉我的项目不是 grails 应用程序的一部分
【发布时间】:2013-06-15 02:47:42
【问题描述】:

您好,我正在为 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

【问题讨论】:

  • application.properties 是否在您的 git 存储库的根目录中? (不忽略)
  • @isammoc,是的,应用程序属性包含在我在 github 代码库上的应用程序中?你认为这可能有问题吗???

标签: grails build jenkins jenkins-plugins cloudbees


【解决方案1】:

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

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

【讨论】:

  • 感谢确实项目结构很糟糕,我对其进行了重组,现在一切正常,构建成功通过。
  • @user1194455 如果答案有帮助,接受它将帮助其他人跟随你的道路。
猜你喜欢
  • 1970-01-01
  • 2016-01-29
  • 1970-01-01
  • 1970-01-01
  • 2014-11-26
  • 1970-01-01
  • 1970-01-01
  • 2011-10-22
  • 1970-01-01
相关资源
最近更新 更多