Commit 21c99b41 authored by Alexander Diewald's avatar Alexander Diewald

Add a stage to clean compiled classes.

parent ee122cee
Pipeline #25846 failed with stages
in 2 minutes
image: git.fortiss.org:5001/af3/maven-releng:latest
stages:
- clean
- build
- test
- deploy
......@@ -16,6 +17,17 @@ variables:
MAVEN_TEST_OPTS: "-Dbuild.tests=true"
MAVEN_BUILD_DIR: "-Duser.dir=/builds/$CI_PROJECT_PATH"
clean:
stage: clean
cache:
key: Default
rules:
- if: '$BUILD_TYPE == "clean"' # This rule will be evaluated
when: on_success
before_script:
- git submodule update $GIT_SUBMODULE_OPTS
script:
- mvn $MAVEN_CLI_OPTS $MAVEN_BUILD_OPTS clean
build:
stage: build
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment