Skip to content
Snippets Groups Projects
Commit 21c99b41 authored by Alexander Diewald's avatar Alexander Diewald
Browse files

Add a stage to clean compiled classes.

parent ee122cee
No related branches found
No related tags found
No related merge requests found
Pipeline #25846 failed
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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment