public Builder setCredentialRetrievers(List<CredentialRetriever> credentialRetrievers) {
      Preconditions.checkArgument(
          credentialRetrievers.stream().allMatch(Objects::nonNull),
          "credential retriever list contains null elements");
      this.credentialRetrievers = ImmutableList.copyOf(credentialRetrievers);
      return this;
    }
Sets the providers for registry credentials. The order determines the priority in which the
retrieval methods are attempted.

@param credentialRetrievers the list of {@link CredentialRetriever}s
@return this
jib-core/src/main/java/com/google/cloud/tools/jib/configuration/ImageConfiguration.java