Merge pull request #30693 from sn0wcat/master

chore: improved the logging message
This commit is contained in:
Paul Schultz
2025-08-27 14:17:34 -05:00
committed by GitHub
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}.`,
);
}
}