Skip creating auto devops jobs for sast, container_scanning, dast, dependency_scanning when not licensed

This commit is contained in:
Dylan Griffith 2018-09-27 15:41:33 +03:00
parent 7c1cfd0bf5
commit 2c2556f9d9
2 changed files with 20 additions and 3 deletions

View File

@ -0,0 +1,6 @@
---
title: Skip creating auto devops jobs for sast, container_scanning, dast, dependency_scanning
when not licensed
merge_request: 21959
author:
type: performance

View File

@ -159,7 +159,10 @@ sast:
artifacts:
paths: [gl-sast-report.json]
only:
- branches
refs:
- branches
variables:
- $GITLAB_FEATURES =~ /\bsast\b/
except:
variables:
- $SAST_DISABLED
@ -176,7 +179,10 @@ dependency_scanning:
artifacts:
paths: [gl-dependency-scanning-report.json]
only:
- branches
refs:
- branches
variables:
- $GITLAB_FEATURES =~ /\bdependency_scanning\b/
except:
variables:
- $DEPENDENCY_SCANNING_DISABLED
@ -193,7 +199,10 @@ container_scanning:
artifacts:
paths: [gl-container-scanning-report.json]
only:
- branches
refs:
- branches
variables:
- $GITLAB_FEATURES =~ /\bsast_container\b/
except:
variables:
- $CONTAINER_SCANNING_DISABLED
@ -212,6 +221,8 @@ dast:
refs:
- branches
kubernetes: active
variables:
- $GITLAB_FEATURES =~ /\bdast\b/
except:
refs:
- master