You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
plugin doesn't detect a non zero exit status returned from minion cmd.run function #18
root@master:~# salt minion cmd.run 'true 1'
minion:
root@master:~# echo $?
0
root@master:~# salt minion cmd.run 'false 1'
minion:
ERROR: Minions returned with non-zero exit code
root@master:~# echo $?
11
root@master:~#
The plugin doesn't detect the error and continues the job.
It would rock if plugin detects this situation and fails the job (or not ? config parameter ?)
Activity
mchugh19 commentedon Apr 8, 2016
Thanks for reporting. I'll get on it
mchugh19 commentedon Apr 11, 2016
Hmmm. It appears this isn't exposed through the salt-api.
Here's the output from
cmd.run 'false 1':So first we'll need salt-api updated as mentioned in saltstack/salt/issues/18510
zerthimon commentedon Apr 11, 2016
So, salt CLI command receives the exit status from minion and exits correctly, but salt-api doesn't expose it to the caller, right?
mchugh19 commentedon Apr 11, 2016
mchugh19 commentedon Jul 30, 2018
The salt-api has been enhanced with the 2017.7 release, and this will be supported in the next release of the Jenkins plugin.
zerthimon commentedon Jul 30, 2018
Hell yeah !!!
mchugh19 commentedon Aug 7, 2018
This was corrected in the 3.2.0 release. It should be available within the next 24 hours.