diff options
author | feistel <6742251-feistel@users.noreply.gitlab.com> | 2021-11-03 03:06:29 +0300 |
---|---|---|
committer | feistel <6742251-feistel@users.noreply.gitlab.com> | 2021-11-03 03:08:17 +0300 |
commit | e6ac125ff0c7d7932626fb09336b8806e7b23c88 (patch) | |
tree | b250baafa6882e08fbb838624e051aaed7911e4c /.gitlab | |
parent | e2b717ce837a0cbc271ea613cf07e19e0eb5cccc (diff) |
ci: readd stages and use empty 'needs'
Diffstat (limited to '.gitlab')
-rw-r--r-- | .gitlab/ci/prepare.yml | 5 | ||||
-rw-r--r-- | .gitlab/ci/test.yml | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/.gitlab/ci/prepare.yml b/.gitlab/ci/prepare.yml index 8313295d..66d23adf 100644 --- a/.gitlab/ci/prepare.yml +++ b/.gitlab/ci/prepare.yml @@ -11,6 +11,8 @@ variables: # TODO: remove when https://gitlab.com/gitlab-org/gitlab/-/issues/218444 is done .rules-for-scanners: &rules-for-scanners + stage: prepare + needs: [] rules: # For merge requests, create a pipeline. - if: '$CI_MERGE_REQUEST_IID' @@ -32,12 +34,14 @@ gosec-sast: <<: *rules-for-scanners gemnasium-tools-dependency_scanning: + stage: prepare image: name: "$SECURE_ANALYZERS_PREFIX/gemnasium:$DS_MAJOR_VERSION" script: - /analyzer run --target-dir ./tools gemnasium-tools-license_scanning: + stage: prepare image: name: "$SECURE_ANALYZERS_PREFIX/license-finder:$LICENSE_MANAGEMENT_VERSION" entrypoint: [""] @@ -45,6 +49,7 @@ gemnasium-tools-license_scanning: - CI_PROJECT_DIR=$(pwd)/tools /run.sh analyze . secret_detection: + stage: prepare rules: # For merge requests, create a pipeline. - if: '$CI_MERGE_REQUEST_IID' diff --git a/.gitlab/ci/test.yml b/.gitlab/ci/test.yml index 603b4a02..801c1ca8 100644 --- a/.gitlab/ci/test.yml +++ b/.gitlab/ci/test.yml @@ -1,5 +1,6 @@ .tests-common: extends: .common + stage: test needs: ['download deps'] artifacts: reports: |