gpt4 book ai didi

grails - Cloudbees Jenkins构建针对Grails 2.2.2应用程序失败

转载 作者:行者123 更新时间:2023-12-02 15:32:43 25 4
gpt4 key购买 nike

我试图为我的Grails应用程序在Cloudbees上运行Jenkins构建,但是在运行 war 目标时遇到了麻烦。看起来Jenkins找不到grails可执行文件。

有人看过吗?

Started by user xxxx
Building remotely on s-f349965a in workspace /scratch/jenkins/workspace/myApp
Checkout:myApp / /scratch/jenkins/workspace/myApp - hudson.remoting.Channel@b75fe72:s-f349965a
Using strategy: Default
Last Built Revision: Revision 09454e78a993e106a5c2010e836b8d71652b9534 (origin/HEAD, origin/master)
Fetching changes from 1 remote Git repository
Fetching upstream changes from ssh://git@git.cloudbees.com/myCompany/myApp.git
Seen branch in repository origin/HEAD
Seen branch in repository origin/master
Commencing build of Revision 09454e78a993e106a5c2010e836b8d71652b9534 (origin/HEAD, origin/master)
Checking out Revision 09454e78a993e106a5c2010e836b8d71652b9534 (origin/HEAD, origin/master)
Warning : There are multiple branch changesets here
[myApp] $ /scratch/jenkins/workspace/myApp/grailsw upgrade --non-interactive
Downloading http://dist.springframework.org.s3.amazonaws.com/release/GRAILS/grails-2.2.2.zip to /home/jenkins/.grails/wrapper/grails-2.2.2-download.zip...
Extracting /home/jenkins/.grails/wrapper/grails-2.2.2-download.zip to /home/jenkins/.grails/wrapper/2.2.2

| Loading Grails 2.2.2

| Configuring classpath

Cannot find plugin descriptor for path '/scratch/jenkins/workspace/watch-scaffolding'.

| Configuring classpath.
| Environment set to development
| Environment set to development.

| Environment set to development..
| Environment set to development...
| Environment set to development....

| Environment set to development.....

| Resolving plugin hibernate. Please wait...

| Plugin 'hibernate' with version '2.2.2' is already installed
| Resolving plugin tomcat. Please wait...

| Plugin 'tomcat' with version '2.2.2' is already installed
| Please make sure you view the README for important information about changes to your source code.
| Project upgraded

[myApp] $ /scratch/jenkins/workspace/myApp/grailsw war --non-interactive

| Loading Grails 2.2.2

| Configuring classpath

| Configuring classpath.
| Environment set to production
| Environment set to production.

| Environment set to production..
| Environment set to production...
| Environment set to production....

| Environment set to production.....

WAR packaging started on myApp version 0.1 build null
| Packaging Grails application

| Retrieving stats about the application

| Error Error executing script War: java.io.IOException: Cannot run program "grails": error=2, No such file or directory (Use --stacktrace to see the full trace)

Build step 'Build With Grails' marked build as failure
[cloudbees-deployer] Skipping deployment as build result is FAILURE
Finished: FAILURE

最佳答案

Grails要求使用GRAILS_HOME / bin设置PATH,而grails jenkins插件无法处理此问题。我已经为这个问题提议a fix

关于grails - Cloudbees Jenkins构建针对Grails 2.2.2应用程序失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16825389/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com