chore: improved the logging message
Signed-off-by: sn0wcat <sn0wcat@users.noreply.github.com>
This commit is contained in:
@@ -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}.`,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user