Lockable Resources plugin

lock: Lock shared resource

resource

The resource name to lock as defined in Global settings. If the resource does not exist in Global Settings it will be automatically created on build execution. Either a resource or a label need to be specified.

Type: String

inversePrecedence (optional)

By default waiting builds get the lock in the same order they requested to acquire it.

By checking this option the newest build in the waiting queue will get the lock first.

Type: boolean

label (optional)

The label of the resources to be locked as defined in Global settings. Either a resource or a label need to be specified.

Type: String

quantity (optional)

The quantity of resources with the specified label to be locked as defined in Global settings. Either a resource or a label need to be specified.

Type: int