Locking from shell

26 views
Skip to first unread message

Artur Szostak

unread,
Mar 2, 2017, 2:18:18 PM3/2/17
to jenkins...@googlegroups.com
Hello,

Does anyone know if the Lockable Resources plugin exposes a REST API or any other mechanism to be able to grab a lock from within a shell build step?
Is there any other locking plugin that can support this?
I need this to support dynamic resource locking. Specifically, I only know what subsequent resources need to be locked after the first few stages of my build process from the command line tools.

Alternatively, is it possible with the pipeline plugin to read in output from a build step on a slave and use that within the lock statement of a pipeline definition?

Kind regards.

Artur

Reply all
Reply to author
Forward
0 new messages