2016-07-29 79 views
0

我打算在Openshift Redhat Cloud Server上部署JSP網站。 我的域名是http://jsp-moristems.rhcloud.comOpenshift構建失敗/取消

我使用Git克隆了應用程序,刪除了src文件夾和pom.xml文件,複製了/ webapps下的ROOT.war(這是我要部署的war文件),然後推送。

但我看到這個錯誤:

E:\git\jsp [master ↑]> git push 
Warning: Permanently added 'jsp-moristems.rhcloud.com,107.21.78.52' (RSA) to the list of known hosts. 
Counting objects: 4, done. 
Delta compression using up to 8 threads. 
Compressing objects: 100% (4/4), done. 
Writing objects: 100% (4/4), 43.44 MiB | 338.00 KiB/s, done. 
Total 4 (delta 0), reused 0 (delta 0) 
remote: Executing Jenkins build. 
remote: 
remote: You can track your build at https://red-moristems.rhcloud.com/job/jsp-build 
remote: 
remote: Waiting for build to schedule............................... 
remote: **BUILD FAILED/CANCELLED** 
remote: Please see the Jenkins log for more details via 'rhc tail' 
remote: !!!!!!!! 
remote: Deployment Halted! 
remote: If the build failed before the deploy step, your previous 
remote: build is still running. Otherwise, your application may be 
remote: partially deployed or inaccessible. 
remote: Fix the build and try again. 
remote: !!!!!!!! 
remote: An error occurred executing 'gear postreceive' (exit code: 1) 
remote: Error message: CLIENT_ERROR: Failed to execute: 'control post-receive' for /var/lib/openshift/5799d1f889f5cf15800000a8/jenkins-client 
remote: 
remote: For more details about the problem, try running the command again with the '--trace' option. 
To ssh://[email protected]/~/git/jsp.git 
ad41e5f..2bd7925 master -> master 

我跟着儘可能精確openshift指南說,讓我想不通我做錯了什麼。 如果你遇到過這樣的問題,請幫助我。

回答

0

您不應該使用Jenkins部署已經構建的war文件。 Jenkins專門尋找pom.xml和src文件夾,以便它可以編譯代碼並構建您的項目。如果你想部署一個戰爭文件,刪除/關閉jenkins,它應該沒問題。