Skip to content

Allow discoverReferenceBuild to run on Agent none #699

@noah-wolton

Description

@noah-wolton

What feature do you want to see added?

Sorry not sure if I'm creating this issue in the right place, so apologies in advance if I'm not.

I was wondering if there was a reason why discoverReferenceBuild cannot be called if there is no node/workspace present. From my understanding it seems like it's trying to use the SCM to determine a baseline and that requires a workspace, but for certain use cases I don't need it to worry about that and it would be great if there was an option for it just to use the latest build and therefore wouldn't need a node to run on.

Upstream changes

No response

Are you interested in contributing this feature?

Obviously if this is a difficult change then it's probably not worth it -- in my naivete I'd hoped it would be just a simple change to getRequiredContext and I could offer some code, but it looks significantly more complex than my limited Jenkins experience is suited to.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions