用AI赚第一桶💰低成本搭建一套AI赚钱工具,源码可二开。 广告
[TOC] ## 使用多个agent <details> <summary> Jenkinsfile</summary> ``` pipeline { agent none stages { { agent any steps { checkout scm sh 'make' stash includes: '**/target/*.jar', name: 'app' ① } } on Linux') { agent { ② label 'linux' } steps { unstash 'app' ③ sh 'make check' } post { always { junit '**/target/*.xml' } } } on Windows') { agent { label 'windows' } steps { unstash 'app' bat 'make check' ④ } post { always { junit '**/target/*.xml' } } } } } ``` </details> <br /> 在任一台机器上面做Build操作,并通过`stash`命令保存文件,然后分别在两台agent机器上面做测试。 注意这里所有步骤都是串行执行的