Commit f30cff25 by Jessica Hawkwell

Update .gitlab-ci.yml

1 parent 208295d3
Pipeline #117 failed
in 1 minute 22 seconds
Showing with 4 additions and 19 deletions
...@@ -20,14 +20,7 @@ stages: ...@@ -20,14 +20,7 @@ stages:
compile: compile:
stage: compile stage: compile
script: script:
- mvn -Dgit-rev="`git describe`" $MAVEN_CLI_OPTS compile - mvn -Dgit-rev="`git describe`" $MAVEN_CLI_OPTS compile test
artifacts:
paths:
- target
test:
stage: compile
- mvn -Dgit-rev="`git describe`" $MAVEN_CLI_OPTS test-compile test
artifacts: artifacts:
paths: paths:
- target - target
...@@ -38,23 +31,14 @@ package: ...@@ -38,23 +31,14 @@ package:
- compile - compile
script: script:
- mvn -Dgit-rev="`git describe`" $MAVEN_CLI_OPTS package - mvn -Dgit-rev="`git describe`" $MAVEN_CLI_OPTS package
site:
stage: package
dependencies:
- test
script:
- mvn -Dgit-rev="`git describe`" $MAVEN_CLI_OPTS site site:jar
artifacts: artifacts:
paths: paths:
- target/site - target/*.jar
- target/*-site.jar
deploy: deploy:
stage: deploy stage: deploy
dependencies: dependencies:
- package - package
- site
script: script:
- mvn -Dgit-rev="`git describe`" $MAVEN_CLI_OPTS deploy - mvn -Dgit-rev="`git describe`" $MAVEN_CLI_OPTS deploy
artifacts: artifacts:
...@@ -64,8 +48,9 @@ deploy: ...@@ -64,8 +48,9 @@ deploy:
pages: pages:
stage: deploy stage: deploy
dependencies: dependencies:
- site - package
script: script:
- unzip *-site.jar -d site
- mvn -Dgit-rev="`git describe`" $MAVEN_CLI_OPTS site:stage - mvn -Dgit-rev="`git describe`" $MAVEN_CLI_OPTS site:stage
- mv target/staging public - mv target/staging public
artifacts: artifacts:
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!