Jenkins无法读取';https://github.****.org';:没有这样的设备或地址git推送错误

Jenkins无法读取';https://github.****.org';:没有这样的设备或地址git推送错误,jenkins,Jenkins,我们有一个需求,在Jenkins管道中,我们必须升级NodeJS包的npm版本,并执行git标签git推送 为此,我们已经做了一个Python脚本,可以在升级版本之前完成一些任务。 因此,我们在Jenkins文件中做了这项工作 withCredentials([usernamePassword(credentialsId: 'username', passwordVariable: 'adminPass', usernameVariable: 'adminUser')]) {

我们有一个需求,在Jenkins管道中,我们必须升级NodeJS包的npm版本,并执行git标签git推送

为此,我们已经做了一个Python脚本,可以在升级版本之前完成一些任务。 因此,我们在Jenkins文件中做了这项工作

withCredentials([usernamePassword(credentialsId: 'username', passwordVariable: 'adminPass', usernameVariable: 'adminUser')]) {
            sh "echo https://$adminUser:$adminPass@github**** > ~/.git-credentials"
            sh "git config --local credential.helper store --file=~/.git-credentials"
但是每次我们从python脚本中使用push命令时,都会出现这个错误

could not read Username for 'https://github.****.org': No such device or address

问题很简单,但当我们尝试用谷歌搜索这个问题时,我们得到了各种各样的解决方案,但都不起作用。

对于陷入困境的用户,请检查您的用户名或密码中是否没有“@”。

对于陷入困境的用户,请检查您的用户名或密码中是否没有“@”