lockable-resources-plugin | Lock resources against concurrent use | Chat library
kandi X-RAY | lockable-resources-plugin Summary
kandi X-RAY | lockable-resources-plugin Summary
This plugin allows defining lockable resources (such as printers, phones, computers, etc.) that can be used by builds. If a build requires a resource which is already locked, it will wait for the resource to be free.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Check if the item can be locked
- Attempts to acquire the required resources
- Check if there are already one or more resources to be queued
- Checks if the resource matches the given parameters
- Starts the lock
- Attempts to lock a set of resources
- Creates a resource
- Returns a list of all resources available to this lock step
- Get the lock cause for this resource
- Returns the user reserved by email
- Unlocks the given build
- Compares this resource with another object
- Creates a hash code
- Recycle this resource
- Creates a resource with the given name and label
- Steal a resource
- Queues the locking task
- Reset resources
- Unlock the resource
- Sets the note
- Un - reserve resource
- Rerve resource
- Reassign a resource
- Sets the instance s unconfigurable properties
- Called when the build has started
- Set the list of locked resources
lockable-resources-plugin Key Features
lockable-resources-plugin Examples and Code Snippets
Community Discussions
Trending Discussions on lockable-resources-plugin
QUESTION
I'm trying to configure Jenkins Global Roles (Role-based Authorization Strategy plugin) via a groovy script that can be executed via https://jenkins-url/script or from the jenkins init directory on startup.
I've been able to set all the permissions I need for the role with the exception of two:
- Lockable Resources/Reserve
- Lockable Resources/Unlock
I have been unable to find what params I need to add in my groovy code for these two role permissions. I've been able to apply them in the past using config as code but now I want to do it in groovy.
How is one expected to look these values up? I've lucked out for the other permissions by finding other online examples. E.g.
...ANSWER
Answered 2019-Sep-20 at 22:33- 'org.jenkins.plugins.lockableresources.LockableResourcesManager.Unlock'
- 'org.jenkins.plugins.lockableresources.LockableResourcesManager.Reserve '
this is available from:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install lockable-resources-plugin
You can use lockable-resources-plugin like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the lockable-resources-plugin component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page