SEBA-977 invoke redfish importer physical tests nightly
Change-Id: If200df37838fa49bbd60bc1f25e7df650fd4c93a
diff --git a/jjb/pipeline/device-management-physical-build-and-tests.groovy b/jjb/pipeline/device-management-physical-build-and-tests.groovy
index ee16151..6c183ff 100644
--- a/jjb/pipeline/device-management-physical-build-and-tests.groovy
+++ b/jjb/pipeline/device-management-physical-build-and-tests.groovy
@@ -21,14 +21,6 @@
localKindVolthaValuesFile = null
localSadisConfigFile = null
-// The pipeline assumes these variables are always defined
-if ( ! params.withPatchset ) {
- GERRIT_EVENT_COMMENT_TEXT = ""
- GERRIT_PROJECT = ""
- GERRIT_CHANGE_NUMBER = ""
- GERRIT_PATCHSET_NUMBER = ""
-}
-
pipeline {
/* no label, executor is determined by JJB */
@@ -92,11 +84,11 @@
steps {
sh """
pushd $WORKSPACE/
- echo "${gerritProject}" "${gerritChangeNumber}" "${gerritPatchsetNumber}"
- echo "${GERRIT_REFSPEC}"
git clone https://gerrit.opencord.org/${gerritProject}
cd "${gerritProject}"
- git fetch https://gerrit.opencord.org/${gerritProject} "${GERRIT_REFSPEC}" && git checkout FETCH_HEAD
+ if [[ ! -z "${gerritRefSpec}" ]]; then
+ git fetch https://gerrit.opencord.org/${gerritProject} "${gerritRefSpec}" && git checkout FETCH_HEAD
+ fi
popd
"""
}
@@ -206,6 +198,7 @@
sh returnStdout: false, script: """
helm repo add cord https://charts.opencord.org
helm repo update
+ helm del --purge voltha-kafka-dump || true
helm install -n voltha-kafka-dump cord/voltha-kafka-dump
"""
}
@@ -308,7 +301,7 @@
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
+ [[ "${gerritEventCommentText}" =~ \$REGEX ]] && sleep 10m || true
"""
}
}