0

我在使用 jenkins git 插件推送回购时遇到问题。我正在使用withCredentials([gitUsernamePassword(credentialsId: 'id')]) 我的凭据看起来像user@support.com,所以我试图推动我看到一个错误Authentication failed

可能 git 插件无法处理看起来像 user@support.com 的登录,因为这个事实 auth 看起来像https://user@support.com@site_name,1 个字符串中有 2 个符号“@”。

17:18:02  14:18:02.696390 git.c:371               trace: built-in: git 'push' 'origin' 'branch_name'
17:18:02  14:18:02.697060 run-command.c:350       trace: run_command: 'git-remote-https' 'origin' 'https://site_name/repo_name.git'
17:18:02  14:18:02.824423 run-command.c:350       trace: run_command: **** 'Username for '\''https://site_name'\'': '
17:18:02  14:18:02.827488 run-command.c:350       trace: run_command: **** 'Password for '\''https://user@support.com@site_name'\'': '
17:18:05  remote: Invalid username or password
17:18:05  fatal: Authentication failed for 'https://site_name/repo_name.git/'

有什么建议么?

4

0 回答 0