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
```