From nobody Tue May 14 19:45:37 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+98041+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+98041+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1672965872; cv=none; d=zohomail.com; s=zohoarc; b=W09yZsAiX4hInNgTVEfbjjtZScISBpfzyb5QWCP+guX8487CPtRIXN/fnJ15KtE7XwY9rWsFLNjG/16wTy6KitOPvk5bB4w/qJTXBEG5LEI8hCUatnzzxpQQA+uTG/s+0HM0g8TDS72iOiG0xJrmNODv/vOkP2lVF0eZNan+TwU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1672965872; h=Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Sender:Subject:To; bh=YNjhza4I6oy8pjfldHjE+rdx9rxOq12Dv32hdFZWbzg=; b=ltPrKl7icEUuxnATzlkaceaBACuHhqzHPinSIQIydJsl5Nfz7AcRAEEj/rFVBZFTrYwlttVR1sXQS4wlk4+ZFT+vXJonPAzssclpoUZsGpqemtpHQ4XHf4P9+0J1O8loETgUHZqtK0KMNOzBJBE7HMEQL2DO0Yt85Pv60mGgBjQ= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+98041+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1672965872172863.9598264127046; Thu, 5 Jan 2023 16:44:32 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id lyEPYY1788612xL902ene1TN; Thu, 05 Jan 2023 16:44:31 -0800 X-Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mx.groups.io with SMTP id smtpd.web11.2365.1672965870989415565 for ; Thu, 05 Jan 2023 16:44:31 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10581"; a="305883516" X-IronPort-AV: E=Sophos;i="5.96,303,1665471600"; d="scan'208";a="305883516" X-Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Jan 2023 16:44:30 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10581"; a="649148729" X-IronPort-AV: E=Sophos;i="5.96,303,1665471600"; d="scan'208";a="649148729" X-Received: from gguo-desk.gar.corp.intel.com ([10.5.215.23]) by orsmga007.jf.intel.com with ESMTP; 05 Jan 2023 16:44:28 -0800 From: "Guo, Gua" To: devel@edk2.groups.io Cc: Gua Guo , Sean Brogan , Michael Kubacki , Michael D Kinney , Liming Gao Subject: [edk2-devel] [PATCH] .azurepipelines: Skip CodeCoverage if coverage.xml not found Date: Fri, 6 Jan 2023 08:44:24 +0800 Message-Id: <4f8e95f65b608131ac7645cc3824624e913954fd.1672965793.git.gua.guo@intel.com> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,gua.guo@intel.com X-Gm-Message-State: oO78eKVELzTq7CAy9yIJ9Dm9x1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1672965871; bh=2dB+g+rLOjuM6W2kr7At+gJKXSTOIAEht+8ypPJjISQ=; h=Cc:Date:From:Reply-To:Subject:To; b=jW2Qn0nehl4Qc+gqV2peyxqkcrgESEjQq8Tg/Q1/Fk393q9PTlP/YlZXMbUf6f3l2PJ hdLTkPjrLj1jp0p8eeYZtnqktibd+NAZtlqJEW2XYZ+o8shLqldZjFf7ypfo0CLB+/p1z RsD8ziLULC6WRz//vAbtfM9dvQBYchWutGQ= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1672965872801100001 Content-Type: text/plain; charset="utf-8" From: Gua Guo Skip CodeCoverage if coverage.xml not found Cc: Sean Brogan Cc: Michael Kubacki Cc: Michael D Kinney Cc: Liming Gao Signed-off-by: Gua Guo Reviewed-by: Michael D Kinney Reviewed-by: Michael Kubacki Reviewed-by: Sean Brogan --- .azurepipelines/templates/pr-gate-build-job.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.azurepipelines/templates/pr-gate-build-job.yml b/.azurepipeli= nes/templates/pr-gate-build-job.yml index 840852b606..fff61a3193 100644 --- a/.azurepipelines/templates/pr-gate-build-job.yml +++ b/.azurepipelines/templates/pr-gate-build-job.yml @@ -100,16 +100,24 @@ jobs: buildType: 'current' targetPath: '$(Build.ArtifactStagingDirectory)' =20 + - powershell: Write-Host "##vso[task.setvariable variable=3Dis_code_co= verage]0" + displayName: Give default value for whether CodeCoverage or not + + - powershell: if (Test-Path -Path $(Build.ArtifactStagingDirectory)/**= /coverage.xml) {Write-Host "##vso[task.setvariable variable=3Dis_code_cover= age]1"} + displayName: Check coverage.xml exist or not + - task: CmdLine@2 displayName: Create code coverage report inputs: script: | dotnet tool install -g dotnet-reportgenerator-globaltool reportgenerator -reports:$(Build.ArtifactStagingDirectory)/**/co= verage.xml -targetdir:$(Build.ArtifactStagingDirectory)/Coverage -reporttyp= es:Cobertura -filefilters:-*Build*;-*UnitTest*;-*Mock*;-*usr* + condition: eq(variables.is_code_coverage, 1) =20 - task: PublishCodeCoverageResults@1 displayName: 'Publish code coverage' inputs: codeCoverageTool: Cobertura summaryFileLocation: '$(Build.ArtifactStagingDirectory)/Coverage/C= obertura.xml' + condition: eq(variables.is_code_coverage, 1) =20 --=20 2.31.1.windows.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#98041): https://edk2.groups.io/g/devel/message/98041 Mute This Topic: https://groups.io/mt/96085111/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-