diff options
author | Victor Zagorodny <vzagorodny@gitlab.com> | 2019-03-01 20:52:55 +0200 |
---|---|---|
committer | Victor Zagorodny <vzagorodny@gitlab.com> | 2019-03-07 18:48:14 +0200 |
commit | 721f3895d47107f299e0763fe8a3324a9b8e8a8d (patch) | |
tree | dd49055fb1b83759cdf1c0f0a00b86c6a7205f13 | |
parent | 7aa3c9b30fc82e91a6b0f72b52343cd935740ee3 (diff) | |
download | gitlab-ce-8664-add-ci-template-for-license-management-ce.tar.gz |
Add vendored template for License Management job8664-add-ci-template-for-license-management-ce
-rw-r--r-- | lib/gitlab/ci/templates/Security/License-Management.gitlab-ci.yml | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/lib/gitlab/ci/templates/Security/License-Management.gitlab-ci.yml b/lib/gitlab/ci/templates/Security/License-Management.gitlab-ci.yml new file mode 100644 index 00000000000..ac5dcdbfa75 --- /dev/null +++ b/lib/gitlab/ci/templates/Security/License-Management.gitlab-ci.yml @@ -0,0 +1,30 @@ +# Read more about this feature here: https://docs.gitlab.com/ee/user/project/merge_requests/license_management.html + +variables: + LICENSE_MANAGEMENT_SETUP_CMD: '' # If needed, specify a command to setup your environment with a custom package manager. + +stages: + - test + +license_management: + stage: test + image: + name: "registry.gitlab.com/gitlab-org/security-products/license-management:$CI_SERVER_VERSION_MAJOR-$CI_SERVER_VERSION_MINOR-stable" + entrypoint: [""] + variables: + SETUP_CMD: $LICENSE_MANAGEMENT_SETUP_CMD + allow_failure: true + script: + - /run.sh analyze . + artifacts: + reports: + license_management: gl-license-management-report.json + dependencies: [] + only: + refs: + - branches + variables: + - $GITLAB_FEATURES =~ /\blicense_management\b/ + except: + variables: + - $LICENSE_MANAGEMENT_DISABLED |