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