The option "Override Authentication Token?" do not work. I'm only able to use system-wide token.
      Jenkins 2.9

      {{com.bettercloud.vault.VaultException: com.bettercloud.vault.VaultException: Vault responded with HTTP status code: 400
      	at com.bettercloud.vault.api.Logical.read(Logical.java:84)
      	at com.datapipe.jenkins.vault.VaultBuildWrapper.setUp(VaultBuildWrapper.java:151)
      	at jenkins.tasks.SimpleBuildWrapper.setUp(SimpleBuildWrapper.java:145)
      	at hudson.model.Build$BuildExecution.doRun(Build.java:156)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)
      	at hudson.model.Run.execute(Run.java:1720)
      	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      	at hudson.model.ResourceController.execute(ResourceController.java:98)
      	at hudson.model.Executor.run(Executor.java:410)
      Caused by: com.bettercloud.vault.VaultException: Vault responded with HTTP status code: 400
      	at com.bettercloud.vault.api.Logical.read(Logical.java:67)
      	... 8 more
      Build was aborted
      Started calculate disk usage of build
      Finished Calculation of disk usage of build in 0 seconds
      Started calculate disk usage of workspace
      Finished Calculation of disk usage of workspace in 0 seconds
      Finished: ABORTED
      }}
      

          [JENKINS-37203] "Override Authentication Token?" do not work

          Peter Tierno added a comment -

          Thanks for the report. I'll look into this soon.

          Peter Tierno added a comment - Thanks for the report. I'll look into this soon.

          Vaclav Adamec added a comment -

          Also do you plan to support token override for Pipeline ? eg something like this:

          ```
          withCredentials([[$class: 'UsernamePasswordMultiBinding', credentialsId: 'vault',
          usernameVariable: 'VAULT', passwordVariable: 'TOKEN']]) {
          }

          node {
          def secrets = [
          [$class: 'VaultSecret', token: '${env.TOKEN}',path: 'secret/testing', secretValues: ...
          ```

          Vaclav Adamec added a comment - Also do you plan to support token override for Pipeline ? eg something like this: ``` withCredentials([[$class: 'UsernamePasswordMultiBinding', credentialsId: 'vault', usernameVariable: 'VAULT', passwordVariable: 'TOKEN']]) { } node { def secrets = [ [$class: 'VaultSecret', token: '${env.TOKEN}',path: 'secret/testing', secretValues: ... ```

          Do you have any deadline on adding token override for Pipeline ?

          Thank you

          Alexandru Calistru added a comment - Do you have any deadline on adding token override for Pipeline ? Thank you

          Peter Tierno added a comment -

          vadamec yes, i do. time has been an issue though. pr's are welcome. ideally i would like to create a legitimate pipeline step for this.

          Peter Tierno added a comment - vadamec yes, i do. time has been an issue though. pr's are welcome. ideally i would like to create a legitimate pipeline step for this.

          Peter Tierno added a comment -

          m1rf4k I dont have a deadline. time for this has been limited. pr's are welcome.

          Peter Tierno added a comment - m1rf4k I dont have a deadline. time for this has been limited. pr's are welcome.

          Peter Tierno added a comment -

          This is fixed in 2.0.0 which was released today (breaking configuration changes). See the wiki for details.

          Peter Tierno added a comment - This is fixed in 2.0.0 which was released today (breaking configuration changes). See the wiki for details.

            ptierno Peter Tierno
            meshok0 Alexey Kukushkin
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: