diff --git a/.changeset/poor-poems-allow.md b/.changeset/poor-poems-allow.md new file mode 100644 index 0000000000..b82a762b83 --- /dev/null +++ b/.changeset/poor-poems-allow.md @@ -0,0 +1,5 @@ +--- +'@backstage/plugin-cloudbuild': patch +--- + +Fixed bug in the CloudbuildClient reRunWorkflow fetch call. The method in the fetch request was not specified and defaulted to a GET. Method is now explicitly set to POST with this change. diff --git a/plugins/cloudbuild/src/api/CloudbuildClient.ts b/plugins/cloudbuild/src/api/CloudbuildClient.ts index 035b20f63d..cb6747e803 100644 --- a/plugins/cloudbuild/src/api/CloudbuildClient.ts +++ b/plugins/cloudbuild/src/api/CloudbuildClient.ts @@ -34,6 +34,7 @@ export class CloudbuildClient implements CloudbuildApi { options.projectId, )}/builds/${encodeURIComponent(options.runId)}:retry`, { + method: 'POST', headers: new Headers({ Accept: '*/*', Authorization: `Bearer ${await this.getToken()}`,