diff options
author | Thomas Haller <thaller@redhat.com> | 2020-11-11 08:50:00 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2020-11-11 08:50:17 +0100 |
commit | 8df0dee3e8d8adadc10c915d5778ed815bcda119 (patch) | |
tree | 6cc67348a88a1b54ced39db09ce2716a3007cf56 /.gitlab-ci | |
parent | 767c83f4432249cfb06d9a35abddef2e5d64384f (diff) | |
download | NetworkManager-8df0dee3e8d8adadc10c915d5778ed815bcda119.tar.gz |
gitlab-ci: automatically run prep-container to fix hanging tests
The goal is to run most distros only manually. However, it would be nice
to avoid (manually) clicking twice to start the tests for one distro:
once for the container preparation, and once for the actual test.
Previously, the container prep part was set to manual and the actual
test automatic. It worked almost as desired, except that this leads
to the entire gitlab-ci pipeline be be in running state indefinitely.
To fix that, always run the container prep steps. If the container is
cached, this is supposed to be fast and cheap. Now only the actual tests
are marked as "manual".
Diffstat (limited to '.gitlab-ci')
-rw-r--r-- | .gitlab-ci/ci.template | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/.gitlab-ci/ci.template b/.gitlab-ci/ci.template index e616ef3672..7208aac299 100644 --- a/.gitlab-ci/ci.template +++ b/.gitlab-ci/ci.template @@ -77,9 +77,6 @@ variables: FDO_DISTRIBUTION_VERSION: '{{version}}' FDO_DISTRIBUTION_TAG: ${{distro.name.upper()}}_TAG FDO_DISTRIBUTION_EXEC: ${{distro.name.upper()}}_EXEC -{% if not version in distro.always %} - when: manual -{% endif %} {% endfor %} {% endfor %} @@ -171,6 +168,9 @@ t_{{distro.name}}:{{version}}: {% endif %} needs: - "{{distro.name}}:{{version}}@container-prep" +{% if not version in distro.always %} + when: manual +{% endif %} {% endfor %} {% endfor %} |