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.129.124]) by mx.groups.io with SMTP id smtpd.web11.56247.1669926504701756756 for ; Thu, 01 Dec 2022 12:28:24 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=b/0Huf9g; spf=pass (domain: redhat.com, ip: 170.10.129.124, mailfrom: osteffen@redhat.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1669926503; 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=Jq2pTGMyz+dhcuiOMd9+6vdcI6qiE2KEsIuMf9opuKs=; b=b/0Huf9g9IwH3ttxxXVEJFC0KS51GGfCJL0cQF0fAGKmHm3dYoj1pIiVdC20kwM7txQXT1 EKvt/RIzCqi5D6Avxc7+5zaMw3XfCddxyvXKmbMbiUCMsOpUWeJVC0Cm6NrAl6v4lT7/98 +mAAw6RZiE1Gs6WG4c4UQa2/v0/aeZs= Received: from mail-lj1-f200.google.com (mail-lj1-f200.google.com [209.85.208.200]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-3-z31CGtF6NlOeEeRufftmAg-1; Thu, 01 Dec 2022 15:28:22 -0500 X-MC-Unique: z31CGtF6NlOeEeRufftmAg-1 Received: by mail-lj1-f200.google.com with SMTP id f9-20020a05651c02c900b00279d9040c41so486809ljo.8 for ; Thu, 01 Dec 2022 12:28:22 -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=Jq2pTGMyz+dhcuiOMd9+6vdcI6qiE2KEsIuMf9opuKs=; b=Lj84CQID7Hq0UbLdwC5BDgVf4qcVc64WhPCl2TGpm8wN6DkVqC4NVbyT5v8mwjidOx c0UvP2ht0G7ocMEwUoHxWjvbN0KH4Tmm16JGkLNwDNgb2VenfrlZTNDAQRcM334DSA/2 jx8VTT9258N07RiwdDTlLV9vQAteWYKKjT5f6DFCqoybVdFHt9z3MKFt+jtmb/puhCLe ZPioq98AZ7Tdlnno3m1WxsqK1d+j5fWBWiRQGhiVO26ida3OgKq5YkFxgZiCFIQ3LGZf fTg1WjeQnMijqd4+vLC22nzUvAO8EGZqsE3hd1l7hpMZg16nBENGIVIaKy4a6Z0Z7VJD /2+g== X-Gm-Message-State: ANoB5plj1Wa6kXVY83IKAeFNEmai9IAsaDcTTd87S5PGfJXeMOUlERmS qQivVUAXzGFeb3sUqzEV35Ud3Cp61aSWsiwsLY+dTiNaKAMtvqVyvCYOV0QkMGqgLZ6WoYyMIwF /5SmQJqte0XARWp8VEzX3pJ2Xz0wCog== X-Received: by 2002:a19:5e49:0:b0:4a2:459e:a92d with SMTP id z9-20020a195e49000000b004a2459ea92dmr21197528lfi.400.1669926500740; Thu, 01 Dec 2022 12:28:20 -0800 (PST) X-Google-Smtp-Source: AA0mqf51Vw+hcKoqmVr0Z7cVwA/nb0Mui1gfWzyiE+r3rEhC3P596IlQKcvHFg1XIE8hIDD7lzKUo4EgGTSObPRfM5A= X-Received: by 2002:a19:5e49:0:b0:4a2:459e:a92d with SMTP id z9-20020a195e49000000b004a2459ea92dmr21197506lfi.400.1669926500582; Thu, 01 Dec 2022 12:28:20 -0800 (PST) Received: from 567203818698 named unknown by gmailapi.google.com with HTTPREST; Thu, 1 Dec 2022 12:28:20 -0800 From: "Oliver Steffen" X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221201202810.109662-1-osteffen@redhat.com> References: <20221201202810.109662-1-osteffen@redhat.com> MIME-Version: 1.0 Date: Thu, 1 Dec 2022 12:28:20 -0800 Message-ID: Subject: [PATCH v10 06/17] 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 , Michael Kubacki 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 Reviewed-by: Michael Kubacki --- .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