Exception while deploying to Amazon Elastic BeanStalk

Issue

While deploying on AWS, this exception shows up in your build job:

com.cloudbees.plugins.deployer.exceptions.DeployException: com/amazonaws/services/elasticbeanstalk/AWSElasticBeanstalk
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:88)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:780)
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:543)
at hudson.model.Run.execute(Run.java:1745)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:89)
at hudson.model.Executor.run(Executor.java:240)
Caused by: java.lang.NoClassDefFoundError: com/amazonaws/services/elasticbeanstalk/AWSElasticBeanstalk
at com.cloudbees.plugins.deployer.impl.amazon.EngineImpl.newDeployActor(EngineImpl.java:95)
at com.cloudbees.plugins.deployer.impl.amazon.EngineImpl.newDeployActor(EngineImpl.java:60)
at com.cloudbees.plugins.deployer.engines.Engine.process(Engine.java:178)
... 11 more
Caused by: java.lang.ClassNotFoundException: com.amazonaws.services.elasticbeanstalk.AWSElasticBeanstalk
at jenkins.util.AntClassLoader.findClassInComponents(AntClassLoader.java:1375)
at jenkins.util.AntClassLoader.findClass(AntClassLoader.java:1325)
at jenkins.util.AntClassLoader.loadClass(AntClassLoader.java:1078)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)

Environment

  • CloudBees Amazon Web Services Credentials Plugin version 1.2
  • CloudBees AWS Deployer Plugin 1.8

Resolution

Upgrade CloudBees AWS Deployer Plugin to version 1.9.

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.