• 在之前的freestyle任务基础上,实现构建功能
• 检查maven环境
• 构建命令:mvn clean compile
• 归档构建产物
• 演练参数的使用
• 通过配置Trigger进行自动构建
• 多并发任务场景和规则
Node节点安装mvn工具
[root@centos7 ~]# mkdir mvn [root@centos7 mvn]# wget http://124.205.69.165/files/4113000006CDBFAF/mirrors.hust.edu.cn/apache/maven/maven-3/3.5.4/binaries/apache-maven-3.5.4-bin.tar.gz [root@centos7 mvn]# tar xf apache-maven-3.5.4-bin.tar.gz [root@centos7 apache-maven-3.5.4]# export PATH=/root/mvn/apache-maven-3.5.4/bin:$PATH [root@centos7 apache-maven-3.5.4]# mvn -v Apache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe; 2018-06-18T02:33:14+08:00) Maven home: /root/mvn/apache-maven-3.5.4 Java version: 1.8.0_181, vendor: Oracle Corporation, runtime: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.181-3.b13.el7_5.x86_64/jre Default locale: zh_CN, platform encoding: UTF-8 OS name: "linux", version: "3.10.0-862.3.3.el7.x86_64", arch: "amd64", family: "unix"