From 68a50727d898d816d75d51c8c8b379e509d8d7c4 Mon Sep 17 00:00:00 2001 From: svc-excavator-bot Date: Fri, 25 Oct 2024 21:30:38 +0000 Subject: [PATCH] Excavator: Render CircleCI file using template specified in .circleci/template.sh --- .circleci/config.yml | 36 +++++++++++------------------------- 1 file changed, 11 insertions(+), 25 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 536510c22..12aabc79c 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -20,7 +20,7 @@ aliases: jobs: check: - docker: [{ image: 'cimg/openjdk:11.0.10-node' }] + docker: [{ image: 'cimg/openjdk:11.0.22-node' }] resource_class: large environment: CIRCLE_TEST_REPORTS: /home/circleci/junit @@ -61,7 +61,7 @@ jobs: if [ -x .circleci/check-setup.sh ]; then echo "Running check-setup" && .circleci/check-setup.sh && echo "check-setup complete" fi - - run: ./gradlew --parallel --stacktrace --continue --max-workers=2 build -Porg.gradle.java.installations.fromEnv=JAVA_8_HOME,JAVA_11_HOME,JAVA_15_HOME,JAVA_17_HOME,JAVA_HOME + - run: ./gradlew --parallel --stacktrace --continue --max-workers=2 build -Porg.gradle.java.installations.fromEnv=JAVA_11_HOME,JAVA_17_HOME,JAVA_21_HOME,JAVA_HOME - *check-no-files-changed - persist_to_workspace: root: /home/circleci @@ -78,14 +78,8 @@ jobs: - store_test_results: { path: ~/junit } - store_artifacts: { path: ~/artifacts } - trial-publish: - docker: [ { image: 'busybox:1.36.1@sha256:6d9ac9237a84afe1516540f40a0fafdc86859b2141954b4d643af7066d598b74' } ] - resource_class: small - steps: - - run: { command: echo "Dummy job so repos that require the `trial-publish` job to merge PRs still see a passing `trial-publish`. Should be replaced by a `circle-all` job at some point." } - publish: - docker: [{ image: 'cimg/openjdk:11.0.10-node' }] + docker: [{ image: 'cimg/openjdk:11.0.22-node' }] resource_class: medium environment: CIRCLE_TEST_REPORTS: /home/circleci/junit @@ -97,7 +91,7 @@ jobs: - restore_cache: { key: 'gradle-wrapper-v1-{{ checksum "gradle/wrapper/gradle-wrapper.properties" }}' } - restore_cache: { key: 'publish-gradle-cache-v1-{{ checksum "versions.props" }}-{{ checksum "build.gradle" }}' } - deploy: - command: ./gradlew --parallel --stacktrace --continue publish -Porg.gradle.java.installations.fromEnv=JAVA_8_HOME,JAVA_11_HOME,JAVA_15_HOME,JAVA_17_HOME,JAVA_HOME + command: ./gradlew --parallel --stacktrace --continue publish -Porg.gradle.java.installations.fromEnv=JAVA_11_HOME,JAVA_17_HOME,JAVA_21_HOME,JAVA_HOME - run: command: git status --porcelain when: always @@ -106,14 +100,12 @@ jobs: paths: [ ~/.gradle/caches ] - store_test_results: { path: ~/junit } - store_artifacts: { path: ~/artifacts } + circle-all: - docker: - - image: busybox:1.34.1 + docker: [{ image: 'busybox:1.36.1@sha256:6d9ac9237a84afe1516540f40a0fafdc86859b2141954b4d643af7066d598b74' }] resource_class: small steps: - - run: - command: echo "All required jobs finished successfully" - + - run: {command: echo "All required jobs finished successfully"} workflows: version: 2 @@ -122,16 +114,10 @@ workflows: - check: filters: { tags: { only: /.*/ } } - - trial-publish: - filters: { branches: { ignore: develop } } + - circle-all: + requires: [ check ] + filters: { tags: { only: /.*/ } } - publish: - requires: [ check, trial-publish ] + requires: [ circle-all ] filters: { tags: { only: /.*/ }, branches: { only: develop } } - - circle-all: - requires: - - trial-publish - - check - filters: - tags: - only: /.*/