summaryrefslogtreecommitdiff
path: root/vendor
diff options
context:
space:
mode:
authorAlessio Caiazza <acaiazza@gitlab.com>2017-12-15 15:20:18 +0100
committerAlessio Caiazza <acaiazza@gitlab.com>2017-12-15 19:23:04 +0100
commit8153f734325901f3f45e8b3e637a78ffc3f07a08 (patch)
tree28d207a88dd8dee0b6a2c9d380cd22fcc6ed49ec /vendor
parent627a96875ee68e37b45192af3121f09032ea4bbf (diff)
downloadgitlab-ce-8153f734325901f3f45e8b3e637a78ffc3f07a08.tar.gz
Avoid running autodevops sast job on GitLab CEskip-sast-on-ce
Diffstat (limited to 'vendor')
-rw-r--r--vendor/gitlab-ci-yml/Auto-DevOps.gitlab-ci.yml13
1 files changed, 12 insertions, 1 deletions
diff --git a/vendor/gitlab-ci-yml/Auto-DevOps.gitlab-ci.yml b/vendor/gitlab-ci-yml/Auto-DevOps.gitlab-ci.yml
index da4d86b9a04..275487071f3 100644
--- a/vendor/gitlab-ci-yml/Auto-DevOps.gitlab-ci.yml
+++ b/vendor/gitlab-ci-yml/Auto-DevOps.gitlab-ci.yml
@@ -89,7 +89,7 @@ sast:
POSTGRES_DB: "false"
allow_failure: true
script:
- - /app/bin/run .
+ - sast .
artifacts:
paths: [gl-sast-report.json]
@@ -232,6 +232,17 @@ production:
docker run ${cc_opts} codeclimate/codeclimate:0.69.0 analyze -f json > codeclimate.json
}
+ function sast() {
+ case "$CI_SERVER_VERSION" in
+ *-ee)
+ /app/bin/run "$@"
+ ;;
+ *)
+ echo "GitLab EE is required"
+ ;;
+ esac
+ }
+
function deploy() {
track="${1-stable}"
name="$CI_ENVIRONMENT_SLUG"