Skip to content

Queuing a build with a sourceBranch always uses the default branch #633

Open
@EugenMayer

Description

@EugenMayer

I'am trying to queue a build for a particular branch

According to https://learn.microsoft.com/en-us/rest/api/azure/devops/build/builds/queue?view=azure-devops-rest-6.1#request-body this should be done using sourceBranch.

I'am using the ref pattern so its 'refs/head/mybranch' but it is always ignored.

Checked https://github.com/microsoft/azure-devops-node-api/blob/master/api/BuildApi.ts#L1030 including the issue #392 which seems to use runs.

Also found https://stackoverflow.com/a/73879540 which states that sourceBranch is not used at all.

Could you please explain how it is supposed to work?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions