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.38.1664210882101859038 for ; Mon, 26 Sep 2022 09:48:02 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ATvujXOV; 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=1664210881; 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=f5MX+bQJEaVLl5Ezr3KFaf1Q4bCpOAdUii9pscp4y9A=; b=ATvujXOVI4KPG26/oYcuy7p8FFoSKy8fZAD1t4jnk5lgXjFAKSZghmZ44aR5kdId8J3JNB 9sQII0fRqb8r2K73/Y+oUfO60sqzXNjgai9sJLRkzsCVM2jhdwRLHxyLIksaQjrE01S0LH Bc26G6ZPVpFodAwyV5kqlpmJuk5evzk= 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-639-UY03JcRGNQadQ8Nhh4sZyQ-1; Mon, 26 Sep 2022 12:31:38 -0400 X-MC-Unique: UY03JcRGNQadQ8Nhh4sZyQ-1 Received: by mail-lf1-f72.google.com with SMTP id g21-20020ac25395000000b004988628ac86so2624372lfh.21 for ; Mon, 26 Sep 2022 09:31:38 -0700 (PDT) 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; bh=f5MX+bQJEaVLl5Ezr3KFaf1Q4bCpOAdUii9pscp4y9A=; b=gFsx4XZ4EYYBx6itmZU/XaRMW4WRkf9Ktm/V0mxH+/gFTex3uBCzi2w9bg34t+PCbb 88tF82WcNZhrmBNlzZ8Zdw3E5MTfv5RityEA9wIW2ENlo869VoTGsC87EBEaek7zkPGh eMsTWFy0I1q1jfixtm3UscBMx+2B5NVkaSHkHFCpQ0vE711xVYDnngQ7938wi6KNGCDY 95KRNpc1CBNvLjR78PbQDcj7wiJzHNi7rHRt+p0F/M4a/1ZMC9FEdT9fXlGh7hFCbESh AwdWtRE30NQQzgc9O9ePNr0KexfZQiD7B+6283Xio5CuLYPtbhRQ3kDJUKlW+xZYqKQp MH/w== X-Gm-Message-State: ACrzQf1QPdNL9Hm5UQzuHdb1wNNdHG2zYatpBC5GAnJVmmr/kaatpoIY VsCY8zgiwD1nzWZfvlkcXzNAXGrE6ZhcOxenPC6D0WaXcRPtdNlGn920jpil4d1k1w9fYHydqNr LFL4ifkG2fUQvfYAjxj3CAj29sMjTMw== X-Received: by 2002:a05:6512:3da8:b0:499:b714:5cde with SMTP id k40-20020a0565123da800b00499b7145cdemr8759892lfv.656.1664209896136; Mon, 26 Sep 2022 09:31:36 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7TrcZlXE6HSwtY/akNYSfNgdZHm8jYUb6OO9WFkZg+e7icmkfrEZSBEVhHrQbrE24GDejnsQXIENLrVKxLizM= X-Received: by 2002:a05:6512:3da8:b0:499:b714:5cde with SMTP id k40-20020a0565123da800b00499b7145cdemr8759874lfv.656.1664209895953; Mon, 26 Sep 2022 09:31:35 -0700 (PDT) Received: from 567203818698 named unknown by gmailapi.google.com with HTTPREST; Mon, 26 Sep 2022 09:31:34 -0700 From: "Oliver Steffen" X-Mailer: git-send-email 2.37.3 In-Reply-To: <20220926163129.85032-1-osteffen@redhat.com> References: <20220926163129.85032-1-osteffen@redhat.com> MIME-Version: 1.0 Date: Mon, 26 Sep 2022 09:31:34 -0700 Message-ID: Subject: [PATCH v6 3/5] CI: Allow running in a container. To: devel@edk2.groups.io Cc: Oliver Steffen , Andrew Fish , Ard Biesheuvel , Bob Feng , Gerd Hoffmann , Jiewen Yao , Jordan Justen , Leif Lindholm , Liming Gao , Michael D Kinney , Michael Kubacki , Ray Ni , Sami Mujawar , Sean Brogan , Yuwei Chen , Pawel Polawski 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 24926ed64984..f42731a762cb 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 @@ -64,6 +65,9 @@ jobs: pool: vmImage: ${{ parameters.vm_image }} + ${{ if not(eq(parameters.container, '')) }}: + container: ${{ parameters.container }} + steps: - template: pr-gate-steps.yml parameters: -- 2.37.3