def distribute_docker_credentials_to_private_agents(
        username,
        password,
        file_name='docker.tar.gz'):
    """ Create and distributes a docker credentials file to all private agents

        :param username: docker username
        :type username: str
        :param password: docker password
        :type password: str
        :param file_name: credentials file name `docker.tar.gz` by default
        :type file_name: str
    """

    create_docker_credentials_file(username, password, file_name)

    try:
        __distribute_docker_credentials_file()
    finally:
        os.remove(file_name)
def distribute_docker_credentials_to_private_agents ( username , password , file_name = 'docker.tar.gz' ) : create_docker_credentials_file ( username , password , file_name ) try : __distribute_docker_credentials_file ( ) finally : os . remove ( file_name )
Create and distributes a docker credentials file to all private agents

        :param username: docker username
        :type username: str
        :param password: docker password
        :type password: str
        :param file_name: credentials file name `docker.tar.gz` by default
        :type file_name: str