jenkins pipeline
2021/4/18 18:25:21
本文主要是介绍jenkins pipeline,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
node('builder-chengdu-arm64-245') { stage('AT-AMD') { deleteDir() git credentialsId: '91755e02-e0c9-4507-ab3d-3cbde96f98cf', url: 'git@gitlabcd.uniontech.com:autotest/cd-desktop-app.git' sh''' user=amd-1 ip=10.8.13.34 work_space=${WORKSPACE} romete_project_path=/home/${user}/Documents/cd-desktop-app # 删除历史代码 ssh ${user}@${ip} "rm -rf ${romete_project_path} && mkdir ${romete_project_path}" # 发送最新代码到测试机 scp -r ${work_space}/* ${user}@${ip}:${romete_project_path}/ # 执行多媒体 ssh ${user}@${ip} "cd ${romete_project_path}/run/run_1040/media_run/ && python3 camera_run.py" # 返回报告 sleep 5 scp ${user}@${ip}:${romete_project_path}/report/${user}*.xml ${work_space}/report/allure_result_amd/ ''' allure includeProperties: false, jdk: '', results: [[path: 'report/allure_results_amd']] } }
这篇关于jenkins pipeline的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!
- 2024-03-30[译]漫画SELinux概念
- 2024-03-29linux 移动文件
- 2024-03-28linux .so file
- 2024-03-28Linux 磁盘管理
- 2024-03-28Linux学习笔记(十三)磁盘管理(一):磁盘分区
- 2024-03-26linux 创建 文件
- 2024-03-25使用SecureCRT对Linux vim进行颜色设置
- 2024-03-202019-2020-12 20199317 《Linux内核原理与分析》 第十二周作业
- 2024-03-20Linux运维的第二周总结
- 2024-03-13how to count number of directories in linux