7 Star 53 Fork 27

zx钟/UITest

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Jenkinsfile 2.02 KB
一键复制 编辑 原始数据 按行查看 历史
zx钟 提交于 2022-05-12 16:20 +08:00 . 修改README
pipeline {
agent {
label "${params.test_PC}"
}
triggers {
cron('H * * * *')
}
parameters {
gitParameter(name: 'branch', branch: '', branchFilter: '.*', defaultValue: 'origin/master', description: '代码分支', quickFilterEnabled: false, selectedValue: 'NONE', sortMode: 'NONE', tagFilter: '*', type: 'PT_BRANCH')
choice(name: 'test_PC', choices: ['a', 'b'], description: '执行设备')
choice(name: 'headless', choices: ['false', 'true'], description: '是否不显示浏览器界面')
choice(name: 'concurrent', choices: ['否', '1', '2', '3', '4', 'auto'], description: '是否并发执行,并发数')
string(name: 'apk_path', defaultValue: '', description: '安装包地址')
string(name: 'udid', defaultValue: '', description: '测试手机')
string(name: 'remote_url', defaultValue: 'http://127.0.0.1', description: '远程地址')
string(name: 'remote_port', defaultValue: '4723', description: '远程端口')
string(name: 'robot', defaultValue: '', description: '企业微信群机器人地址,以逗号分隔')
string(name: 'email', defaultValue: '', description: '邮箱地址,以逗号分隔')
text(name: 'cases', defaultValue: '''''', description: '要执行的用例', )
}
stages {
stage('克隆代码'){
steps{
checkout([$class: 'GitSCM', branches: [[name: "${params.branch}"]], doGenerateSubmoduleConfigurations: false, extensions: [], gitTool: 'Default', submoduleCfg: [], userRemoteConfigs: [[url: 'https://gitee.com/zx660644/uitest.git',credentialsId: 'xxx',]]])
}
}
stage('执行测试'){
steps{
dir("${env.WORKSPACE}/src/cases/") {
sh '''
python3 allure_debug.py
exit 0
'''
}
}
}
stage('生成Allure报告'){
steps{
allure includeProperties: false, jdk: '', results: [[path: 'report/allure_results']]
}
}
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/zx660644/uitest.git
git@gitee.com:zx660644/uitest.git
zx660644
uitest
UITest
master

搜索帮助