Merge "VOL-2435 Allow hardware tests to be configured with delay"
diff --git a/jjb/pipeline/voltha-physical-build-and-tests.groovy b/jjb/pipeline/voltha-physical-build-and-tests.groovy
index 77a0e09..190cfc3 100644
--- a/jjb/pipeline/voltha-physical-build-and-tests.groovy
+++ b/jjb/pipeline/voltha-physical-build-and-tests.groovy
@@ -293,6 +293,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 {
diff --git a/jjb/voltha-e2e.yaml b/jjb/voltha-e2e.yaml
index 6699a6f..ef41768 100644
--- a/jjb/voltha-e2e.yaml
+++ b/jjb/voltha-e2e.yaml
@@ -498,6 +498,8 @@
trigger-on:
- comment-added-contains-event:
comment-contains-value: '^hardware test$'
+ - comment-added-contains-event:
+ comment-contains-value: '^hardware test with delay$'
projects:
- project-compare-type: REG_EXP
project-pattern: '^(voltha-go|voltha-openolt-adapter|voltha-openonu-adapter|voltha-api-server|voltha-system-tests|ofagent-py|voltha-onos)$'