Fixing registry for image under test
Change-Id: I67ab233d0bd2bcc3487b55043f69c06c2f1e625a
diff --git a/jjb/pipeline/voltha/voltha-2.7/bbsim-tests.groovy b/jjb/pipeline/voltha/voltha-2.7/bbsim-tests.groovy
index da6e82f..4cf748a 100644
--- a/jjb/pipeline/voltha/voltha-2.7/bbsim-tests.groovy
+++ b/jjb/pipeline/voltha/voltha-2.7/bbsim-tests.groovy
@@ -23,50 +23,13 @@
remote: 'https://gerrit.opencord.org/ci-management.git'
])
-// TODO move this in a keyword so it can be shared across pipelines
-def customImageFlags(project) {
- def chart = "unknown"
- def image = "unknown"
- switch(project) {
- case "ofagent-go":
- chart = "voltha"
- image = "ofagent"
- break
- case "voltha-go":
- chart = "voltha"
- image = "rw_core"
- break
- case "voltha-openonu-adapter-go":
- chart = "voltha-adapter-openonu"
- image = "adapter_open_onu_go"
- break
- // TODO remove after 2.7
- case "voltha-openonu-adapter":
- chart = "voltha-adapter-openonu"
- image = "adapter_open_onu"
- break
- // TODO end
- case "voltha-openolt-adapter":
- chart = "voltha-adapter-openolt"
- image = "adapter_open_olt"
- break
- case "bbsim":
- // BBSIM has a different format that voltha, return directly
- return "--set images.bbsim.tag=citest,images.bbsim.pullPolicy=Never"
- break
- default:
- break
- }
-
- return "--set ${chart}.images.${image}.tag=citest,${chart}.images.${image}.pullPolicy=Never "
-}
-
def test_workflow(name) {
+ timeout(time: 10, unit: 'MINUTES') {
stage('Deploy - '+ name + ' workflow') {
def extraHelmFlags = "${extraHelmFlags} --set global.log_level=DEBUG,onu=1,pon=1 "
if (gerritProject != "") {
- extraHelmFlags = extraHelmFlags + customImageFlags("${gerritProject}")
+ extraHelmFlags = extraHelmFlags + getVolthaImageFlags("${gerritProject}")
}
def localCharts = false
@@ -91,6 +54,7 @@
_TAG=onos-port-forward kubectl port-forward --address 0.0.0.0 -n infra svc/voltha-infra-onos-classic-hs 8181:8181&
_TAG=voltha-port-forward kubectl port-forward --address 0.0.0.0 -n voltha svc/voltha-voltha-api 55555:55555&
"""
+ }
}
stage('Test VOLTHA - '+ name + ' workflow') {
sh """