From 7604033d3a00ba2edaead6bca53448df575331a1 Mon Sep 17 00:00:00 2001 From: Jon Mayo Date: Tue, 17 Nov 2020 16:46:56 -0800 Subject: [PATCH] add [skip tests] and [skip scan] to skip CI stages also lets you define SKIP_TESTS and/or SKIP_SCAN in pipeline variables to skip testing or scanning --- .nvidia-ci.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.nvidia-ci.yml b/.nvidia-ci.yml index 3da6eebc8..067e6255e 100644 --- a/.nvidia-ci.yml +++ b/.nvidia-ci.yml @@ -109,12 +109,20 @@ build: test: stage: test + except: + variables: + - $CI_COMMIT_MESSAGE =~ /\[skip[ _-]tests?\]/i + - $SKIP_TESTS script: - *testdep_setup - *test_action scan: stage: scan + except: + variables: + - $CI_COMMIT_MESSAGE =~ /\[skip[ _-]scan?\]/i + - $SKIP_SCAN script: - *builddep_setup - *python_setup