From f590e92fd0fd78228aba49528933fe74b8df98db Mon Sep 17 00:00:00 2001 From: Madawa Soysa Date: Thu, 5 Sep 2019 06:38:32 +0000 Subject: [PATCH] Revert "Remove only from scans" This reverts commit f99f5c8552638c1b75653a273c65f116ce332868 --- .gitlab-ci.yml | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c8dd5cb73d1..87228b4b696 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -27,6 +27,9 @@ dependency_scanning: DS_ANALYZER_IMAGES: "registry.gitlab.com/madawa/gemnasium-maven" DS_RUN_ANALYZER_TIMEOUT: 3h DS_DEFAULT_ANALYZERS: "" + only: + refs: + - security-scan # sast: # stage: test @@ -99,10 +102,13 @@ dependency_scanning: # paths: # - gl-sast-report.json # dependencies: [] - -# deploy: -# stage: deploy -# script: -# - mvn $MAVEN_CLI_OPTS deploy -Dmaven.test.skip=true # only: -# - master@entgra/carbon-device-mgt +# refs: +# - security-scan + +deploy: + stage: deploy + script: + - mvn $MAVEN_CLI_OPTS deploy -Dmaven.test.skip=true + only: + - master@entgra/carbon-device-mgt