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

Getting NullPointerException com.bettercloud.vault.api.Logical.read after upgrade to 2.3.0

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Blocker Blocker
    • hashicorp-vault-plugin
    • None
    • Plugin: 2.3.0
      Java: 1.8.0_202
      Jenkins: 2.187-1.1
      EL7

      Getting this after upgrade to 2.3.0

      java.lang.NullPointerException
      	at com.bettercloud.vault.api.Logical.read(Logical.java:73)
      	at com.datapipe.jenkins.vault.VaultAccessor.read(VaultAccessor.java:52)
      	at com.datapipe.jenkins.vault.VaultBuildWrapper.provideEnvironmentVariablesFromVault(VaultBuildWrapper.java:137)
      	at com.datapipe.jenkins.vault.VaultBuildWrapper.setUp(VaultBuildWrapper.java:90)
      	at jenkins.tasks.SimpleBuildWrapper.setUp(SimpleBuildWrapper.java:146)
      	at hudson.model.Build$BuildExecution.doRun(Build.java:157)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:504)
      	at hudson.model.Run.execute(Run.java:1815)
      	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      	at hudson.model.ResourceController.execute(ResourceController.java:97)
      	at hudson.model.Executor.run(Executor.java:429)
      

      using Vault app role and Vault Plugin to get secrets to shell build step. Downgrade back to 2.2.0 helps.

            jetersen Joseph Petersen
            vadamec Vaclav Adamec
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: