[Buildbot-devel] interrupting a sudo job...

Vitali Lovich vlovich at gmail.com
Tue Apr 14 04:19:46 UTC 2015


Figured it out.  Turns out that BuildStep isn’t interruptible by default even though it should be:
http://trac.buildbot.net/ticket/3248 <http://trac.buildbot.net/ticket/3248>

Either inherit from LoggingBuildStep, monkey-patch BuildStep or write your own version that implements interruption.

-Vitali

> On Apr 4, 2015, at 2:04 AM, Vitali Lovich <vlovich at gmail.com> wrote:
> 
> I have also tried usePTY=True to no avail.
> 
>> On Apr 4, 2015, at 12:10 AM, Vitali Lovich <vlovich at gmail.com> wrote:
>> 
>> Hi,
>> 
>> It seems like buildbot can’t kill a long-running job that was invoked via sudo.
>> Is there any kind of workaround?  Am I doing something wrong?
>> 
>> The command I’m invoking is something like:
>> 
>> sudo -E wrapper_exe sudo -E -u <username> <real command>
>> 
>> The reason is that wrapper_exe needs sudo permissions to setup the environment.
>> Then it drops back into the real permissions to invoke the real command.
>> 
>> Thanks,
>> Vitali
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://buildbot.net/pipermail/devel/attachments/20150413/35247dcf/attachment.html>


More information about the devel mailing list