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.173729.1673890893307433193 for ; Mon, 16 Jan 2023 09:41:33 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=heSFjH7y; 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=1673890892; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=24GObkht2U2Pn7NS6MtCsSNhRzKH/5dLb9aFc5frfMI=; b=heSFjH7yAJyQSSUFg/OV1CdiBs4kUCGLfBP50Lvmm27Vt5O1mTovt4UXLPT//qHSHEbSJR MlQqJ8WTqruqqnUClwQ7Lm+95DknUN8nBD35H9fs2zxVmz0xo2AK6V2o4c2cnBN/STnZhO APL19skqsC45zOmKYQZ/H7RRI+R4ydE= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-152-OTj0HUqlNkC66vnfWAKGnA-1; Mon, 16 Jan 2023 12:41:26 -0500 X-MC-Unique: OTj0HUqlNkC66vnfWAKGnA-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id AC1A188B77D; Mon, 16 Jan 2023 17:41:25 +0000 (UTC) Received: from osteffen-laptop.redhat.com (unknown [10.39.192.49]) by smtp.corp.redhat.com (Postfix) with ESMTP id 98582C15BA0; Mon, 16 Jan 2023 17:41:22 +0000 (UTC) From: "Oliver Steffen" To: devel@edk2.groups.io Cc: Andrew Fish , Ard Biesheuvel , Bob Feng , Dandan Bi , Gerd Hoffmann , Jian J Wang , Jiewen Yao , Jordan Justen , Leif Lindholm , Liming Gao , Michael D Kinney , Michael Kubacki , Ray Ni , Sami Mujawar , Sean Brogan , Yuwei Chen , Pawel Polawski , chris.fernald@outlook.com, Oliver Steffen , Michael Kubacki Subject: [PATCH v11 06/17] CI: Allow running in a container. Date: Mon, 16 Jan 2023 18:40:33 +0100 Message-Id: <20230116174044.3346383-7-osteffen@redhat.com> In-Reply-To: <20230116174044.3346383-1-osteffen@redhat.com> References: <20230116174044.3346383-1-osteffen@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.8 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII"; x-default=true 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 b8573b90da1c..3999bb166813 100644 --- a/.azurepipelines/templates/pr-gate-build-job.yml +++ b/.azurepipelines/templates/pr-gate-build-job.yml @@ -14,6 +14,7 @@ parameters: arch_list: '' extra_install_step: [] usePythonVersion: '' + container: '' # Build step jobs: @@ -72,6 +73,9 @@ jobs: pool: vmImage: ${{ parameters.vm_image }} + ${{ if not(eq(parameters.container, '')) }}: + container: ${{ parameters.container }} + steps: - template: pr-gate-steps.yml parameters: -- 2.39.0