The build and target directories should not get cached between different Git commit builds (pipelines). Assume the first pipeline of a branch builds and caches some compiled Java class from the target/classes directory in the global/branch (key: $CI_COMMIT_REF_SLUG) cache. If the source code of that class is then removed by the next commit, the pipeline for that commit will extract the previously cached class file. Since the Maven build templates never call "clean" the class file will be part of test execution, packaging, etc. even though its source code was removed. The target/ directory is already passed from the Maven Build-Java job to the Test-Java job within the same pipeline anyway. |
||
|---|---|---|
| .idea | ||
| documentation | ||
| pipelines | ||
| templates | ||
| test/docker | ||
| .gitignore | ||
| .gitlab-ci.yml | ||
| README.adoc | ||
| release.gitlab-ci.yml | ||
| renovate.json | ||
| version | ||
| version.svg | ||
ifndef::imagesdir[] :imagesdir: documentation/images endif::[] include::documentation/document.adoc[]