From bdc71cf8fbca0fcdd37ee1ff7c7307103a15f619 Mon Sep 17 00:00:00 2001 From: Yukihiro Okada Date: Wed, 10 Jul 2024 13:20:38 +0900 Subject: [PATCH] Add the step to sleep randomly --- .circleci/config.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 0c068c6f..9b4afa12 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -22,6 +22,13 @@ jobs: executor: << parameters.jdk >> steps: - checkout + - run: + # when jdk other than jdk8 is specified, sleep for a random time between 0 and 30 seconds + name: Sleep to avoid resource name conflict + command: | + if [[ $CIRCLE_JOB != "build-jdk8" ]]; then + sleep $((RANDOM % 30)) + fi - maven/with_cache: steps: - run: