private async _processDeploymentResponse()

in src/appservice-rest/Utilities/KuduServiceUtility.ts [136:155]


    private async _processDeploymentResponse(deploymentDetails: any): Promise<void> {
        try {
            var kuduDeploymentDetails = await this._webAppKuduService.getDeploymentDetails(deploymentDetails.id);
            core.debug(`logs from kudu deploy: ${kuduDeploymentDetails.log_url}`);

            if(deploymentDetails.status == KUDU_DEPLOYMENT_CONSTANTS.FAILED) {
                await this._printZipDeployLogs(kuduDeploymentDetails.log_url);
            }
            else {
                console.log('Deploy logs can be viewed at %s', kuduDeploymentDetails.log_url);
            }
        }
        catch(error) {
            core.debug(`Unable to fetch logs for kudu Deploy: ${JSON.stringify(error)}`);
        }

        if(deploymentDetails.status == KUDU_DEPLOYMENT_CONSTANTS.FAILED) {
            throw 'Package deployment using ZIP Deploy failed. Refer logs for more details.';
        }
    }