Ainda não tem acesso? Estude com a gente! Matricule-se
Ainda não tem acesso? Estude com a gente! Matricule-se

Problemas ao fazer deploy com Jenkins

Estou tendo problemas para fazer o deploy algumas tentativas aparaceram o seguinte erro no console do Jenkins:

Failed CodeDeploy post-build step; exception follows.
Deployment Group 'f623b29a-944e-4c33-9d4b-a805df86c965' is already deploying deployment 'd-9X43S47CB' (Service: AmazonCodeDeploy; Status Code: 400; Error Code: DeploymentLimitExceededException; Request ID: 0b79269e-1ad5-4b0f-913d-514a180c5083)
com.amazonaws.services.codedeploy.model.DeploymentLimitExceededException: Deployment Group 'f623b29a-944e-4c33-9d4b-a805df86c965' is already deploying deployment 'd-9X43S47CB' (Service: AmazonCodeDeploy; Status Code: 400; Error Code: DeploymentLimitExceededException; Request ID: 0b79269e-1ad5-4b0f-913d-514a180c5083)
    at com.amazonaws.http.AmazonHttpClient$RequestExecutor.handleErrorResponse(AmazonHttpClient.java:1712)
    at com.amazonaws.http.AmazonHttpClient$RequestExecutor.executeOneRequest(AmazonHttpClient.java:1367)
    at com.amazonaws.http.AmazonHttpClient$RequestExecutor.executeHelper(AmazonHttpClient.java:1113)
    at com.amazonaws.http.AmazonHttpClient$RequestExecutor.doExecute(AmazonHttpClient.java:770)
    at com.amazonaws.http.AmazonHttpClient$RequestExecutor.executeWithTimer(AmazonHttpClient.java:744)
    at com.amazonaws.http.AmazonHttpClient$RequestExecutor.execute(AmazonHttpClient.java:726)
    at com.amazonaws.http.AmazonHttpClient$RequestExecutor.access$500(AmazonHttpClient.java:686)
    at com.amazonaws.http.AmazonHttpClient$RequestExecutionBuilderImpl.execute(AmazonHttpClient.java:668)
    at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:532)
    at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:512)
    at com.amazonaws.services.codedeploy.AmazonCodeDeployClient.doInvoke(AmazonCodeDeployClient.java:4152)
    at com.amazonaws.services.codedeploy.AmazonCodeDeployClient.invoke(AmazonCodeDeployClient.java:4119)
    at com.amazonaws.services.codedeploy.AmazonCodeDeployClient.invoke(AmazonCodeDeployClient.java:4108)
    at com.amazonaws.services.codedeploy.AmazonCodeDeployClient.executeCreateDeployment(AmazonCodeDeployClient.java:1535)
    at com.amazonaws.services.codedeploy.AmazonCodeDeployClient.createDeployment(AmazonCodeDeployClient.java:1506)
    at com.amazonaws.codedeploy.AWSCodeDeployPublisher.createDeployment(AWSCodeDeployPublisher.java:418)
    at com.amazonaws.codedeploy.AWSCodeDeployPublisher.perform(AWSCodeDeployPublisher.java:240)
    at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:79)
    at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
    at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:741)
    at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690)
    at hudson.model.Build$BuildExecution.post2(Build.java:186)
    at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:635)
    at hudson.model.Run.execute(Run.java:1843)
    at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
    at hudson.model.ResourceController.execute(ResourceController.java:97)
    at hudson.model.Executor.run(Executor.java:429)
ERROR: Step ‘Deploy an application to AWS CodeDeploy’ failed: null
Finished: FAILURE
`

Outro detalhe importante é que meu console aws é um pouco ferente do que esta mostrando no curso.

Não estou utilizando Auto Scaling

Prints da console

2 respostas

Faz um restart do seu AWS CodeDeploy, parece que você excedeu os 10 deployments default. https://docs.aws.amazon.com/pt_br/codedeploy/latest/userguide/limits.html

Mas como pode ver na imagem nem 1 se quer deu certo. Eu deletei a aplicação e comecei de novo, mesmo assim não deu certo.