Fetch the repository succeeded.
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']]
}
}
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。