From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.groups.io with SMTP id smtpd.web10.26225.1669845704603379187 for ; Wed, 30 Nov 2022 14:01:44 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=IkbOzli0; spf=pass (domain: redhat.com, ip: 170.10.133.124, mailfrom: osteffen@redhat.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1669845703; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=vhn7t/bxjWWlabl3tlK+/xkDw6+XBJicNn5UZ0mlz0w=; b=IkbOzli0T516GW+KeX/az8FT50wz0zEwVPUkn0326//Qrlr6prQbTGv9GY1JM9ReA8wcqs VnruQqpZN/Ldm1sb4pwBw78BDItGRE0/otSKYrBlzKz2YpFKqMn5zRfmRzIi305B3q1X8S atru77SSXPjQePn+ZIpf5EXQUuu4XUA= Received: from mail-lf1-f72.google.com (mail-lf1-f72.google.com [209.85.167.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-194-yAW6KSctMxenQYKpnTFSqg-1; Wed, 30 Nov 2022 17:01:42 -0500 X-MC-Unique: yAW6KSctMxenQYKpnTFSqg-1 Received: by mail-lf1-f72.google.com with SMTP id w14-20020a19490e000000b004b12aab341cso6963507lfa.11 for ; Wed, 30 Nov 2022 14:01:42 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=vhn7t/bxjWWlabl3tlK+/xkDw6+XBJicNn5UZ0mlz0w=; b=5NyeZ9jQtAvsAeMNf86u+udG3Hyj7JLM3husTyNH+OlW4PO3xGQrjzl1bkvIADe4mM pO7GStZyAY0ZLV3IlMSkcVe8CAHYFBa5dOFIDD8mDYJLO8HxAzITi/Xa6V+3d4yK/mnq OOWrFYDyonR7NDqe//f0Wapjn71anJHnCHS486zfTwE4ro9IJZQtCnNEticHOoOZH8u5 0QoqdOAbzBBlmBxOL71rGTOl5+MYdUn/eiwLaGsdo2xAqgJytkKiTmoEsIArrYF9ATL1 LZRdMfjX3ZXYfPLj3ZrcTACUCYmGMwxXD1RUTdCYvpWRuL4vEr2xft8eNytD8nfkOWA9 x/nw== X-Gm-Message-State: ANoB5pl67DB+yPpBBmW8GtF7tojDrkI7AcMY8vBsWXjcb+Hed/cbv3d6 tghUABZN8yfMSmLuCIsNDTyWYZNbSnDVQAoUXIheB32J44wPmus/aFIQ7zCJx3qZoR++xGIYXXb 1CBR5Q4aXw5FWj/Lwrs+01Dx17JKAUQ== X-Received: by 2002:a2e:a371:0:b0:279:7d4a:f22b with SMTP id i17-20020a2ea371000000b002797d4af22bmr12599173ljn.471.1669845700510; Wed, 30 Nov 2022 14:01:40 -0800 (PST) X-Google-Smtp-Source: AA0mqf7NdG4bTYzN7Nfp53cxyDt53MrZhiHHWlqEV0MZlPJCfEe2wCx4d7hVVT1051Kj90WSs6gHNMxkkAPlbDE4l5I= X-Received: by 2002:a2e:a371:0:b0:279:7d4a:f22b with SMTP id i17-20020a2ea371000000b002797d4af22bmr12599159ljn.471.1669845700323; Wed, 30 Nov 2022 14:01:40 -0800 (PST) Received: from 567203818698 named unknown by gmailapi.google.com with HTTPREST; Wed, 30 Nov 2022 14:01:39 -0800 From: "Oliver Steffen" X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221130220125.1112760-1-osteffen@redhat.com> References: <20221130220125.1112760-1-osteffen@redhat.com> MIME-Version: 1.0 Date: Wed, 30 Nov 2022 14:01:39 -0800 Message-ID: Subject: [PATCH v9 05/12] CI: Allow running in a container. To: devel@edk2.groups.io Cc: Andrew Fish , Ard Biesheuvel , Bob Feng , Daniel Schaefer , Gerd Hoffmann , Jiewen Yao , Jordan Justen , Leif Lindholm , Liming Gao , Michael D Kinney , Michael Kubacki , Ray Ni , Sami Mujawar , Sean Brogan , Sunil V L , Yuwei Chen , Zhiguang Liu , Pawel Polawski , Chris Fernald , Oliver Steffen X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" Add a parameter of the pr-gate-build-job template to specify a container image URL. If the value is not '' (default), then the jobs will be run inside a container based on that image. Signed-off-by: Oliver Steffen --- .azurepipelines/templates/pr-gate-build-job.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.azurepipelines/templates/pr-gate-build-job.yml b/.azurepipelines/templates/pr-gate-build-job.yml index f0ef1142da49..5ffcaca7b591 100644 --- a/.azurepipelines/templates/pr-gate-build-job.yml +++ b/.azurepipelines/templates/pr-gate-build-job.yml @@ -12,6 +12,7 @@ parameters: tool_chain_tag: '' vm_image: '' arch_list: '' + container: '' usePythonVersion: '' # Build step @@ -71,6 +72,9 @@ jobs: pool: vmImage: ${{ parameters.vm_image }} + ${{ if not(eq(parameters.container, '')) }}: + container: ${{ parameters.container }} + steps: - template: pr-gate-steps.yml parameters: -- 2.38.1