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.160613.1669750005784895453 for ; Tue, 29 Nov 2022 11:26:45 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=NNZ2RKZs; 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=1669750005; 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=Hu8LjU36gq9HUKPK1EmG00l7SHirB1pyrM1MfsCnzXw=; b=NNZ2RKZsa0/j4yiFVDEt6uYIcqywI4lYJ+T40qqH2nUNceDYxQyGLNxW3gNtDN9p+vx0mt sIEz8cAWNxc3kvBbMcb3TJLX+rovzIj7XQWlRe0A+er1QFrejjf5UokUdS4kfcCedG1QcM gAGo6Ug83uIgSqJm8hlUwIIoCgrQYMI= Received: from mail-lf1-f70.google.com (mail-lf1-f70.google.com [209.85.167.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-49-lkNikVH3OhqcaJQegkJNnA-1; Tue, 29 Nov 2022 14:26:43 -0500 X-MC-Unique: lkNikVH3OhqcaJQegkJNnA-1 Received: by mail-lf1-f70.google.com with SMTP id t14-20020a056512068e00b004b4f4d584c0so5637998lfe.23 for ; Tue, 29 Nov 2022 11:26:43 -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=Hu8LjU36gq9HUKPK1EmG00l7SHirB1pyrM1MfsCnzXw=; b=53S3sfOwAPEHmMvLIPKnQ2uSd3kkDn/LTmf1sWh8ARYD0MHcNIFjKMxJVm7s5muxu0 TNnqazhl55BZhJvvR7GxNBnipYEpBMq/tIhql/gBuo/Z5oAFeORjBhifmkcjfnVkY2Jb FMUdwG//hLOMIXdj/LhMR3t1BniNIiqeqXJRbECaMbQK3EeCA06nwuTCSea3F/mc6rj+ 5zvCOVHPKx8QOY1QioJOPqujk19hMo0YmnQnm9ETZqJd51OJk70rPN2xi18RIGkt1gXw AvjiL8SkC9pyfsVXxvlSwWsqeZYinZSW/kl5dDoOsPa5NO2oviEyetDaWNZ2yt1RdJB+ ACWA== X-Gm-Message-State: ANoB5pla42+u3XFUV3bu3oSL0Yjiy1mZkNWo5Gkmw3PJU/u+V26CdtjZ 527SYxvGMLVaad/DJQ/OHJXQPdqmHvMjwMRP16i4ewygBxtmmVdug4iuzqcrZhk5/Gmr35Jnu2G c+tk67Upj5+RvsODGF+xpMcjDqVQxkA== X-Received: by 2002:a19:5e50:0:b0:4b4:f19b:c155 with SMTP id z16-20020a195e50000000b004b4f19bc155mr10171735lfi.438.1669750001862; Tue, 29 Nov 2022 11:26:41 -0800 (PST) X-Google-Smtp-Source: AA0mqf4Y6FgzvMpLHM1pZ+yZf8diY96VZhYIVJLQfx96O6ii0HsPHvT5uAnB4GblOylyF90yYooE/8r/5ktf3Q4Uvo4= X-Received: by 2002:a19:5e50:0:b0:4b4:f19b:c155 with SMTP id z16-20020a195e50000000b004b4f19bc155mr10171726lfi.438.1669750001670; Tue, 29 Nov 2022 11:26:41 -0800 (PST) Received: from 567203818698 named unknown by gmailapi.google.com with HTTPREST; Tue, 29 Nov 2022 14:26:41 -0500 From: "Oliver Steffen" X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221129192625.643896-1-osteffen@redhat.com> References: <20221129192625.643896-1-osteffen@redhat.com> MIME-Version: 1.0 Date: Tue, 29 Nov 2022 14:26:41 -0500 Message-ID: Subject: [PATCH v7 3/6] CI: Allow running in a container. To: devel@edk2.groups.io Cc: Abner Chang , Alexei Fedorov , Andrew Fish , Anthony Perard , Ard Biesheuvel , Bob Feng , Brijesh Singh , Chasel Chiu , Daniel Schaefer , Erdem Aktas , Eric Dong , Gerd Hoffmann , Gua Guo , Guo Dong , Guomin Jiang , Hao A Wu , Igor Kulchytskyy , James Bottomley , James Lu , Jian J Wang , Jiaxin Wu , Jiewen Yao , Jordan Justen , Julien Grall , Leif Lindholm , Liming Gao , Maciej Rabeda , Michael D Kinney , Michael Kubacki , Min Xu , Nate DeSimone , Nickle Wang , Peter Grehan , Pierre Gondois , Rahul Kumar , Ray Ni , Rebecca Cran , Sami Mujawar , Sean Brogan , Sean Rhodes , Sebastien Boeuf , Siyuan Fu , Star Zeng , Sunil V L , Supreeth Venkatesh , Tom Lendacky , Wei6 Xu , Xiaoyu Lu , Yuwei Chen , Zhichao Gao , 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 d0a6ccd10700..52e6260b1c77 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: '>=3.10.6' # 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