I think I've solved my problem. Although I didn't find the extension point I 
was looking for, I managed to modify the RunListener implementation to cleanly 
cycle the connection, allowing the job to continue executing.

Details are on the revert_on_job_start branch of my fork of the 
libvirt-slave-plugin repo[1].

-Alex

[1] - https://github.com/ASzc/libvirt-slave-plugin/tree/aszc-revert_on_job_start

----- Original Message -----
From: "Alex Szczuczko" <[email protected]>
To: [email protected]
Sent: Wednesday, August 7, 2013 4:21:53 PM
Subject: Plugin extension point for Job to Node assignment

Hi,

I'm trying to improve libvirt-slave-plugin so that it can revert a snapshot 
before a job runs on a node. I've tried using several extension points to do 
this; the best I can do (With RunListener) is revert the snapshot and have the 
job fail because the node connection is lost (reconnecting doesn't seem to save 
the job).

As far as I can tell, what I need is access to the point where a job is 
assigned to a node, but not yet dependent on that node's connection. I have 
been unable to find this point myself, does anyone know of anything like that?

Thanks,
Alex

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to