I am trying to get credentials stored in hashicorp vault using below script
withCredentials([vaultFile(credentialsId: 'someValue', variable: 'var1')]){
....
.....
}
but when when i run i get this below error java.lang.NoSuchMethodError: No such DSL method ‘vaultFile’ found among steps
credential is of type ‘Secret file’