Commit 9205e943 authored by David Diederich's avatar David Diederich
Browse files

Adding update snapshots to FOSSA maven builds

Before running the fossa scans, we use mvn install to make sure the .m2 repository is up to date with all dependencies. During this
process, we should update snapshots, because we are still using services that depend on SNAPSHOT libraries.

Without this, the cache from the runner would be used, which isn't always up to date.

Note: the compile-and-unit-test job already does this.
parent cf7b3088
Pipeline #52989 passed with stage
in 7 seconds
......@@ -20,7 +20,7 @@ fossa-analyze:
# then things will fail and we'll have to make this smarter
- $MAVEN_FOREACH maven-fossa-output.txt install -DskipTests=true
- $MAVEN_FOREACH maven-fossa-output.txt install --update-snapshots -DskipTests=true
- cp "$CI_PROJECT_DIR/.mvn/community-maven.settings.xml" ~/.m2/settings.xml
- fossa analyze --project "${CI_PROJECT_TITLE}" --project-url "${CI_PROJECT_URL}" --branch "${CI_COMMIT_BRANCH}"
- fossa-check-for-licensing-issues
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