diff options
author | Jakub Jelen <jjelen@redhat.com> | 2020-04-15 20:02:11 +0200 |
---|---|---|
committer | Jakub Jelen <jjelen@redhat.com> | 2020-04-20 14:14:33 +0200 |
commit | 59ac79c4dcdf0ed191247b4627b4c69fbea0fad6 (patch) | |
tree | 833e13f23ad647d7f063ef0d25eb948b78a876a9 | |
parent | 7f57717f84f08ad0bc77d9f08d72009b3001b597 (diff) | |
download | libssh-59ac79c4dcdf0ed191247b4627b4c69fbea0fad6.tar.gz libssh-59ac79c4dcdf0ed191247b4627b4c69fbea0fad6.tar.xz libssh-59ac79c4dcdf0ed191247b4627b4c69fbea0fad6.zip |
gitlab-ci: Avoid passing artifacts between completely unrelated stages
The introduction of stages in gitlab-ci had quite a unfortune side
effect that is described in the documentation [1]. The whole artifacts
path (in our case obj/) is passed from one stage to another by default,
which is causing very odd behavior as the previous results are only
partially overwritten by the new cmake command and can even lead to
execution of tests that are not supposed to run in particular job.
[1] https://docs.gitlab.com/ee/ci/yaml/#dependencies
Signed-off-by: Jakub Jelen <jjelen@redhat.com>
Reviewed-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
-rw-r--r-- | .gitlab-ci.yml | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 32e36ab5..d72a67f2 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -44,6 +44,8 @@ stages: .tests: extends: .build stage: test + # This is needed to prevent passing artifacts from previous stages + dependencies: [] script: - cmake $CMAKE_OPTIONS $CMAKE_ADDTIONAL_OPTIONS .. && make -j$(nproc) && |