Skip to content

Commit

Permalink
Add the step to sleep randomly
Browse files Browse the repository at this point in the history
  • Loading branch information
yuokada committed Jul 11, 2024
1 parent 05e8057 commit bdc71cf
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit bdc71cf

Please sign in to comment.