- 找到对应的job目录(一般在/root/.jenkins/jobs目录)
- 编辑config.xml
- 找到代码块
<userRemoteConfigs>
<hudson.plugins.git.UserRemoteConfig>
<url>https://github.com/istester-com/21DayLinux.git</url>
<credentialsId>231cdbe1-506f-479b-8dbd-a63b0eff86b5</credentialsId>
</hudson.plugins.git.UserRemoteConfig>
</userRemoteConfigs>
- 如上的credentialsId对应的id值,就是上篇文章对应的内容 Git密码修改后,Jenkins job如何批量更新密码?