QEMU based VM as resource?

14 views
Skip to first unread message

Erik Rull

unread,
Jan 20, 2022, 12:16:07 PM1/20/22
to Jenkins Users
Hi all,

I have a special "build executor" for a job that is launched in a Windows VM running on the buildserver. I would like to lock the VM once it is running (or before starting it up) to prevent that another job that may want to use this VM, too has to wait until the currently running job that acquired the VM already has finished.
The executed jobs are matrix runs and only one of them needs the VM, the others run native on the server. And the overall usage time of the VM compared to the full job run is rather "short", so locking it while the whole job is executed would block others unnecessarily.

I tried something with the resource locks, but I wasn't successful (no real locking happened) or I did not understand all bits and pieces here.

How can I approach this topic to get a reliable and safe locking of the VM?

Thanks.

Best regards,

Erik

Reply all
Reply to author
Forward
0 new messages