aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Krempa <pkrempa@redhat.com>2023-02-27 09:49:27 +0100
committerPeter Krempa <pkrempa@redhat.com>2023-02-27 10:34:49 +0100
commit7556f9d810812b0efc12c67e119260e886c40bd1 (patch)
tree65aff7b167533f00f9058d8d7d9af502ee28e646
parent64f11afd8bc805c1dfae35bf265a24f9cd28141c (diff)
downloadlibvirt-ci-7556f9d810812b0efc12c67e119260e886c40bd1.zip
libvirt-ci-7556f9d810812b0efc12c67e119260e886c40bd1.tar.gz
libvirt-ci-7556f9d810812b0efc12c67e119260e886c40bd1.tar.bz2
gitlab: _build_template: Add missing comment describing rule
Copy over the comment about rule for explicitly requested pipeline for a push to a branch in a fork. Signed-off-by: Peter Krempa <pkrempa@redhat.com>
-rw-r--r--lcitool/gitlab.py1
-rw-r--r--tests/data/manifest/out/ci/gitlab/build-templates.yml2
2 files changed, 3 insertions, 0 deletions
diff --git a/lcitool/gitlab.py b/lcitool/gitlab.py
index 1b34572..3ea820e 100644
--- a/lcitool/gitlab.py
+++ b/lcitool/gitlab.py
@@ -242,6 +242,7 @@ def _build_template(template, image, project, cidir):
- if: '$CI_PROJECT_NAMESPACE == $RUN_UPSTREAM_NAMESPACE && $CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH'
when: on_success
+ # forks: pushes to branches with pipeline requested
- if: '$CI_PROJECT_NAMESPACE != $RUN_UPSTREAM_NAMESPACE && $CI_PIPELINE_SOURCE == "push" && $RUN_PIPELINE && $JOB_OPTIONAL'
when: manual
allow_failure: true
diff --git a/tests/data/manifest/out/ci/gitlab/build-templates.yml b/tests/data/manifest/out/ci/gitlab/build-templates.yml
index 377c055..a843c9e 100644
--- a/tests/data/manifest/out/ci/gitlab/build-templates.yml
+++ b/tests/data/manifest/out/ci/gitlab/build-templates.yml
@@ -68,6 +68,7 @@
- if: '$CI_PROJECT_NAMESPACE == $RUN_UPSTREAM_NAMESPACE && $CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH'
when: on_success
+ # forks: pushes to branches with pipeline requested
- if: '$CI_PROJECT_NAMESPACE != $RUN_UPSTREAM_NAMESPACE && $CI_PIPELINE_SOURCE == "push" && $RUN_PIPELINE && $JOB_OPTIONAL'
when: manual
allow_failure: true
@@ -182,6 +183,7 @@
- if: '$CI_PROJECT_NAMESPACE == $RUN_UPSTREAM_NAMESPACE && $CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH'
when: on_success
+ # forks: pushes to branches with pipeline requested
- if: '$CI_PROJECT_NAMESPACE != $RUN_UPSTREAM_NAMESPACE && $CI_PIPELINE_SOURCE == "push" && $RUN_PIPELINE && $JOB_OPTIONAL'
when: manual
allow_failure: true