#!/bin/bash
echo "============开始从git拉取代码==================="
#1. 登录构建服务器
#2. 进入工程目录
cd /root/autotest_hmf/cicd3
#3.直接将本地的状态恢复到上一个commit id
git reset --hard
#4. 丢弃本地更改
echo "shell:git clean -f"
#git clean -f
#5. 更新代码
echo "shell:git pull origin dev_hmf
git pull origin dev_hmf
#加载环境变量
source /etc/profile
#执行AOEAutoTest
#mvn clean test -Dsurefire.suiteXmlFiles=./src/test/java/testng/aoe_suite.xml
mvn clean test -D test=NoSQLTest
git pull origin dev_hmf
mvn clean test -D test=NoSQLTest
mvn clean test -D test=MongoInterfaceTest
mvn clean test -D test=NoSQLTest_all