Skip to content
Snippets Groups Projects
Commit cbb77940 authored by Jonas Blatt's avatar Jonas Blatt :ant:
Browse files

gitlab ci

parent 0fa99368
No related branches found
No related tags found
No related merge requests found
......@@ -57,35 +57,12 @@ verify:jdk8:
<<: *verify
image: maven:3.3.9-jdk-8
# For `master` branch run `mvn deploy` automatically.
# Here you need to decide whether you want to use JDK7 or 8.
# To get this working you need to define a volume while configuring your gitlab-ci-multi-runner.
# Mount your `settings.xml` as `/root/.m2/settings.xml` which holds your secrets.
# See https://maven.apache.org/settings.html
deploy:jdk8:
# Use stage test here, so the pages job may later pickup the created site.
stage: test
script:
- 'mvn $MAVEN_CLI_OPTS tomcat:redeploy'
only:
- master
# Archive up the built documentation site.
#artifacts:
# paths:
# - target/staging
image: maven:3.3.9-jdk-8
pages:
deploy:
image: busybox:latest
stage: deploy
script:
# Because Maven appends the artifactId automatically to the staging path if you did define a parent pom,
# you might need to use `mv target/staging/YOUR_ARTIFACT_ID public` instead.
- mv target/staging public
- 'mvn $MAVEN_CLI_OPTS tomcat:redeploy'
dependencies:
- deploy:jdk8
artifacts:
paths:
- public
only:
- master
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment