<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<!-- Template generated by Exclaimer Signature Manager Exchange Edition on 10:58:57 Wednesday, 24 July 2019 -->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">P.ImprintUniqueID {
        MARGIN: 0cm 0cm 0pt
}
LI.ImprintUniqueID {
        MARGIN: 0cm 0cm 0pt
}
DIV.ImprintUniqueID {
        MARGIN: 0cm 0cm 0pt
}
TABLE.ImprintUniqueIDTable {
        MARGIN: 0cm 0cm 0pt
}
DIV.Section1 {
        page: Section1
}
</style>
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
p.imprintuniqueid, li.imprintuniqueid, div.imprintuniqueid
        {mso-style-name:imprintuniqueid;
        margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.EmailStyle19
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.EmailStyle20
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.EmailStyle21
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
span.EmailStyle22
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.EmailStyle24
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<p class="ImprintUniqueID"></p>
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#1F497D">Thanks!<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">I pulled the code off the link and saved it away.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">I doubt I’ll be able to get back to this today, but I wanted to let you know I got it and say thanks.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<div></div>
</div>
<br>
<p></p>
<p class="ImprintUniqueID">
<table class="ImprintUniqueIDTable" style="HEIGHT: 78px; WIDTH: 330px" borderColor="#ffffff" cellspacing="0" cellpadding="0" width="230" border="0">
<tbody>
<tr>
<td style="FONT-SIZE: 9pt; FONT-FAMILY: Verdana; COLOR: #484848; PADDING-BOTTOM: 5px" valign="bottom" nowrap="">
<span style="FONT-SIZE: 9pt; FONT-FAMILY: Verdana; COLOR: #484848"><span style="FONT-SIZE: 13.5pt; FONT-FAMILY: Verdana"><font face="Arial"><font color="#055d8f"><strong><font style="font-size:10pt;">Ken</font><font size="2"> </font><font style="font-size:10pt;">Dalka</font><br>
</strong></font></font></span><span style="FONT-SIZE: 12pt; FONT-FAMILY: Verdana; COLOR: #484848"><font color="#808080" face="Arial"><strong><font style="font-size:10pt;">Staff Software Engineer</font></strong></font></span></span></td>
</tr>
<tr>
<td><span style="FONT-SIZE: 12pt; FONT-FAMILY: Verdana; COLOR: #484848"><font color="#808080" size="2" face="Arial">W. H. Leary Co.<br>
<font color="#055d8f">P.</font> +1 708.444.4900</font></span><span style="FONT-SIZE: 9pt; FONT-FAMILY: Verdana; COLOR: #484848"><font color="#808080"><br>
<font size="2"><font color="#055d8f">E.</font> </font><font style="font-family:Arial;font-size:10pt;color:#808080;">KenD@whleary.com</font><font size="2"> |
</font></font><font size="2"><font color="#055d8f">W.</font> </font><span style="font-family:Arial;font-size:10pt;color:#808080;"><a href="http://www.whleary.com" title="" target="" style="font-family:Arial;font-size:10pt;color:#808080;"><span style="font-family:Arial; font-size:10pt; color:#808080;">whleary.com</span></a></span><font size="1" face="Arial"></font></span></td>
</tr>
</tbody>
</table>
</p>
<p class="ImprintUniqueID"><br>
</p>
<div>
<div class="WordSection1">
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> Glen Neff (gneff) [mailto:gneff@cisco.com] <br>
<b>Sent:</b> Wednesday, July 24, 2019 10:15 AM<br>
<b>To:</b> Ken Dalka <KenD@whleary.com>; users@buildbot.net<br>
<b>Subject:</b> [External] RE: buildbot poller question<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Here’s the code: <a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__dpaste.de_25Ya&d=DwQGaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=f88ZA1AhC_w-BcMVr9XuIw&m=vMOUtabI6U9D7GtcGRXnVuf0J3xoS8uo3s_gQ8pFffI&s=tV7Lk-ZeFPb2P6PVj2Xw5cgKGRQenG4V6IyTc0Gk4QA&e=">
https://dpaste.de/25Ya</a><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">This was written for a Buildbot master running on Windows, monitoring a Windows share that was a poor excuse for a source control system on one, fleeting project.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">If you’re mounting the Windows share to linux (I assume via smbmount or some Samba component, then the code could actually be a lot simpler.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">A windows “dir /s /a <drive letter:” command’s output includes the drive letter and the free space info, which would be both different and irrelevant, so this module included code to normalize/cut that portion of the output before comparing
 an SSA256 signature for changes.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">A linux implementation shouldn’t need anything like that.  The “ls -lRa /monitored/directory” output shouldn’t require any sort of normalization.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">That <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__dpaste.de&d=DwQGaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=f88ZA1AhC_w-BcMVr9XuIw&m=vMOUtabI6U9D7GtcGRXnVuf0J3xoS8uo3s_gQ8pFffI&s=rjGnAGa5T88_BvQPam9Y96GkwfSaDOXrPVofd_A9WOw&e=">
dpaste.de</a> URL will only be available for 7 days, so save the text.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Enjoy,<o:p></o:p></p>
<p class="MsoNormal">-G<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal"><span style="font-family:Consolas">”””<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:Consolas">Glen R. J. Neff      .:|:.:|:.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:Consolas">   Network Consulting Engineer IV<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:Consolas">   Cisco: Advanced Services, Advanced Delivery Network<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:Consolas">   <a href="mailto:gneff@cisco.com">
gneff@cisco.com</a><span style="color:black"><o:p></o:p></span></span></p>
<p class="MsoNormal"><span style="font-family:Consolas">”””<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> Ken Dalka <<a href="mailto:KenD@whleary.com">KenD@whleary.com</a>>
<br>
<b>Sent:</b> Tuesday, July 23, 2019 16:11<br>
<b>To:</b> Glen Neff (gneff) <<a href="mailto:gneff@cisco.com">gneff@cisco.com</a>><br>
<b>Subject:</b> RE: buildbot poller question<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="color:#1F497D">Yes, please, I would like to get a copy of your change poller. I’ve been trying to read the docs on writing a change poller, but I haven’t found much info.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">The directory I am monitoring is actually on a windows file share, but I’m not sure how that would make a difference.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">The other automated build system is on a windows machine and I need to provide some windows and Linux executables in the same package. The windows executable runs under Wine on Linux.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Thanks!<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" width="0" style="width:3.5in;margin-left:-4.5pt">
<tbody>
<tr>
<td width="336" nowrap="" valign="bottom" style="width:3.5in;padding:0in 0in 3.75pt 0in">
<p class="MsoNormal"><strong><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#055D8F">Ken Dalka</span></strong><b><span style="font-size:13.5pt;font-family:"Arial",sans-serif;color:#055D8F"><br>
</span></b><strong><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:gray">Staff Software Engineer</span></strong><span style="font-size:9.0pt;font-family:"Verdana",sans-serif;color:#484848"><o:p></o:p></span></p>
</td>
</tr>
<tr>
<td width="336" style="width:3.5in;padding:0in 0in 0in 0in">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:gray">W. H. Leary Co.<br>
</span><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#055D8F">P.</span><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:gray"> +1 708.444.4900</span><span style="font-size:9.0pt;font-family:"Verdana",sans-serif;color:gray"><br>
</span><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:#055D8F">E.</span><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:gray">
</span><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:gray"><a href="mailto:KenD@whleary.com">KenD@whleary.com</a></span><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:gray"> |
</span><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:#055D8F">W.</span><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:#484848">
</span><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:gray"><a href="http://www.whleary.com"><span style="color:gray">whleary.com</span></a></span><o:p></o:p></p>
</td>
</tr>
</tbody>
</table>
<p class="imprintuniqueid"><o:p> </o:p></p>
<div>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> users [<a href="mailto:users-bounces@buildbot.net">mailto:users-bounces@buildbot.net</a>]
<b>On Behalf Of </b>Glen Neff (gneff)<br>
<b>Sent:</b> Tuesday, July 23, 2019 7:08 AM<br>
<b>To:</b> <a href="mailto:users@buildbot.net">users@buildbot.net</a><br>
<b>Subject:</b> [External] Re: [users@bb.net] buildbot poller question<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I once had to write a change poller plugin for a similar scenario, only it was monitoring a Windows file share, but I believe a similar method could work.  I stored a SHA256 sum of a recursive directory listing for the file tree in question,
 and the plugin would grab the same listing, and compare the SHA256 sums as the change trigger.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I could share the code if asked nicely.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">-G<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal"><span style="font-family:Consolas">”””<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:Consolas">Glen R. J. Neff      .:|:.:|:.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:Consolas">   Network Consulting Engineer IV<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:Consolas">   Cisco: Advanced Services, Advanced Delivery Network<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:Consolas">   <a href="mailto:gneff@cisco.com">
gneff@cisco.com</a><span style="color:black"><o:p></o:p></span></span></p>
<p class="MsoNormal"><span style="font-family:Consolas">”””<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> users <<a href="mailto:users-bounces@buildbot.net">users-bounces@buildbot.net</a>>
<b>On Behalf Of </b>Ken Dalka<br>
<b>Sent:</b> Monday, July 22, 2019 15:15<br>
<b>To:</b> <a href="mailto:users@buildbot.net">users@buildbot.net</a><br>
<b>Subject:</b> [users@bb.net] buildbot poller question<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I’m not sure if this is the right place to ask a question, but I couldn’t find another forum for this.<o:p></o:p></p>
<p class="MsoNormal">If this is the wrong place, let me know.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Instead of polling a repository for a change, is there a way to poll a directory?<o:p></o:p></p>
<p class="MsoNormal">On a Linux machine, I’d like to check a directory to see if any new files show up and schedule a build when they do.<o:p></o:p></p>
<p class="MsoNormal">Unfortunately, I have another automated build system that isn’t using buildbot and I’d like buildbot to do a build whenever the other system finishes a build.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-bottom:12.0pt"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" width="0" style="width:299.25pt">
<tbody>
<tr>
<td width="399" nowrap="" valign="bottom" style="width:193.5pt;padding:0in 0in 3.75pt 0in">
<p class="MsoNormal"><strong><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#055D8F">Ken Dalka</span></strong><b><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#055D8F"><br>
</span></b><strong><span style="font-size:7.5pt;font-family:"Arial",sans-serif;color:gray">Staff Software Engineer</span></strong><span style="font-size:9.0pt;font-family:"Verdana",sans-serif;color:#484848"><o:p></o:p></span></p>
</td>
</tr>
<tr>
<td style="padding:0in 0in 7.5pt 0in">
<p class="MsoNormal"><strong><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:gray">W. H. Leary Company</span></strong><b><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:gray"><br>
</span></b><span style="font-size:7.5pt;font-family:"Arial",sans-serif;color:gray">8440 183rd Place Tinley Park, IL 60487 USA</span><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:gray"><br>
</span><span style="font-size:7.5pt;font-family:"Arial",sans-serif;color:#055D8F">P.</span><span style="font-size:7.5pt;font-family:"Arial",sans-serif;color:gray"> +1 708.444.4900<br>
</span><span style="font-size:9.0pt;font-family:"Verdana",sans-serif;color:#055D8F">w.</span><span style="font-size:9.0pt;font-family:"Verdana",sans-serif;color:#484848">
</span><span style="font-size:8.0pt;font-family:"Arial",sans-serif;color:gray"><a href="http://www.whleary.com"><span style="color:gray">whleary.com</span></a></span><span style="font-size:7.5pt;font-family:"Arial",sans-serif;color:#484848">
</span><o:p></o:p></p>
</td>
</tr>
</tbody>
</table>
<p class="imprintuniqueid"><a href="https://www.whleary.com/sempre-i-cold-glue-application"><span style="text-decoration:none"><img border="0" width="359" height="94" id="_x0000_i1025" src="cid:image001.png@01D5420E.AD11D4E0"></span></a><o:p></o:p></p>
</div>
</div>
</div>
</body>
</html>