@@ -8,24 +8,21 @@ steps: | |||||
- name: maven | - name: maven | ||||
image: maven:3-jdk-10 | image: maven:3-jdk-10 | ||||
volumes: | volumes: | ||||
- name: cache | |||||
path: /root/.m2 | |||||
- name: cache | |||||
path: /root/.m2 | |||||
commands: | commands: | ||||
- mvn install -DskipTests=true | |||||
- name: run | |||||
image: maven:3-jdk-8 | |||||
- mvn install -DskipTests=true | |||||
- name: run | |||||
image: maven:3-jdk-8 | |||||
volumes: | volumes: | ||||
- name: cache | |||||
path: /root/.m2 | |||||
commands: | |||||
- nohup mvn tomcat7:run & | |||||
- name: cache | |||||
path: /root/.m2 | |||||
commands: | |||||
- nohup mvn tomcat7:run & | |||||
volumes: | volumes: | ||||
- name: cache | |||||
host: | |||||
path: /var/lib/cache | |||||
- name: cache | |||||
host: | |||||
path: /var/lib/cache | |||||
trigger: | trigger: | ||||
branch: | branch: | ||||
- master | - master | ||||