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

Build fails if plugin is enabled for a job without secrets specified

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • hashicorp-vault-plugin
    • None
    • Jenkins server v.2.58, hashicorp-vault-plugin v.2.0, browser IE 11

      When running a simple plan that only binds to the hashicorp-vault-plugin (doesn't use it), crashes with the following error:

      Started by user Datapipe Administrator
      Building in workspace C:\Program Files (x86)\Jenkins\workspace\.test\show-vault-environment
      FATAL: null
      java.lang.NullPointerException
      {{ at com.datapipe.jenkins.vault.VaultBuildWrapper.provideEnvironmentVariablesFromVault(VaultBuildWrapper.java:126)}}
      {{ at com.datapipe.jenkins.vault.VaultBuildWrapper.setUp(VaultBuildWrapper.java:89)}}
      {{ 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:534)}}
      {{ at hudson.model.Run.execute(Run.java:1735)}}
      {{ at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)}}
      {{ at hudson.model.ResourceController.execute(ResourceController.java:97)}}
      {{ at hudson.model.Executor.run(Executor.java:405)}}
      Finished: FAILURE

            ptierno Peter Tierno
            ojhelweg Otto Helweg
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: