Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-44442

Result of calt call is not machine friendly

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Critical Critical
    • saltstack-plugin
    • 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?

       

            mchugh19 Christian McHugh
            lubo_varga_nike Lubo Varga
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: