Skip to content

Document how to use any properties (name:value) defined for a resource #759

@jeffreyofisher

Description

@jeffreyofisher

Describe your use-case which is not covered by existing documentation.

Except for this bit in the JCasC section:
- name: "Resource-with-properties"
properties:
- name: "Property-A"
value: "Value"

I'm not seeing any documentation on how to use any properties (meaning the "Property-A":"Value" above) associated with a lockable resource. I've been able to define them and see them on the lockable-resources page, but can I do anything else with them?

Can I use them in a lock() statement to affect what resource gets locked?

Once I've used a lock() statement to acquire a resource, can I programmatically access any defined Property:Values for that resource?

Is it possible to programmatically access the definitions for resources defined in Lockable Resources without doing a lock()?

Thanks

Reference any relevant documentation, other materials or issues/pull requests that can be used for inspiration.

https://plugins.jenkins.io/lockable-resources/

Are you interested in contributing to the documentation?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    approvedApproved for implementation
    No fields configured for Documentation.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions