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

NPE when using Vault Plugin with older version of vault

XMLWordPrintable

      Using the latest version from master, and vault 0.9.0

       

      ava.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:136)
      	at com.datapipe.jenkins.vault.VaultBuildWrapper.setUp(VaultBuildWrapper.java:89)
      	at org.jenkinsci.plugins.workflow.steps.CoreWrapperStep$Execution2.doStart(CoreWrapperStep.java:97)
      	at org.jenkinsci.plugins.workflow.steps.GeneralNonBlockingStepExecution.lambda$run$0(GeneralNonBlockingStepExecution.java:77)
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      	at java.lang.Thread.run(Thread.java:748) 

       

      Looks like this was introduced in https://github.com/jenkinsci/hashicorp-vault-plugin/pull/23

      also reported in a comment there https://github.com/jenkinsci/hashicorp-vault-plugin/pull/23#issuecomment-467215478

      i can confirm that code in pr20 does work without this error

            jetersen Joseph Petersen
            antonmos Anton Mostovoy
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: