commit | da31d7bf416813ac80f386571b30d78348bbc5d0 | [log] [tgz] |
---|---|---|
author | Scott Baker <smbaker@gmail.com> | Wed Jan 08 16:35:52 2020 -0800 |
committer | Scott Baker <smbaker@gmail.com> | Thu Jan 09 12:00:07 2020 -0800 |
tree | 41c774bb9e303af3fc031f588946cb3ebd69b9a4 | |
parent | 70800a382100055df888edeb42f337e01a68d66e [diff] |
VOL-2435 Allow hardware tests to be configured with delay Change-Id: I52af59a158deeee81b585c9f6229e242f288b3f6
diff --git a/jjb/pipeline/voltha-physical-build-and-tests.groovy b/jjb/pipeline/voltha-physical-build-and-tests.groovy index 9689bd2..4a028ae 100644 --- a/jjb/pipeline/voltha-physical-build-and-tests.groovy +++ b/jjb/pipeline/voltha-physical-build-and-tests.groovy
@@ -292,6 +292,16 @@ """ } } + + stage('After-Test Delay') { + steps { + sh returnStdout: false, script: """ + # Note: Gerrit comment text will be prefixed by "Patch set n:" and a blank line + REGEX="hardware test with delay\$" + [[ "$GERRIT_EVENT_COMMENT_TEXT" =~ \$REGEX ]] && sleep 10m || true + """ + } + } } post {