Jenkins集成自动化测试
Jenkins集成自动化测试
背景
实现每天自动运行自动化用例
操作系统:macOS
安装jdk 与 jenkins
检查java
# 查看java版本
java -version
java version "16.0.1" 2021-04-20
Java(TM) SE Runtime Environment (build 16.0.1+9-24)
Java HotSpot(TM) 64-Bit Server VM (build 16.0.1+9-24, mixed mode, sharing)
安装jenkins
brew install jenkins
启动jenkins
#启动jenkins
brew services start jenkins 1
==> Successfully started `jenkins` (label: homebrew.mxcl.jenkins)
#停止jenkins
brew services stop jenkins
#重启jenkins
brew services restart jenkins
登录jenkins