How to prevent two Jenkins jobs from running in parallel ?
Two jobs that are not dependent but needs to use same OS resources, We don't want to make a dependency but if one of the jobs is already running the other should wait until it finishes. also don't want to limit executors to 1.
Thanks.

Comments
Didn't try it, but looks like it might be helpful in your case: https://wiki.jenkins-ci.org/display/JENKINS/Locks+and+Latches+plugin
Thanks. It looks like this plugin is not maintained anymore. I will try it anyway.
Thanks. It works with latest Jenkins.