Skip to content

Pass acquired lock from pipeline job to freestyle job called by build_jobΒ #791

@arnoxit

Description

@arnoxit

What feature do you want to see added?

We have some freestyle jobs I would like to add resource locking around to cover when they are called directly, but we also have some pipeline jobs that do more complicated work and call these freestyle jobs a number of times. I would like to be able to lock the resource in the pipeline job and then "pass" that lock to the freestyle job when it is called without releasing it. Otherwise, is there some way of conditionally locking a resource in a freestyle job (groovy or otherwise) in which case I could pass a parameter that says don't try and lock.

Upstream changes

No response

Are you interested in contributing this feature?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Clarification neededAdditional clarification neededfreestyle vs pipelineSometimes one use-case is better exposed than another; this label helps note where we need to level

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions