Jenkins pipeline lock resources I need to run commands on my pipeline during a certain stage, on devices which connected to my Jenkins as slaves.
But I want them to run only when another one finished.
On the other hand, I want them to run all previous stages before they "wait" for another device to finish.

What is the best way to implement this lock? Again, it is the same job, but different slaves.
I found exactly what I was looking for- 

[Jenkins plugin] (https://wiki.jenkins.io/display/JENKINS/Lockable+Resources+Plugin)

Which let you create a lock between, slaves , different jobs and more..

(in contrast to the plugin description)