SEBA-977 invoke redfish importer physical tests nightly
Change-Id: If200df37838fa49bbd60bc1f25e7df650fd4c93a
diff --git a/jjb/device-management.yaml b/jjb/device-management.yaml
index cd8b9f6..ea1b9fc 100644
--- a/jjb/device-management.yaml
+++ b/jjb/device-management.yaml
@@ -15,7 +15,7 @@
branch: 'master'
oltDebVersion: 'openolt_asfvolt16-2.3.0-bc6e0853e0e8bf6bd7e4223d4a7ee0dd35ce634d.deb'
profile: 'Default'
- withPatchset: true
+ time-trigger: "@daily"
- job-template:
id: 'device-management-patch-test'
@@ -144,18 +144,18 @@
- string:
name: gerritProject
- default: '$GERRIT_PROJECT'
+ default: 'device-management'
description: 'Name of the Gerrit project'
- string:
- name: gerritChangeNumber
- default: '$GERRIT_CHANGE_NUMBER'
- description: 'Changeset number in Gerrit'
+ name: gerritRefSpec
+ default: '$GERRIT_REFSPEC'
+ description: 'Refspec for the Gerrit patchset'
- string:
- name: gerritPatchsetNumber
- default: '$GERRIT_PATCHSET_NUMBER'
- description: 'PatchSet number in Gerrit'
+ name: gerritEventCommentText
+ default: '$GERRIT_EVENT_COMMENT_TEXT'
+ description: 'Comment text from gerrit commit'
- string:
name: cordRepoUrl
@@ -215,11 +215,6 @@
default: true
description: "Re-install OLT software"
- - bool:
- name: withPatchset
- default: true
- description: "Build with Gerrit patchset"
-
- string:
name: extraRobotArgs
default: '-i sanity'
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
"""
}
}