无法连接到部署到CloudBees的应用程序上的主机MySQL数据库

时间:2012-08-30 23:01:53

标签: mysql cloudbees

我按照说明here但是在尝试时我收到以下错误:

hudson.util.IOException2: remote file operation failed: /scratch/jenkins/workspace/Xinco Demo Publish/Xinco/target/Xinco-2012-08-30_00-20-05.war at hudson.remoting.Channel@1fc6bdea:s-50b0ae50
    at hudson.FilePath.act(FilePath.java:783)
    at hudson.FilePath.act(FilePath.java:769)
    at com.cloudbees.plugins.deployer.DeployPublisher.perform(DeployPublisher.java:108)
    at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
    at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:707)
    at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:682)
    at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:660)
    at hudson.model.Build$RunnerImpl.post2(Build.java:162)
    at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:629)
    at hudson.model.Run.run(Run.java:1433)
    at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
    at hudson.model.ResourceController.execute(ResourceController.java:88)
    at hudson.model.Executor.run(Executor.java:238)
Caused by: hudson.remoting.ProxyException: hudson.util.IOException2: Server.InternalError - Invalid WEB-INF/cloudbees-web.xml: resource
    at com.cloudbees.plugins.deployer.deployables.Deployable.deployFile(Deployable.java:151)
    at com.cloudbees.plugins.deployer.deployables.Deployable$DeployFileCallable.invoke(Deployable.java:342)
    at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2048)
    at hudson.remoting.UserRequest.perform(UserRequest.java:118)
    at hudson.remoting.UserRequest.perform(UserRequest.java:48)
    at hudson.remoting.Request$2.run(Request.java:287)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    at java.util.concurrent.FutureTask.run(FutureTask.java:138)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:662)
Caused by: hudson.remoting.ProxyException: com.cloudbees.api.BeesClientException: Server.InternalError - Invalid WEB-INF/cloudbees-web.xml: resource
    at com.cloudbees.api.BeesClient.readResponse(BeesClient.java:850)
    at com.cloudbees.api.BeesClient.applicationDeployArchive(BeesClient.java:435)
    at com.cloudbees.plugins.deployer.deployables.Deployable.deployFile(Deployable.java:123)
    ... 11 more
Build step 'Deploy to CloudBees' marked build as failure

可以看到完整输出here

2 个答案:

答案 0 :(得分:4)

Caused by: hudson.remoting.ProxyException: com.cloudbees.api.BeesClientException: Server.InternalError - Invalid WEB-INF/cloudbees-web.xml: resource

您的cloudbees-web.xml格式不正确。

请参阅http://wiki.cloudbees.com/bin/view/RUN/CloudBeesWebXml - 因为cloudbees-web.xml需要包含在外部<cloudbees-web-app>元素中

答案 1 :(得分:0)

如果您不想要,也不必使用cloudbees-web.xml - 如果将应用程序绑定到数据库,它将自动将其作为命名数据源使用。

(参见bees app:bind命令)。

您只需执行一次 - 然后应用程序将了解数据源。

http://developer.cloudbees.com/bin/view/RUN/Resource+Management

https://developer.cloudbees.com/bin/view/RUN/DatabaseGuide

(对不起,还在处理文档)。