6998ffe osbuild: use task result to get build info

2 files Authored by Christian Kellner 3 years ago, Committed by lsedlar 3 years ago,
    osbuild: use task result to get build info
    
    Instead of parsing the log file to get the NVR and then in turn
    use that to get to the build info use the structured return value
    from the koji task. The return value of the osbuild plugin is:
        result = {
            "composer": {
                "server": <COMPOSER_URL>,
                "id": <COMPOSE_ID>
            },
            "koji": {
                "build": <BUILD_ID>
            }
        }
    This means we have direct access to the koji build id, which was
    returned by composer to the plugin via its status API. Using that
    removes the need to parse the log file.
    
    Adapt the test accordingly.
    
    Merges: https://pagure.io/pungi/pull-request/1475
    Signed-off-by: Christian Kellner <christian@kellner.me>
    
        
file modified
+6 -16
file modified
+18 -6