java.lang.RuntimeException: java.lang.NullPointerException: No credentials provided for build!!!

Jenkins JIRA | Joel Sonoda | 1 year ago
  1. 0

    With version 1.4.4, I was able to deploy using the EC2 IAM Role. When I update to version 1.5, I get the following exception: {noformat} ERROR: Build step failed with exception java.lang.RuntimeException: java.lang.NullPointerException: No credentials provided for build!!! at org.jenkinsci.plugins.awsbeanstalkpublisher.extensions.AWSEBSetup.perform(AWSEBSetup.java:25) at org.jenkinsci.plugins.awsbeanstalkpublisher.AWSEBBuilder.perform(AWSEBBuilder.java:65) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779) at hudson.model.Build$BuildExecution.build(Build.java:205) at hudson.model.Build$BuildExecution.doRun(Build.java:162) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:537) at hudson.model.Run.execute(Run.java:1741) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:381) Caused by: java.lang.NullPointerException: No credentials provided for build!!! at org.jenkinsci.plugins.awsbeanstalkpublisher.extensions.AWSEBElasticBeanstalkSetup.getActualcredentials(AWSEBElasticBeanstalkSetup.java:157) at org.jenkinsci.plugins.awsbeanstalkpublisher.AWSEBEnvironmentUpdater.<init>(AWSEBEnvironmentUpdater.java:50) at org.jenkinsci.plugins.awsbeanstalkpublisher.extensions.AWSEBElasticBeanstalkSetup.perform(AWSEBElasticBeanstalkSetup.java:164) at org.jenkinsci.plugins.awsbeanstalkpublisher.extensions.AWSEBSetup.perform(AWSEBSetup.java:21) ... 10 more {noformat}

    Jenkins JIRA | 1 year ago | Joel Sonoda
    java.lang.RuntimeException: java.lang.NullPointerException: No credentials provided for build!!!
  2. 0

    With version 1.4.4, I was able to deploy using the EC2 IAM Role. When I update to version 1.5, I get the following exception: {noformat} ERROR: Build step failed with exception java.lang.RuntimeException: java.lang.NullPointerException: No credentials provided for build!!! at org.jenkinsci.plugins.awsbeanstalkpublisher.extensions.AWSEBSetup.perform(AWSEBSetup.java:25) at org.jenkinsci.plugins.awsbeanstalkpublisher.AWSEBBuilder.perform(AWSEBBuilder.java:65) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779) at hudson.model.Build$BuildExecution.build(Build.java:205) at hudson.model.Build$BuildExecution.doRun(Build.java:162) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:537) at hudson.model.Run.execute(Run.java:1741) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:381) Caused by: java.lang.NullPointerException: No credentials provided for build!!! at org.jenkinsci.plugins.awsbeanstalkpublisher.extensions.AWSEBElasticBeanstalkSetup.getActualcredentials(AWSEBElasticBeanstalkSetup.java:157) at org.jenkinsci.plugins.awsbeanstalkpublisher.AWSEBEnvironmentUpdater.<init>(AWSEBEnvironmentUpdater.java:50) at org.jenkinsci.plugins.awsbeanstalkpublisher.extensions.AWSEBElasticBeanstalkSetup.perform(AWSEBElasticBeanstalkSetup.java:164) at org.jenkinsci.plugins.awsbeanstalkpublisher.extensions.AWSEBSetup.perform(AWSEBSetup.java:21) ... 10 more {noformat}

    Jenkins JIRA | 1 year ago | Joel Sonoda
    java.lang.RuntimeException: java.lang.NullPointerException: No credentials provided for build!!!
  3. 0

    Deploying using Instance Profile not working

    GitHub | 1 year ago | tchdp
    java.lang.RuntimeException: java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      No credentials provided for build!!!

      at org.jenkinsci.plugins.awsbeanstalkpublisher.extensions.AWSEBElasticBeanstalkSetup.getActualcredentials()
    2. org.jenkinsci.plugins
      AWSEBBuilder.perform
      1. org.jenkinsci.plugins.awsbeanstalkpublisher.extensions.AWSEBElasticBeanstalkSetup.getActualcredentials(AWSEBElasticBeanstalkSetup.java:157)
      2. org.jenkinsci.plugins.awsbeanstalkpublisher.AWSEBEnvironmentUpdater.<init>(AWSEBEnvironmentUpdater.java:50)
      3. org.jenkinsci.plugins.awsbeanstalkpublisher.extensions.AWSEBElasticBeanstalkSetup.perform(AWSEBElasticBeanstalkSetup.java:164)
      4. org.jenkinsci.plugins.awsbeanstalkpublisher.extensions.AWSEBSetup.perform(AWSEBSetup.java:21)
      5. org.jenkinsci.plugins.awsbeanstalkpublisher.AWSEBBuilder.perform(AWSEBBuilder.java:65)
      5 frames
    3. Hudson
      Executor.run
      1. hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      2. hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
      3. hudson.model.Build$BuildExecution.build(Build.java:205)
      4. hudson.model.Build$BuildExecution.doRun(Build.java:162)
      5. hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:537)
      6. hudson.model.Run.execute(Run.java:1741)
      7. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      8. hudson.model.ResourceController.execute(ResourceController.java:98)
      9. hudson.model.Executor.run(Executor.java:381)
      9 frames