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

net.sf.json.JSONException: JSONObject["result"] is not a Boolean

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • saltstack-plugin
    • None
    • jenkins 1.635
      java 1.7.0_79
      saltstack-plugin 1.7.0
      saltmaster 2015.8.8.2

      When we use the saltstack-plugin to run "state.highstate" with "test=true" as the only KWArgument if there are any changes that would've been run we get the following output:

      [EnvInject] - Loading node environment variables.
      Building remotely on <host> in workspace <workspace>
      Running jid: 20160502104957249184
      Waiting for 4 minions
      0 minions are done
      Will check status every 10 seconds...
      ERROR: Build step failed with exception
      net.sf.json.JSONException: JSONObject["result"] is not a Boolean.
      	at net.sf.json.JSONObject.getBoolean(JSONObject.java:1929)
      	at com.waytta.Utils.validateInnerJsonObject(Utils.java:208)
      	at com.waytta.Utils.validateInnerJsonObject(Utils.java:215)
      	at com.waytta.Utils.validateFunctionCall(Utils.java:178)
      	at com.waytta.SaltAPIBuilder.perform(SaltAPIBuilder.java:377)
      	at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:785)
      	at hudson.model.Build$BuildExecution.build(Build.java:205)
      	at hudson.model.Build$BuildExecution.doRun(Build.java:162)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:537)
      	at hudson.model.Run.execute(Run.java:1741)
      	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      	at hudson.model.ResourceController.execute(ResourceController.java:98)
      	at hudson.model.Executor.run(Executor.java:410)
      Build step 'Send a message to Salt API' marked build as failure
      Notifying upstream projects of job completion
      Finished: FAILURE
      

      If there is an error with any state on any minion then this will return correctly. If there are no changes on any state on any minion it will also return correctly. It's only if there are changes that would be applied that we see this information.

            mchugh19 Christian McHugh
            zmcneilly Zach McNeilly
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: