<div dir="ltr">Thanks Pierre,<div><br></div><div>I have worked around this in a different way, with a dummy setPropertyFromCommand step (<a href="https://github.com/staticfloat/julia-buildbot/blob/level_up/master/package.py#L45-L77">my workaround is here</a>) that just runs `/bin/true`, but within the `command=` callback I manipulate the properties as I desire.</div><div>-E</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Dec 29, 2016 at 6:15 AM, Pierre Tardy <span dir="ltr"><<a href="mailto:tardyp@gmail.com" target="_blank">tardyp@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Elliot,<div><br></div><div>Looking at the source code, it is not possible to get the properties from extract_fn.</div><div><a href="https://github.com/buildbot/buildbot/blob/master/master/buildbot/steps/shell.py#L335" target="_blank">https://github.com/buildbot/<wbr>buildbot/blob/master/master/<wbr>buildbot/steps/shell.py#L335</a><br></div><div>However, you could easily override commandComplete in order to make your implementation.</div><div><br></div><div><br></div><div>class mySetPropertyFromCommand(<wbr>steps.SetPropertyFromCommand):</div><div>    def commandComplete(self, cmd):</div><div>        stdout = self.observer.getStdout()</div><div>        stderr = self.observer.getStderr()</div><div>        rc = cmd.rc</div><div>        os = self.getProperty("os")</div><div>        ...</div><div>        self.setProperty("prop_name", "value", "mySetPropertyFromCommand")</div><div><br></div></div><div class="HOEnZb"><div class="h5"><br><div class="gmail_quote"><div dir="ltr">Le mer. 28 déc. 2016 à 20:09, Elliot Saba <<a href="mailto:staticfloat@gmail.com" target="_blank">staticfloat@gmail.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr" class="m_8220483909258124486gmail_msg">Hi Pierre, </p>
<p dir="ltr" class="m_8220483909258124486gmail_msg">I mean the function that gets called to parse out the results of a setPropertyFromCommand call. </p>
<br class="m_8220483909258124486gmail_msg"><div class="gmail_quote m_8220483909258124486gmail_msg"><div dir="ltr" class="m_8220483909258124486gmail_msg">On Wed, Dec 28, 2016, 04:14 Pierre Tardy <<a href="mailto:tardyp@gmail.com" class="m_8220483909258124486gmail_msg" target="_blank">tardyp@gmail.com</a>> wrote:<br class="m_8220483909258124486gmail_msg"></div><blockquote class="gmail_quote m_8220483909258124486gmail_msg" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr" class="m_8220483909258124486gmail_msg">Hi Elliot <br class="m_8220483909258124486gmail_msg">
What do you mean an extraction function?</p>
<br class="m_8220483909258124486gmail_msg"><div class="gmail_quote m_8220483909258124486gmail_msg"></div><div class="gmail_quote m_8220483909258124486gmail_msg"><div dir="ltr" class="m_8220483909258124486gmail_msg">Le mer. 28 déc. 2016 12:16, Elliot Saba <<a href="mailto:staticfloat@gmail.com" class="m_8220483909258124486gmail_msg" target="_blank">staticfloat@gmail.com</a>> a écrit :<br class="m_8220483909258124486gmail_msg"></div></div><div class="gmail_quote m_8220483909258124486gmail_msg"><blockquote class="gmail_quote m_8220483909258124486gmail_msg" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class="m_8220483909258124486gmail_msg"><span style="font-size:12.8px" class="m_8220483909258124486gmail_msg">I want to access the properties of my build within a buildstep.  To do so, I need to use something like `step.getProperty('foo')`, but I don't know how to get the current step as a variable into my extraction function.  Is there an easy way to get this information?  The reason I need to do this is that I need to customize my extraction function based upon the operating system of the worker my step is executing on.</span><div class="m_8220483909258124486gmail_msg"><span style="font-size:12.8px" class="m_8220483909258124486gmail_msg"><br class="m_8220483909258124486gmail_msg"></span></div><div class="m_8220483909258124486gmail_msg"><span style="font-size:12.8px" class="m_8220483909258124486gmail_msg">Thanks in advance,<br class="m_8220483909258124486gmail_msg"></span><div class="m_8220483909258124486gmail_msg"><span style="font-size:12.8px" class="m_8220483909258124486gmail_msg">-E</span></div></div></div></blockquote></div><div class="gmail_quote m_8220483909258124486gmail_msg"><blockquote class="gmail_quote m_8220483909258124486gmail_msg" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
______________________________<wbr>_________________<br class="m_8220483909258124486gmail_msg">
users mailing list<br class="m_8220483909258124486gmail_msg">
<a href="mailto:users@buildbot.net" class="m_8220483909258124486gmail_msg" target="_blank">users@buildbot.net</a><br class="m_8220483909258124486gmail_msg">
<a href="https://lists.buildbot.net/mailman/listinfo/users" rel="noreferrer" class="m_8220483909258124486gmail_msg" target="_blank">https://lists.buildbot.net/<wbr>mailman/listinfo/users</a></blockquote></div>
</blockquote></div><div dir="ltr" class="m_8220483909258124486gmail_msg">-- <br class="m_8220483909258124486gmail_msg"></div><div data-smartmail="gmail_signature" class="m_8220483909258124486gmail_msg"><p dir="ltr" class="m_8220483909258124486gmail_msg">-E</p>
</div>
</blockquote></div>
</div></div></blockquote></div><br></div>