-
New Feature
-
Resolution: Unresolved
-
Minor
-
None
Currently it is not possible to use environment variables for the logstash-plugin configuration.
The plugin does not substitute environment variables like ${var}, $var.
It looks like it is a matter of using the "expand(String)" functionality.
http://javadoc.jenkins-ci.org/hudson/EnvVars.html#expand(java.lang.String)
It would be a useful feature to be able to use environment variables within the plugin configuration.
The Logstash plugin sends a lot of good build metrics. However, it will be nice to be able to create variables in a Jenkinsfile and be able to send that over to ELK. I'd like to be able to send a log_url variable through the Logstash plugin that users will be able to search for in Kibana and navigate to.