...
 
Commits (4)
......@@ -9,6 +9,11 @@
#
# * Caches downloaded dependencies and plugins between invocation.
stages:
- build
- test
- staging
variables:
# This will supress any download for dependencies and plugins or upload messages which would clutter the console log.
# `showDateTime` will show the passed time in milliseconds. You need to specify `--batch-mode` to make this work.
......@@ -24,12 +29,14 @@ variables:
# - $HOME/.m2/repository/
build:
stage: build
script: "mvn clean compile"
image: maven:3.3.9-jdk-8
tags:
- docker
test:
stage: test
script:
- "mvn test"
image: maven:3.3.9-jdk-8
......@@ -37,20 +44,24 @@ test:
- docker
package:
stage: staging
script: "mvn package"
image: maven:3.3.9-jdk-8
tags:
- docker
int-test:
stage: staging
script: "mvn verify"
image: maven:3.3.9-jdk-8
tags:
- docker
docker-build:
script:
- "mvn package"
image: maven:3.3.9-jdk-8
tags:
- docker
# docker-build:
# script:
# - "docker build -t dw-demo-app:latest ./"
# image: docker:latest
# services:
# - docker:dind
# tags:
# - docker
......@@ -5,7 +5,7 @@
<groupId>com.dduportal.jenkins</groupId>
<artifactId>demoapp</artifactId>
<packaging>jar</packaging>
<version>2.0.0-SNAPSHOT</version>
<version>2.0.1-SNAPSHOT</version>
<name>Demo DropWizard Application</name>
......