Re: Script result interpreted a a command to execute?

2018-08-26 Thread Idan Adar
Thanks Slide! On Sun, Aug 26, 2018 at 4:25 PM Slide wrote: > It's because your shell command has $() around it. This will try and eval > the subshell value. You don't need the $() at all > > On Sun, Aug 26, 2018, 03:44 Idan Adar wrote: > >> The following block fails... appreciate any insights:

Re: Script result interpreted a a command to execute?

2018-08-26 Thread Slide
It's because your shell command has $() around it. This will try and eval the subshell value. You don't need the $() at all On Sun, Aug 26, 2018, 03:44 Idan Adar wrote: > The following block fails... appreciate any insights: > > workerVersion = sh(script:"\$(ic cs workers ${clusterName} --json |

Script result interpreted a a command to execute?

2018-08-26 Thread Idan Adar
The following block fails... appreciate any insights: workerVersion = sh(script:"\$(ic cs workers ${clusterName} --json | jq -r .[0].kubeVersion)", returnStdout: true).trim() // This returns "1.9.9.1522" slackSend (channel: "certmgr-health", color: '#199515', message: "*$JOB_NAME*, <$BUILD_URL|b