def construct_payload(build_number, build_result, build_result_color, build_url, jenkins_url, job_base_name,
                      job_name, timestamp):
    """Composes the payload for an MQTT message."""

    return f"""
        BUILD_NUMBER: '{build_number}'
        BUILD_RESULT: '{build_result}'
        BUILD_RESULT_COLOR: '{build_result_color}'
        BUILD_URL: '{build_url}'
        JENKINS_URL: '{jenkins_url}'
        JOB_BASE_NAME: '{job_base_name}'
        JOB_NAME: '{job_name}'
        TIMESTAMP: {timestamp}
    """