[users at bb.net] buildbot poller question

Bill Deegan bill at baddogconsulting.com
Wed Jul 24 16:35:29 UTC 2019


Ken,

Can you get your other build system to run a command when it completes?
You can run buildbot sendchange to trigger a build..

-Bill

On Wed, Jul 24, 2019 at 8:59 AM Ken Dalka <KenD at whleary.com> wrote:

> Thanks!
>
> I pulled the code off the link and saved it away.
>
> 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.
>
>
>
>
>
>
> *Ken Dalka **Staff Software Engineer*
> W. H. Leary Co.
> P. +1 708.444.4900
> E. KenD at whleary.com | W. whleary.com <http://www.whleary.com>
>
>
> *From:* Glen Neff (gneff) [mailto:gneff at cisco.com]
> *Sent:* Wednesday, July 24, 2019 10:15 AM
> *To:* Ken Dalka <KenD at whleary.com>; users at buildbot.net
> *Subject:* [External] RE: buildbot poller question
>
>
>
> Here’s the code: https://dpaste.de/25Ya
> <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=>
>
>
>
> 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.
>
>
>
> 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.
>
>
>
> 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.
>
>
>
> A linux implementation shouldn’t need anything like that.  The “ls -lRa
> /monitored/directory” output shouldn’t require any sort of normalization.
>
>
>
> That dpaste.de
> <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=>
> URL will only be available for 7 days, so save the text.
>
>
>
> Enjoy,
>
> -G
>
>
>
> ”””
>
> Glen R. J. Neff      .:|:.:|:.
>
>    Network Consulting Engineer IV
>
>    Cisco: Advanced Services, Advanced Delivery Network
>
>    gneff at cisco.com
>
> ”””
>
>
>
> *From:* Ken Dalka <KenD at whleary.com>
> *Sent:* Tuesday, July 23, 2019 16:11
> *To:* Glen Neff (gneff) <gneff at cisco.com>
> *Subject:* RE: buildbot poller question
>
>
>
> 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.
>
>
>
> The directory I am monitoring is actually on a windows file share, but I’m
> not sure how that would make a difference.
>
> 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.
>
>
>
> Thanks!
>
>
>
>
>
>
>
> *Ken Dalka*
> *Staff Software Engineer*
>
> W. H. Leary Co.
> P. +1 708.444.4900
> E. KenD at whleary.com | W. whleary.com <http://www.whleary.com>
>
>
>
> *From:* users [mailto:users-bounces at buildbot.net
> <users-bounces at buildbot.net>] *On Behalf Of *Glen Neff (gneff)
> *Sent:* Tuesday, July 23, 2019 7:08 AM
> *To:* users at buildbot.net
> *Subject:* [External] Re: [users at bb.net] buildbot poller question
>
>
>
> 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.
>
>
>
> I could share the code if asked nicely.
>
>
>
> -G
>
>
>
> ”””
>
> Glen R. J. Neff      .:|:.:|:.
>
>    Network Consulting Engineer IV
>
>    Cisco: Advanced Services, Advanced Delivery Network
>
>    gneff at cisco.com
>
> ”””
>
>
>
> *From:* users <users-bounces at buildbot.net> *On Behalf Of *Ken Dalka
> *Sent:* Monday, July 22, 2019 15:15
> *To:* users at buildbot.net
> *Subject:* [users at bb.net] buildbot poller question
>
>
>
> I’m not sure if this is the right place to ask a question, but I couldn’t
> find another forum for this.
>
> If this is the wrong place, let me know.
>
>
>
>
>
> Instead of polling a repository for a change, is there a way to poll a
> directory?
>
> 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.
>
> 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.
>
>
>
>
>
>
>
> *Ken Dalka*
> *Staff Software Engineer*
>
> *W. H. Leary Company*
> 8440 183rd Place Tinley Park, IL 60487 USA
> P. +1 708.444.4900
> w. whleary.com <http://www.whleary.com>
>
> <https://www.whleary.com/sempre-i-cold-glue-application>
> _______________________________________________
> users mailing list
> users at buildbot.net
> https://lists.buildbot.net/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.buildbot.net/pipermail/users/attachments/20190724/90a8d668/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 43452 bytes
Desc: not available
URL: <http://lists.buildbot.net/pipermail/users/attachments/20190724/90a8d668/attachment.png>


More information about the users mailing list