summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKamil Trzciński <ayufan@ayufan.eu>2017-12-16 23:17:42 +0000
committerKamil Trzciński <ayufan@ayufan.eu>2017-12-16 23:17:42 +0000
commit169a8c35847a925597ed1abb9225c722fc9ed8ee (patch)
treec731e0a6f923170db6246879e57f8f32ac9a6e0b
parent306967478734418ec0fc5f011204464b961cc409 (diff)
parent8153f734325901f3f45e8b3e637a78ffc3f07a08 (diff)
downloadgitlab-ce-169a8c35847a925597ed1abb9225c722fc9ed8ee.tar.gz
Merge branch 'skip-sast-on-ce' into 'master'
Avoid running autodevops sast job on GitLab CE Closes gl-sast#3 See merge request gitlab-org/gitlab-ce!15962
-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"