steps to replicate
- create a Freestyle job with a shell step that makes an echo
- run it
- go to the console and check that you can see the elasticsearch message
```
Started by user admin
[EnvInject] - Loading node environment variables.
Building in workspace /jenkins-home/workspace/test
[test] $ /bin/sh -xe /var/folders/wl/9d6g41r95mzgklb9z172xmlr0000gn/T/hudson3342399358620132751.sh
+ echo 'hello world'
hello world
Unable to connect to Elasticsearch service. Check Elasticsearch is running in the correct namespace
Finished: SUCCESS
```
This is fixed in version 1.5 as far as I can tell: https://github.com/jenkinsci/kubernetes-pipeline-plugin/commit/1e338c17f69fd20e0e82b0202968a252a297889f#diff-380e8714cb3944594212c4d88163ec66