Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] support/misc/gitlab-ci.yml.in: include Branches workflow
@ 2020-08-30 15:59 Arnout Vandecappelle
  2020-08-31 12:43 ` Yann E. MORIN
  2020-10-06 20:42 ` Yann E. MORIN
  0 siblings, 2 replies; 7+ messages in thread
From: Arnout Vandecappelle @ 2020-08-30 15:59 UTC (permalink / raw)
  To: buildroot

Recently, gitlab-ci has gained a lot more flexibility in when pipelines
are created. As a side-effect of this, double pipelines may be created
when a `when` clause is used in some job. Avoid this by adding a
workflow that launches it only on branches. See [1] and [2].

Note that in reality, the duplicate pipelines only occur for merge
requests. Since we don't have merge requests, we don't have this
problem. Howver, gitlab also displays an annoying error message on the
pipeline page [3], and it sends an error mail to the triggerer (i.e.,
Arnout), so it's still useful to do this.

[1] https://docs.gitlab.com/ee/ci/yaml/README.html#prevent-duplicate-pipelines
[2] https://docs.gitlab.com/ee/ci/yaml/README.html#workflowrules-templates
[3] https://gitlab.com/buildroot.org/buildroot/-/pipelines/183589361/builds

Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
---
I'd like to get this one in master, because the e-mails are annoying me
:-)
---
 support/misc/gitlab-ci.yml.in | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/support/misc/gitlab-ci.yml.in b/support/misc/gitlab-ci.yml.in
index dddebf09e9..8a031898ef 100644
--- a/support/misc/gitlab-ci.yml.in
+++ b/support/misc/gitlab-ci.yml.in
@@ -1,6 +1,9 @@
 # Configuration for Gitlab-CI.
 # Builds appear on https://gitlab.com/buildroot.org/buildroot/pipelines
 
+include:
+  - template: 'Workflows/Branch-Pipelines.gitlab-ci.yml'
+
 image: buildroot/base:20200814.2228
 
 .check_base:
-- 
2.26.2

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-10-06 20:42 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-08-30 15:59 [Buildroot] [PATCH] support/misc/gitlab-ci.yml.in: include Branches workflow Arnout Vandecappelle
2020-08-31 12:43 ` Yann E. MORIN
2020-08-31 12:58   ` Arnout Vandecappelle
2020-08-31 19:52     ` Yann E. MORIN
2020-09-01  6:52       ` Arnout Vandecappelle
2020-08-31 21:49     ` Yann E. MORIN
2020-10-06 20:42 ` Yann E. MORIN

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox