2014-09-28 104 views
0

我试图从詹金斯的应用程序从开发建设@云部署到AWS使用在 https://developer.cloudbees.com/bin/view/DEV/ElasticBeanstalkCloudBees的AWS弹性魔豆部署 - 应用程序没有发现错误

但是给出的说明 ,我坚持,因为“CloudBees的-部署:elastic-beanstalk“不是 能够在AWS上找到我的应用程序。

下面是詹金斯输出控制台建立

[cloudbees-deployer:elastic-beanstalk] Checking if S3 bucket 
    'photoid-reports-aws' exists... 

    [cloudbees-deployer:elastic-beanstalk] Checking if S3 bucket 
    'photoid-reports-aws' location... 
    [cloudbees-deployer:elastic-beanstalk] S3 bucket 'photoid-reports-aws' 
    location matches: us-east-1 
    [cloudbees-deployer:elastic-beanstalk] Uploading application to S3 
    bucket 'photoid-reports-aws/jenkins-photoid-reports-aws-9'... 

    [cloudbees-deployer:elastic-beanstalk] Application uploaded to S3 
    bucket 'photoid-reports-aws' with key 
    'jenkins-photoid-reports-aws-9/deploytest', version id 'null' and eTag 
    '427d78c1e5bfbaa7a1d10f46280236cc-8' 
    [cloudbees-deployer:elastic-beanstalk] Checking if application version 
    'prod-build' exists... 
    [cloudbees-deployer:elastic-beanstalk] Creating application version 
    'prod-build'... 

    com.cloudbees.plugins.deployer.exceptions.DeployException: No 
    Application named 'deploytest' found. (Service: AWSElasticBeanstalk; 
    Status Code: 400; Error Code: InvalidParameterValue; Request ID: 
    0cc70036-470e-11e4-90e5-1717b7862a74) 
    at com.cloudbees.plugins.deployer.engines.Engine.process(Engine.java:185) 
    at com.cloudbees.plugins.deployer.engines.Engine.perform(Engine.java:119) 
    at com.cloudbees.plugins.deployer.DeployBuilder.perform(DeployBuilder.java:104) 
    at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) 
    at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:825) 
    at hudson.model.Build$BuildExecution.build(Build.java:199) 
    at hudson.model.Build$BuildExecution.doRun(Build.java:160) 
    at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:606) 
    at hudson.model.Run.execute(Run.java:1684) 
    at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) 
    at hudson.model.ResourceController.execute(ResourceController.java:88) 
    at hudson.model.Executor.run(Executor.java:232) 
    Caused by: com.amazonaws.AmazonServiceException: No Application named 
    'deploytest' found. (Service: AWSElasticBeanstalk; Status Code: 400; 
    Error Code: InvalidParameterValue; Request ID: 
    0cc70036-470e-11e4-90e5-1717b7862a74) 
    at com.amazonaws.http.AmazonHttpClient.handleErrorResponse(AmazonHttpClient.java:820) 
    at com.amazonaws.http.AmazonHttpClient.executeHelper(AmazonHttpClient.java:439) 
    at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:245) 
    at com.amazonaws.services.elasticbeanstalk.AWSElasticBeanstalkClient.invoke(AWSElasticBeanstalkClient.java:1679) 
    at com.amazonaws.services.elasticbeanstalk.AWSElasticBeanstalkClient.createApplicationVersion(AWSElasticBeanstalkClient.java:540) 
    at com.cloudbees.plugins.deployer.impl.amazon.EngineImpl$DeployFileCallable.invoke(EngineImpl.java:355) 
    at com.cloudbees.plugins.deployer.impl.amazon.EngineImpl$DeployFileCallable.invoke(EngineImpl.java:224) 
    at com.cloudbees.plugins.deployer.engines.Engine$FingerprintingWrapper.invoke(Engine.java:271) 
    at com.cloudbees.plugins.deployer.engines.Engine$FingerprintingWrapper.invoke(Engine.java:259) 
    at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2462) 
    at hudson.remoting.UserRequest.perform(UserRequest.java:118) 
    at hudson.remoting.UserRequest.perform(UserRequest.java:48) 
    at hudson.remoting.Request$2.run(Request.java:328) 
    at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) 
    at java.util.concurrent.FutureTask.run(FutureTask.java:262) 
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) 
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) 
    at java.lang.Thread.run(Thread.java:744) 
    Build step 'Deploy applications' marked build as failure 
    Finished: FAILURE 

回答

0

有趣。看起来Cloudbees假设您已经有一个名为“deploytest”的应用程序。日志看起来像它只是试图创建一个新的应用程序版本,你可以看到S3上传成功后。它会检查以确保应用程序版本不存在,然后尝试创建它。

如果您通过Elastic Beanstalk Console设置名为'deploytest'的新应用程序,会发生什么?只需选择所需的环境层,平台,然后选择环境类型,然后再次运行。当它要求应用程序版本时,您可以使用默认应选择的示例应用程序。

让我知道是否有帮助。

+0

我首先通过Beanstalk控制台创建了“deploytest”应用程序,然后在Cloudbees中运行以上代码。 – pradeep 2014-10-02 08:11:30

+0

您是否在两种情况下使用相同的区域? – 2014-10-02 15:09:24

+0

我正在使用不同的地区。谢谢乔希。 – pradeep 2014-10-07 05:32:28