chore: improved the logging message

Signed-off-by: sn0wcat <sn0wcat@users.noreply.github.com>
This commit is contained in:
sn0wcat
2025-07-31 11:36:33 +02:00
parent e2a5195b20
commit a84ddea616
2 changed files with 10 additions and 2 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-scaffolder-backend-module-gitlab': patch
---
The log message now indicates that the pipeline trigger token was deleted and not pipeline itself.
@@ -156,11 +156,14 @@ export const createTriggerGitlabPipelineAction = (options: {
},
});
ctx.logger.info(
`Deleted pipeline with token id ${pipelineTriggerId}.`,
// in version 18.0 of gitlab this was also deleting the pipeline
// this is a problem in gitlab which is fixed in version 18.1
// https://gitlab.com/gitlab-org/gitlab/-/issues/546669
`Deleted pipeline trigger token with token id: ${pipelineTriggerId}.`,
);
} catch (error: any) {
ctx.logger.error(
`Failed to delete pipeline with token id ${pipelineTriggerId}.`,
`Failed to delete pipeline trigger token with token id: ${pipelineTriggerId}.`,
);
}
}