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
```
[JENKINS-44988] On any kind of job throws a "Unable to connect to Elasticsearch service."
Description |
Original:
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 /Users/inifc/cloudbees/support/cases/50200/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 ``` |
New:
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 ``` |
Priority | Original: Major [ 3 ] | New: Minor [ 4 ] |
This is fixed in version 1.5 as far as I can tell: https://github.com/jenkinsci/kubernetes-pipeline-plugin/commit/1e338c17f69fd20e0e82b0202968a252a297889f#diff-380e8714cb3944594212c4d88163ec66