Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-38852

Allow exclusive vs. shared locks on resources

XMLWordPrintable

      I'd like to distinguish between shared and exclusive resources.

      Example:

      • exclusive lock: while a database is being rebuilt, all other jobs need to wait
      • shared lock: after the database has been rebuilt, multiple can use it (i.e. to read data)

      The current workaround is to use "flock" Linux shell command to achieve this, but this only works when everything runs on one node.

      This has been suggested here JENKINS-1990 - but the locks-and-latches plugin seems to be dead. I also want this as part of the lockable-resource-plugin, as this supports the new pipeline syntax.

            Unassigned Unassigned
            ahus1 Alexander Schwartz
            Votes:
            5 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: