@@ -1,4 +1,3 @@ | |||||
kind: pipeline | kind: pipeline | ||||
type: docker | type: docker | ||||
name: 1 | name: 1 | ||||
@@ -6,17 +5,27 @@ platform: | |||||
os: linux | os: linux | ||||
arch: amd64 | arch: amd64 | ||||
steps: | steps: | ||||
- name: maven | - name: maven | ||||
image: maven:3-jdk-10 | image: maven:3-jdk-10 | ||||
volumes: | |||||
- name: cache | |||||
path: /root/.m2 | |||||
commands: | commands: | ||||
- mvn install -DskipTests=true | |||||
- mvn install -DskipTests=true | |||||
- name: run | - name: run | ||||
image: maven:3-jdk-8 | image: maven:3-jdk-8 | ||||
volumes: | |||||
- name: cache | |||||
path: /root/.m2 | |||||
commands: | commands: | ||||
- mvn tomcat7:run | |||||
- nohup mvn tomcat7:run & | |||||
volumes: | |||||
- name: cache | |||||
host: | |||||
path: /var/lib/cache | |||||
trigger: | trigger: | ||||
branch: | branch: | ||||
- master | - master | ||||