Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-38408

NullPointerException on running any gcloud command with oauth credentials

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • gcloud-sdk-plugin
    • None
    • I get this error using:

      Jenkins 2.7.1
      Debian

      Also in:

      Jenkins 1.688
      Bitnami Google app image

      NOTE: this is not a Jenkins Core Bug, but I was not able to assign "gcloud-sdk-plugin" component, because it's not yet created. Sorry about that.

      This exception is lauched in any case I try.

      For example, running a simple "auth list" command using Google Credentials using a valid gcloud authentication json file, I get:

      FATAL: null
      java.lang.NullPointerException
      at com.byclosure.jenkins.plugins.gcloud.GCloudBuildWrapper.decorateLauncher(GCloudBuildWrapper.java:56)
      at hudson.model.AbstractBuild$AbstractBuildExecution.createLauncher(AbstractBuild.java:566)
      at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:492)
      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:410)
      Started calculate disk usage of build
      Finished Calculation of disk usage of build in 0 seconds
      Finished: FAILURE

          [JENKINS-38408] NullPointerException on running any gcloud command with oauth credentials

          Oleg Nenashev added a comment -

          Not a core bug

          Oleg Nenashev added a comment - Not a core bug

          We are hitting this with 1.596.

          Daniel Tehranian added a comment - We are hitting this with 1.596.

          Hi Team,

          Please someone have a look into, i have got the similar issue on Gcloud-SDK V0.0.3.

          Below is the error log
          ERROR: Processing failed due to a bug in the code. Please report this to the issue tracker (
          https://jenkins.io/redirect/report-an-issue
          ).
          java.lang.NullPointerException
          at com.byclosure.jenkins.plugins.gcloud.GCloudBuildWrapper.getSDK(GCloudBuildWrapper.java:92)
          at com.byclosure.jenkins.plugins.gcloud.GCloudBuildWrapper.setUp(GCloudBuildWrapper.java:52)
          at jenkins.tasks.SimpleBuildWrapper.setUp(SimpleBuildWrapper.java:146)
          at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:667)
          at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:504)
          at hudson.model.Run.execute(Run.java:1815)
          at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:543)
          at hudson.model.ResourceController.execute(ResourceController.java:97)
          at hudson.model.Executor.run(Executor.java:429)
          project=hudson.maven.MavenModuleSet@15b6d37a[dk0871-e/gcloud-integration]
          project.getModules()=[]
          project.getRootModule()=null
          FATAL: null
          java.lang.NullPointerException
          at com.byclosure.jenkins.plugins.gcloud.GCloudBuildWrapper.getSDK(GCloudBuildWrapper.java:92)
          at com.byclosure.jenkins.plugins.gcloud.GCloudBuildWrapper.setUp(GCloudBuildWrapper.java:52)
          at jenkins.tasks.SimpleBuildWrapper.setUp(SimpleBuildWrapper.java:146)
          at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:667)
          at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:504)
          at hudson.model.Run.execute(Run.java:1815)
          at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:543)
          at hudson.model.ResourceController.execute(ResourceController.java:97)
          at hudson.model.Executor.run(Executor.java:429)
          Finished: FAILURE

          sukhendra parouha added a comment - Hi Team, Please someone have a look into, i have got the similar issue on Gcloud-SDK V0.0.3. Below is the error log ERROR: Processing failed due to a bug in the code. Please report this to the issue tracker ( https://jenkins.io/redirect/report-an-issue ). java.lang.NullPointerException at com.byclosure.jenkins.plugins.gcloud.GCloudBuildWrapper.getSDK(GCloudBuildWrapper.java:92) at com.byclosure.jenkins.plugins.gcloud.GCloudBuildWrapper.setUp(GCloudBuildWrapper.java:52) at jenkins.tasks.SimpleBuildWrapper.setUp(SimpleBuildWrapper.java:146) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:667) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:504) at hudson.model.Run.execute(Run.java:1815) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:543) at hudson.model.ResourceController.execute(ResourceController.java:97) at hudson.model.Executor.run(Executor.java:429) project=hudson.maven.MavenModuleSet@15b6d37a [dk0871-e/gcloud-integration] project.getModules()=[] project.getRootModule()=null FATAL: null java.lang.NullPointerException at com.byclosure.jenkins.plugins.gcloud.GCloudBuildWrapper.getSDK(GCloudBuildWrapper.java:92) at com.byclosure.jenkins.plugins.gcloud.GCloudBuildWrapper.setUp(GCloudBuildWrapper.java:52) at jenkins.tasks.SimpleBuildWrapper.setUp(SimpleBuildWrapper.java:146) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:667) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:504) at hudson.model.Run.execute(Run.java:1815) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:543) at hudson.model.ResourceController.execute(ResourceController.java:97) at hudson.model.Executor.run(Executor.java:429) Finished: FAILURE

            jrluis João Luís
            javihgil Javi H. Gil
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: