diff --git a/.trustie-pipeline.yml b/.trustie-pipeline.yml index 60da008..b23cfd1 100644 --- a/.trustie-pipeline.yml +++ b/.trustie-pipeline.yml @@ -6,6 +6,12 @@ platform: os: linux arch: amd64 steps: +- name: maven + image: maven:3-jdk-10 + commands: + - ls + - cd visualization + - mvn install -DskipTests=true # 本模板示例为上传软件包和部署脚本到home目录 # host、username、password可在参数管理中配置 - name: 上传文件 @@ -38,6 +44,7 @@ steps: - cd /opt/visualization - tomcat=$(netstat -nlp | grep :8080 | awk '{print $7}' | awk -F"/" '{ print $1 }') - kill -9 $tomcat >/dev/null 2>&1 + - ls - mvn clean package - java -jar target/demo-0.0.1-SNAPSHOT.jar - echo ====部署成功======