[Buildbot-devel] interrupting a sudo job...
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:
Either inherit from LoggingBuildStep, monkey-patch BuildStep or write your own version that implements interruption.
> 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:
>> 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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the devel