fix(pipeline): correct usage of usernamePassword method in SemanticReleasingExecutor

Signed-off-by: 孙振宇 <>
This commit is contained in:
孙振宇 2025-02-08 10:43:26 +08:00
parent 4ddf5df588
commit 39e4f570d1

View File

@ -24,7 +24,7 @@ class SemanticReleasingExecutor {
steps.log.info("SemanticReleasingExecutor", "Releasing with config: ${config}") steps.log.info("SemanticReleasingExecutor", "Releasing with config: ${config}")
steps.dir(steps.env.workroot) { steps.dir(steps.env.workroot) {
steps.withCredentials([usernamePassword(credentialsId: credentialsId, passwordVariable: 'GIT_PASSWORD', usernameVariable: 'GIT_USERNAME')]) { steps.withCredentials([steps.usernamePassword(credentialsId: credentialsId, passwordVariable: 'GIT_PASSWORD', usernameVariable: 'GIT_USERNAME')]) {
steps.env.GIT_CREDENTIALS = "${steps.env.GIT_USERNAME}:${steps.env.GIT_PASSWORD}" steps.env.GIT_CREDENTIALS = "${steps.env.GIT_USERNAME}:${steps.env.GIT_PASSWORD}"
steps.writeFile file: 'releaserc.json', text: steps.libraryResource(config) steps.writeFile file: 'releaserc.json', text: steps.libraryResource(config)
steps.log.info("SemanticReleasingExecutor", "Installing semantic-release requirements...") steps.log.info("SemanticReleasingExecutor", "Installing semantic-release requirements...")