Giter Club home page Giter Club logo

Comments (5)

troy-jacobson avatar troy-jacobson commented on August 14, 2024

This seems to be another request for a feature that myself and others have been asking for.

Look at the issue titled "DSL lock by label doesn't reveal which resource was locked". It contains a workaround that you may be able to use.

from lockable-resources-plugin.

jimklimov avatar jimklimov commented on August 14, 2024

IMHO the example for this use-case is flawed: the "label" describes some feature or type or resources, e.g. "printers" in the doc. Many resource instances can have the same label, so if you're testing some printing software - you can exclusively have some (any) device with a printer for your job.

Also a resource instance can have many labels that you might match simultaneously or just one by one, to use the same resource in different jobs at different times (e.g. matching "linux & x86" vs. "linux & arm" for jobs where architecture matters, compared to "linux" vs. "windows" in another job that tests architecture-independent scripts or spellchecks texts or whatever, with tools available on Linux but not Windows in your farm).

In the OP's example you would "ping" the given instance of the resource, e.g. by its name (groovy variable whose name you define in the job which uses the lockable resources).

You may also be interested in #72 and #73 for examples with code you can copy-paste.

from lockable-resources-plugin.

amuniz avatar amuniz commented on August 14, 2024

I think you are looking for #49. I did not have the time to review it yet, will try to do it soon.

from lockable-resources-plugin.

meuter avatar meuter commented on August 14, 2024

I'm in the exact same case as the one described by @edupo above. I'm eagerly waiting for the pull request #49 to be merged :-)

from lockable-resources-plugin.

TobiX avatar TobiX commented on August 14, 2024

Since #49 was merged a year ago, I consider this fixed

from lockable-resources-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.