问题:
npm ERR! Error while executing:
npm ERR! /usr/bin/git ls-remote -h -t https://xxxx/GIS/creeper-js.git
npm ERR!
npm ERR! fatal: Authentication failed for 'https://xxx/GIS/creeper-js.git/'
npm ERR!
npm ERR! exited with error code: 128
这个是没有另外一个仓库的地址的权限,虽然在这个任务的配置中有配置对应用户的认证,但是没有默认应用到另外一个仓库中。
解决:
在Jenkins的对应任务的工作空间中进行用户认证,并给全局权限。
cd /xx/xx/xx/workspace/xx/
git config user.name "xxx"
git config user.password "xxx"
git config --global credential.helper store
这样就能成功的进行2个仓库的认证了