version: 2.1 executors: java17: docker: - image: 'cimg/openjdk:17.0' orbs: maven: circleci/maven@1.3.0 workflows: maven_test: jobs: - maven/test: # checkout, build, test, and upload test results executor: java17 ## I think this job won't run anymore, after I add a workflow. Just leaving it here for reference, and to confirm that. jobs: shouldnt_run: executor: java17 steps: # todo - ssh keys? - checkout - restore_cache: keys: - v1-dependencies-{{ checksum "pom.xml" }} - run: name: Build with tests command: | mvn clean install - run: name: Save test results command: | mkdir -p ~/test-results/junit/ find . -type f -regex ".*/target/surefire-reports/.*xml" -exec cp {} ~/test-results/junit/ \; when: always - store_test_results: path: ~/test-results - persist_to_workspace: root: target paths: - qqq-backend-core-*.jar - store_artifacts: path: target/qqq-backend-core-*.jar destination: qqq-backend-core.jar - save_cache: paths: - ~/.m2 key: v1-dependencies-{{ checksum "pom.xml" }}