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: