image: maven:latest | |
variables: | |
GITLAB_FEATURES: "${GITLAB_FEATURES},dependency_scanning" | |
include: | |
- template: Jobs/Dependency-Scanning.gitlab-ci.yml | |
stages: | |
- build | |
- test | |
build-and-test: | |
stage: build | |
script: | |
- mvn test | |
- mvn install | |
artifacts: | |
name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME" | |
paths: | |
- target/*.jar |