Interface Credentials


  • public interface Credentials
    Configures the credentials when accessing the remote build cache.

    The specified values will take precedence over the values defined in the develocity.xml.

    Since:
    1.21
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.String getPassword()
      Gets the remote build cache password.
      java.lang.String getUsername()
      Gets the remote build cache username.
      void setPassword​(java.lang.String password)
      Sets the remote build cache password.
      void setUsername​(java.lang.String username)
      Sets the remote build cache username.
    • Method Detail

      • getUsername

        @Nullable
        java.lang.String getUsername()
        Gets the remote build cache username.
        Returns:
        the remote build cache username or null
      • setUsername

        void setUsername​(@Nullable
                         java.lang.String username)
        Sets the remote build cache username.

        Configuration via the develocity.cache.remote.username system property will always take precedence.

        Parameters:
        username - the remote build cache username or null
      • getPassword

        @Nullable
        java.lang.String getPassword()
        Gets the remote build cache password.
        Returns:
        the remote build cache password or null
      • setPassword

        void setPassword​(@Nullable
                         java.lang.String password)
        Sets the remote build cache password.

        Configuration via the develocity.cache.remote.password system property will always take precedence.

        Parameters:
        password - the remote build cache password or null