Use the pipeline from the buildset

There's no pipeline key in the ref object. This causes the queue
action to fail with a 400 error due to the missing pipeline key
in the request payload.

This change switches to using the buildset.pipeline value, which was
being used in the past and changed in 24e1cbc26d

Signed-off-by: Flavio Percoco <flavio@pacerevenue.com>
Change-Id: Icaf65d798b03c083944280140d25267351d61f78
This commit is contained in:
Flavio Percoco 2024-03-19 09:19:05 +00:00
parent 4d06f081bd
commit d7b79f05a6
1 changed files with 1 additions and 1 deletions

View File

@ -203,7 +203,7 @@ function Buildset({ buildset, timezone, tenant, user, preferences }) {
})
} else {
const changeId = ref.change + ',' + ref.patchset
enqueue(tenant.apiPrefix, ref.project, ref.pipeline, changeId)
enqueue(tenant.apiPrefix, ref.project, buildset.pipeline, changeId)
.then(() => {
dispatch(addNotification(
{