<div dir="ltr"><div>Hi reading the docs I came across<br><span style="font-family:comic sans ms,sans-serif"><i><br></i></span><dl class=""><dt><span style="font-family:comic sans ms,sans-serif"><i><span class=""><span class="">decodeRC</span></span></i></span></dt><dd><span style="font-family:comic sans ms,sans-serif"><i>This is a dictionary that decodes exit codes into results value.
For example, <span class=""><span class="">{0:SUCCESS,1:FAILURE,2:WARNINGS}</span></span>, will treat the exit code <span class=""><span class="">2</span></span> as WARNINGS.
The default is to treat just 0 as successful.
(<span class=""><span class="">{0:SUCCESS}</span></span>) any exit code not present in the dictionary will be treated as <span class=""><span class="">FAILURE</span></span></i></span></dd></dl><p>this seems pretty cool to me so I am trying to make use of it in my buildstep, I am trying to use it in conjunction with HaltOnFailure</p><p>the build step launches an executable(yes I'm on windows 7), the executable does a number of things, sometimes calling other executalbes, and eventually returns with an exit code of 0(if successful) or 1 if unsuccessful.</p><p>so the master.cfg looks somewhat like this</p><pre><span class="">f</span><span class="">actory.</span><span class="">addStep</span><span class="">(</span><span class="">steps</span><span class="">.</span><span class="">ShellCommand</span><span class="">(</span>
              <span class="">command</span><span class="">=</span><span class="">["run_my_custom_executable.exe","config_file_for_executable.txt"</span><span class=""></span><span class="">],</span>
              <span class="">logfiles</span><span class="">=</span><span class="">{</span><span class="">"triallog"</span><span class="">:</span> <span class="">{</span><span class="">"filename"</span><span class="">:</span> <span class="">"c:\\temp\\test.log"</span><span class="">,</span>
                   HaltOnFailure=True,<br>DecodeRC={0:"success",1:"failure"}<br><span class="">}}))<br><br></span></pre><pre><span class="">I can deliberately make the executable return either 1 or zero depending on the contents of the configuration file I use.<br></span></pre><pre><span class="">What I seem to be getting, regardless of whether the </span><span class="">run_my_custom_executable returns 1 or 0 is <span style="color:rgb(243,243,243)"><span style="background-color:rgb(153,0,255)">EXCEPTION</span></span> in purple when I trigger a build</span></pre>However when I comment out the DecodeRC line in the master config I get either <span style="background-color:rgb(0,255,0)">Suceess</span> or <span style="background-color:rgb(234,153,153)">Failure</span> as I would normally expect.<br><br></div>How should I be using this parameter<br></div>