兼容性测试第二课_使用 Jenkins 调度智能设备

架构

Jenkins安装

hogwarts_install_jenkins() {
\tlocal image=registry.docker-cn.com/jenkins/jenkins:lts
\tdocker run -ti --rm --entrypoint="/bin/bash" $image -c "whoami && id"
\techo "maybe you need chown -R 1000 ~/jenkins/hogwarts"
\tdocker run -d --name jenkins_hogwarts \\
\t\t-p 8080:8080 -p 50000:50000 \\
\t\t-v ~/jenkins/hogwarts:/var/jenkins_home \\
\t\t$image
\techo "you need use such password for init"
\tdocker exec jenkins_hogwarts sh -c 'cat /var/jenkins_home/secrets/initialAdminPassword'
}

设备列表维护

  • STF
  • selenium grid
  • native adb

Jenkins调度

  • 串行
  • 并行
  • 执行用例

设备租用

  • 本地设备
  • 远程设备
关闭