lockable-resources-plugin icon indicating copy to clipboard operation
lockable-resources-plugin copied to clipboard

freestyle project: use build parameter as resource

Open jorgheymans opened this issue 4 years ago • 2 comments

I was a bit surprised to see that variable interpolation does not work for locking resources in a freestyle job. I'ld like to create a mutex around a build parameter value that can be specified by multiple jobs (the value is not known upfront so i cannot hardcode it as resource labels).

image

In a pipeline job this seems trivial with something like, is there a limitation that this does not work for freestyle jobs?

    lock("${env.NODE_NAME}-exclusive") {
        //...
    }

jorgheymans avatar Oct 14 '19 07:10 jorgheymans

It's just not implemented - Many things that are trivial in pipeline need special handling in Freestyle jobs... There is an open pull request(#33) to add this feature, though.

TobiX avatar Oct 14 '19 08:10 TobiX

Hello, my life depends on this feature. OK, perhaps it's a bit of exaggeration, but I can't solve my issue otherwise. What would it take to make it work?

tavolodobela avatar Mar 26 '20 12:03 tavolodobela