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.22813.1669838475892817540 for ; Wed, 30 Nov 2022 12:01:16 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=SM1s7Vs9; 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=1669838475; 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=SM1s7Vs9yGE+S1OkHVmyuP9kK0O0/MRvCFmNHkBjvUXVc3QL3B5KU/4qbrGjULagE8wHPz fbCTdkpHtT4SfslaX2WBuoBiftDUEYPyT15zMfLSe/cbBSH1+q34EiFQn0EoC+iZfVy5ct Xg/o8JaVVuV64nJfVwdYLt+XfloSh2E= 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-81-DP3GPvC0M6uFDmWSQoq-sA-1; Wed, 30 Nov 2022 15:01:12 -0500 X-MC-Unique: DP3GPvC0M6uFDmWSQoq-sA-1 Received: by mail-lf1-f72.google.com with SMTP id k19-20020ac24f13000000b004a49391ef9eso6852863lfr.9 for ; Wed, 30 Nov 2022 12:01:12 -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=DHCZjRMzI/eGoOe753CH55sWJ8TAZp3DMsPye7bOrW1HnFcLC78BxvI2UpPvqgrsFz ST4J0FQbOLK008uUtthHQu3FupIaMHRC0JP/KmhaSm88fxrgunafXC8AvJs6e7eriKK5 1/zYMecHMLaGoETfsJlIsVOkZJQsoFJh4CxHXxJXyLB49Bv9jTdIq3FbJmTmywYzEhDK eWfqvM3mhlRJYp0cQff2sxFqnw0p86P9hDifRnD6VLM2iBVsO7C7TwhayJ0ttNkwpoB+ ZovYUtgBCcWjJh92CURwxABXbRlkw+CUHrZNRWWwrUUDir3g+zYwZlNCBV4Ii9xLEwrP m6Tg== X-Gm-Message-State: ANoB5pmuhUJn7CI0UIsJohI6YUmo78oTyVEN4l+imKeLwmf5ctEZesIo CGBeVYaRiBYwooDRY4t+Tq4qbqEpn9kPbbXMcTTVW5bRIPPur6gyH4fDuGJsZS4CVuEJOM653av 5vxoZ44sfI04sWKK1AheBurelh9RhKg== X-Received: by 2002:a05:651c:239e:b0:279:c7b9:c365 with SMTP id bk30-20020a05651c239e00b00279c7b9c365mr1262146ljb.134.1669838470847; Wed, 30 Nov 2022 12:01:10 -0800 (PST) X-Google-Smtp-Source: AA0mqf557oP2X6NQe964DPY8AJFsBZEJjvQXrOdAPzYFvoZncbfWF9rPs5qMBJxt8IqwlzFovTq9HQI0TLVE2kpLIpw= X-Received: by 2002:a05:651c:239e:b0:279:c7b9:c365 with SMTP id bk30-20020a05651c239e00b00279c7b9c365mr1262128ljb.134.1669838470676; Wed, 30 Nov 2022 12:01:10 -0800 (PST) Received: from 567203818698 named unknown by gmailapi.google.com with HTTPREST; Wed, 30 Nov 2022 12:01:10 -0800 From: "Oliver Steffen" X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221130200037.1098765-1-osteffen@redhat.com> References: <20221130200037.1098765-1-osteffen@redhat.com> MIME-Version: 1.0 Date: Wed, 30 Nov 2022 12:01:10 -0800 Message-ID: Subject: [PATCH v8 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