-
Improvement
-
Resolution: Fixed
-
Critical
-
None
My issue is that I am calling state.highstate (jenkins groovy code:
salt authtype: 'pam', clientInterface: local(arguments: '"-state-output=changes -v"', function: 'state.highstate', target: 'acceptanceGroup', targettype: 'nodegroup'), credentialsId: 'SOMEUUID', saveFile: true, servername: 'http://salt.domain.sk:8000'
) and I am not able to programatically get result of highstates. Even, when I pass "--hard-crash" argument, result is always meaningless for some computer processing. I can hardcode search for keywords as "stacktrace", "Fail", "False", "jinja error". Is it only way? I have expectd main reason why to bother with salt api and salt plugin for jenkins that I will get proper machine friendly results opposed to call to shell.
Is there any possibility to get result of highstate or at least exit code of salt-call invocation from minion?