From nobody Sun Feb 8 14:12:25 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 216.205.24.74 as permitted sender) client-ip=216.205.24.74; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-74.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.74 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1585067130; cv=none; d=zohomail.com; s=zohoarc; b=bW4ektlaxc2BBy6Yt1noA6hLVkKtLM8MeJPKkQGoDC//fETps2OjhSGNzvxaWEI3v8yIcXyKSzs6BcBQ+Y72In8Imo06nEjw+cbhfeAAwav9JwqhhU0wnp+Gp92VVcCGVrfFcmU/LONU6ZuCX0pHCr/s7gqdLKWJmG/7AhwPp38= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1585067130; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=NXwGrrsL4jN6nDQ4/H9gsuxB1DtQOhY4NWFZKkCXC3s=; b=dQMUBju2+XtbTBaJ+0fyhE9ZM/JW0f/rnUlo4RdSPjuu7X/jHlHO7AYwZZTNkiBMUxJYedY02ZicJoq3GTj4p+VspyCVWdp4ueJKRItTox25y++NgTMoWt+9LFSfUUCHpnmTlXL+vSbbXfddeuAOxpFXjvy4DvRuWMQQdpbbG4g= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.74 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-delivery-74.mimecast.com (us-smtp-delivery-74.mimecast.com [216.205.24.74]) by mx.zohomail.com with SMTPS id 1585067130076374.4364571703745; Tue, 24 Mar 2020 09:25:30 -0700 (PDT) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-203-Srhu1Sp7OHudnoAHun3MpQ-1; Tue, 24 Mar 2020 12:25:26 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id AB61D13F8; Tue, 24 Mar 2020 16:25:19 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 780B64DA70; Tue, 24 Mar 2020 16:25:19 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 21B7386385; Tue, 24 Mar 2020 16:25:19 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 02OGOH8K030285 for ; Tue, 24 Mar 2020 12:24:17 -0400 Received: by smtp.corp.redhat.com (Postfix) id 4B5905DA7C; Tue, 24 Mar 2020 16:24:17 +0000 (UTC) Received: from localhost.localdomain.com (ovpn-112-208.ams2.redhat.com [10.36.112.208]) by smtp.corp.redhat.com (Postfix) with ESMTP id 47EAB5D9C5; Tue, 24 Mar 2020 16:24:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1585067128; h=from:from:sender:sender: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:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=NXwGrrsL4jN6nDQ4/H9gsuxB1DtQOhY4NWFZKkCXC3s=; b=fHRlh7tZDEqxyxVgwDV9rhNmOaYfYDdkyWvfHdZ8lGzDHwyRFhhlZTAum9o+zK9ocKaleV nUcTUTaRRpYgojAQ4uZgPsNwWkTAPsDjP0VB5HgkYQsvyW67EKwbfnUGFJ9oA5SgdqJrX1 ZGP3VWv/JvHC42DfrusebHEVHA70Nt8= X-MC-Unique: Srhu1Sp7OHudnoAHun3MpQ-1 From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= To: libvir-list@redhat.com Subject: [libvirt PATCH v2 3/9] gitlab: group jobs into stages Date: Tue, 24 Mar 2020 16:23:59 +0000 Message-Id: <20200324162405.3716297-4-berrange@redhat.com> In-Reply-To: <20200324162405.3716297-1-berrange@redhat.com> References: <20200324162405.3716297-1-berrange@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-loop: libvir-list@redhat.com Cc: Erik Skultety X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" Within a stage all jobs run in parallel. Stages are ordered so later stages are only executed if previous stages succeeded. By using separate stages for the cross builds, we can avoid wasting CI resources if the relatively simple website build fails. Later we can avoid running cross builds, if the native build fails too. Reviewed-by: Erik Skultety Signed-off-by: Daniel P. Berrang=C3=A9 Reviewed-by: Andrea Bolognani --- .gitlab-ci.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1249ec6df5..8d6b5a0787 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,4 +1,9 @@ -.job_template: &job_definition +stages: + - prebuild + - cross_build + +.cross_build_job_template: &cross_build_job_definition + stage: cross_build script: - mkdir build - cd build @@ -13,17 +18,18 @@ # between Debian 10 and sid to help detect problems on the horizon. =20 debian-10-cross-s390x: - <<: *job_definition + <<: *cross_build_job_definition image: quay.io/libvirt/buildenv-libvirt-debian-10-cross-s390x:latest =20 debian-sid-cross-armv7l: - <<: *job_definition + <<: *cross_build_job_definition image: quay.io/libvirt/buildenv-libvirt-debian-sid-cross-armv7l:latest =20 # This artifact published by this job is downloaded by libvirt.org to # be deployed to the web root: # https://gitlab.com/libvirt/libvirt/-/jobs/artifacts/master/download?j= ob=3Dwebsite website: + stage: prebuild script: - mkdir build - cd build --=20 2.24.1