From nobody Mon Feb 9 21:03:00 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) client-ip=63.128.21.124; envelope-from=philmd@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) smtp.mailfrom=philmd@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1604530007; cv=none; d=zohomail.com; s=zohoarc; b=e9XfBhKxnQb+XWjJJMCiEAlqoXbKCu6rG+Vx1rBDMarfsTvVNIp4XwAfXfhH0mC7FIkdCXKSJjYZU7xHgpsGw045PUV69th+wgykHCkghd/BwmjDFjMAbqf0UoEtgXOU2l+4ggIdWIAFXmPkb85XiTGi09Cdu5HBKXSoEUaUBOQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1604530007; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=MWl5vDwzLcy8Zov/XDOnc/IDx3/z+3tMGxYwpmBuCno=; b=OKfsdMBszv43+fsTj0XUohJNaDx78pjxb9gXrtNDrD2TBoOoh6aeZ/CUHH4RMpDW0QSoXBN0/uOWOo2iJRIGL2rw2qiAct8ivZeHKHDpe65h0l3TJeS+4c3Masp9UVCE750czz0+kjNbmLzUS4s/mmitumKLvGf/tYXoy4KevO4= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) smtp.mailfrom=philmd@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [63.128.21.124]) by mx.zohomail.com with SMTPS id 1604530007313448.04208398382093; Wed, 4 Nov 2020 14:46:47 -0800 (PST) Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-152-XYFAjX9zPoWKN0owcR6icQ-1; Wed, 04 Nov 2020 17:46:44 -0500 Received: by mail-wm1-f69.google.com with SMTP id c10so1808779wmh.6 for ; Wed, 04 Nov 2020 14:46:44 -0800 (PST) Return-Path: Return-Path: Received: from x1w.redhat.com (234.red-83-42-66.dynamicip.rima-tde.net. [83.42.66.234]) by smtp.gmail.com with ESMTPSA id e6sm4663274wrs.7.2020.11.04.14.46.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Nov 2020 14:46:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1604530006; 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=MWl5vDwzLcy8Zov/XDOnc/IDx3/z+3tMGxYwpmBuCno=; b=HW8N8XZZzc5xrad93sRIgnpHpPlbl/h67XsMjbNau0yugE56HTFwhEFr9JY37uLcRv+mcP tUfIGpBtPhueCPv4jFpN9DcijtUavD4/j1vK/ymMJKsS6wPyFPn9Bv0wAgjS95QXcsOuqx oS2jEF/SKyUXZfqM4LQ2xt99hHRqMRM= X-MC-Unique: XYFAjX9zPoWKN0owcR6icQ-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=MWl5vDwzLcy8Zov/XDOnc/IDx3/z+3tMGxYwpmBuCno=; b=aFn8Qehi9C4rXaYmc/m5GzesgZSoHcH2GC4dsSR/sqcVFcBHc8v4QPIFwRynv5J1qC pp6P0QmGQWc8nqhYv5O4huu5MbyLfN2WCWWmNrtElEa/o3+QSGpSe+L1n6frrJfJvT47 pTEII3jEuoRZ6TJiibvW9QVRmSy+HdtypFnlydAOfUvdIQoPSQJ0cPVzNzYuM25g0OJa EAHskzXKEJygQ8HImuldqUogKiTh0MO0AX5Qun3pJDWirj2hEmVLxqPhn8osVP4eU3W/ 9+N29esk0pFgozdMWwfrE8nu0Jw1DyXm89kaPJDPd/67DuyidoxpXNqpy04Q5DRQcLwo Yn0A== X-Gm-Message-State: AOAM531VGZbFFmrQdB1NytF2Qa44nDhyXgu3ePpV623b3I1EUIwbxnZH Lokz5vL/HUJnnogzvFc2n7NHrcb9M04s3o/O1YAQW9JVyab3Xmc3Sgs2+rq0CXz6O1iSTQJiP/a 39iZOgVMK2FwPvw== X-Received: by 2002:a1c:9a8d:: with SMTP id c135mr6725663wme.173.1604530003491; Wed, 04 Nov 2020 14:46:43 -0800 (PST) X-Google-Smtp-Source: ABdhPJwSOQxvQSTa+LBitUJ5i0cYXK8vrDRaB3lyc2khopQC1QgTTAL5JMfPmSD3NhpMZ0zKLDYMwg== X-Received: by 2002:a1c:9a8d:: with SMTP id c135mr6725648wme.173.1604530003334; Wed, 04 Nov 2020 14:46:43 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: "Daniel P . Berrange" , John Snow , Cornelia Huck , =?UTF-8?q?Alex=20Benn=C3=A9e?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Wainer dos Santos Moschetta , Thomas Huth , Peter Maydell Subject: [RFC PATCH 8/9] gitlab-ci: Add rules to skip building cross-jobs Date: Wed, 4 Nov 2020 23:45:57 +0100 Message-Id: <20201104224558.3384595-9-philmd@redhat.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20201104224558.3384595-1-philmd@redhat.com> References: <20201104224558.3384595-1-philmd@redhat.com> MIME-Version: 1.0 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=philmd@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Add rules to skip some crossbuild jobs. The following tags are available to skip CI jobs: - cross (skip all cross-jobs) - system (skip all cross-system jobs) - user (skip all cross-user jobs) Developers can combine tags in the SKIP_BUILD variable when pushing a branch (or tag) to repositories. Examples: $ git push -o ci.variable=3D"SKIP_BUILD=3Duser" myrepo mybranch $ git push -o ci.variable=3D"SKIP_BUILD=3Duser,system" myrepo mybranch References: - https://docs.gitlab.com/ee/ci/yaml/#rulesif - https://docs.gitlab.com/ee/user/project/push_options.html#push-options-fo= r-gitlab-cicd Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- .gitlab-ci.d/crossbuilds.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.gitlab-ci.d/crossbuilds.yml b/.gitlab-ci.d/crossbuilds.yml index 701550f028c..08f27649eb2 100644 --- a/.gitlab-ci.d/crossbuilds.yml +++ b/.gitlab-ci.d/crossbuilds.yml @@ -1,6 +1,16 @@ .cross_common_job: stage: build image: $CI_REGISTRY_IMAGE/qemu/$IMAGE:latest + rules: + # If the if statement is true, the job is excluded from a pipeline. + - if: $SKIP_BUILD =3D~ /cross/ + when: never + - if: $CI_JOB_NAME =3D~ /system/ && $SKIP_BUILD =3D~ /system/ + when: never + - if: $CI_JOB_NAME =3D~ /user/ && $SKIP_BUILD =3D~ /user/ + when: never + # In all other cases, the job is added to the pipeline. + - when: on_success =20 .cross_system_build_job: extends: .cross_common_job --=20 2.26.2