Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

bamboo codedeploy error: No enum constant com.atlassian.bamboo.plugins.aws.codedeploy.DeploymentStat

Jonathan Voss July 31, 2017

# Background

I am trying to use Bamboo to deploy a Laravel 5.4 project to AWS CodeDeploy. I split it into two parts: 1) the build plan, which runs `composer install` and unit tests, then 2) the deployment plan, which takes the files and runs Bamboo's CodeDeploy plugin.

It was working at first, and then I randomly got the below error. I could not find this error anywhere on the internet, so I decided to post it here to see if anyone has an idea of what actually went wrong. Nothing about this makes any sense to me.

# Full Error

 31-Jul-2017 19:03:58 Attempt #18/60: status 'Ready'.
31-Jul-2017 19:03:58 Deployment overview: {Pending: 1,InProgress: 0,Succeeded: 0,Failed: 0,Skipped: 0}.
31-Jul-2017 19:03:58 Error occurred while running Task '(3)' of type com.atlassian.bamboo.plugins.atlassian-bamboo-plugin-aws-codedeploy:task.aws.codeDeploy.
31-Jul-2017 19:03:58 java.lang.IllegalArgumentException: No enum constant com.atlassian.bamboo.plugins.aws.codedeploy.DeploymentStatus.READY
31-Jul-2017 19:03:58 at java.lang.Enum.valueOf(Enum.java:238)
31-Jul-2017 19:03:58 at com.atlassian.bamboo.plugins.aws.codedeploy.DeploymentStatus.valueOf(DeploymentStatus.java:8)
31-Jul-2017 19:03:58 at com.atlassian.bamboo.plugins.aws.codedeploy.DeploymentStatus.fromDisplayName(DeploymentStatus.java:36)
31-Jul-2017 19:03:58 at com.atlassian.bamboo.plugins.aws.codedeploy.CodeDeployTask.retrieveDeploymentStatus(CodeDeployTask.java:221)
31-Jul-2017 19:03:58 at com.atlassian.bamboo.plugins.aws.codedeploy.CodeDeployTask.executeDeployment(CodeDeployTask.java:165)
31-Jul-2017 19:03:58 at com.atlassian.bamboo.plugins.aws.codedeploy.CodeDeployTask.execute(CodeDeployTask.java:73)
31-Jul-2017 19:03:58 at com.atlassian.bamboo.task.TaskExecutorImpl.lambda$executeTasks$3(TaskExecutorImpl.java:317)
31-Jul-2017 19:03:58 at com.atlassian.bamboo.task.TaskExecutorImpl.executeTaskWithPrePostActions(TaskExecutorImpl.java:246)
31-Jul-2017 19:03:58 at com.atlassian.bamboo.task.TaskExecutorImpl.executeTasks(TaskExecutorImpl.java:317)
31-Jul-2017 19:03:58 at com.atlassian.bamboo.task.TaskExecutorImpl.execute(TaskExecutorImpl.java:118)
31-Jul-2017 19:03:58 at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:74)
31-Jul-2017 19:03:58 at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:216)
31-Jul-2017 19:03:58 at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl$1.call(BuildAgentControllerImpl.java:139)
31-Jul-2017 19:03:58 at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl$1.call(BuildAgentControllerImpl.java:130)
31-Jul-2017 19:03:58 at com.atlassian.bamboo.variable.CustomVariableContextImpl.withVariableSubstitutor(CustomVariableContextImpl.java:221)
31-Jul-2017 19:03:58 at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:129)
31-Jul-2017 19:03:58 at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:138)
31-Jul-2017 19:03:58 at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:51)
31-Jul-2017 19:03:58 at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:31)
31-Jul-2017 19:03:58 at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:20)
31-Jul-2017 19:03:58 at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:52)
31-Jul-2017 19:03:58 at java.lang.Thread.run(Thread.java:748)
31-Jul-2017 19:03:58 Finalising the build...
31-Jul-2017 19:03:58 Stopping timer.
31-Jul-2017 19:03:58 Build xxxxxxx-xxxxxxx-xxxxxxx completed.
31-Jul-2017 19:03:58 Finished processing deployment result Deployment of 'release-3' on 'Production'

 

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events