2014-09-28 84 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