Jenkins是一款开源 CI&CD 软件, 提供超过1000个插件用于自动化各种任务,包括构建、测试和部署软件。Jenkins 支持各种运行方式,可通过系统包、Docker 或者通过一个独立的 Java 程序。
Jenkins的Windows版本在安装过程中需要选择Logon Type,查阅Jenkins官网
- Run service as localSystem(not recommended)
- Run service as local or domain user:Account and Password
Jenkins installs and runs as an independent Windows service.
To operate in this manner,you must supply the user account credentials
for Jenkins to run successfully.
安装Jenkins 需要一个Windows的用户,并且这个用户必须具备作为服务登录的权限。此安全设置可使安全主体作为服务登录。可以将服务配置为在本地系统、本地服务或网络服务帐户下运行,这些帐户具有作为服务登录的内置权限。任何在单独用户帐户下运行的服务都必须分配有该权限。
安装Jenkins
无效登录账号
cmd 运行 secpol.msc打开本地安全策略
用户权限
添加Windows系统的用户,如administrator,或者其它。
验证通过
Account:Windows系统的用户,如administrator,或者其它。
Password:上述用户对应的登录密码。