public Retry<E> maximumRetries(int maximumRetries) {
    Preconditions.checkArgument(maximumRetries > 0);
    this.maximumRetries = maximumRetries;
    return this;
  }
Configure the maximum number of retries.

@param maximumRetries the number of retries, must be zero or more
@return this Retry instance
jib-core/src/main/java/com/google/cloud/tools/jib/cache/Retry.java