NullPointerException on running any gcloud command with oauth credentials

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Critical
    • Component/s: gcloud-sdk-plugin
    • None
    • Environment:
      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

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

              Created:
              Updated: