String osmHostname,
String prometheusHostname,
Integer prometheusPort=null,
+ String ociRegistryUrl,
String envfile=null,
String portmappingfile=null,
String kubeconfig=null,
}
try {
- sh("""docker run --env OSM_HOSTNAME=${osmHostname} --env PROMETHEUS_HOSTNAME=${prometheusHostname} \
- ${PROMETHEUS_PORT_VAR} ${JUJU_PASSWORD_VAR} --env-file ${environmentFile} \
- -v ${clouds}:/etc/openstack/clouds.yaml \
- -v ${osmRSAfile}:/root/osm_id_rsa -v ${kubeconfig}:/root/.kube/config -v ${tempdir}:/robot-systest/reports \
- -v ${portmappingfile}:/root/port-mapping.yaml ${hostfilemount} opensourcemano/tests:${tagName} \
- -c -t ${testName}""")
+ withCredentials([usernamePassword(credentialsId: 'gitlab-oci-test',
+ passwordVariable: 'OCI_REGISTRY_PSW', usernameVariable: 'OCI_REGISTRY_USR')]) {
+ sh("""docker run --env OSM_HOSTNAME=${osmHostname} --env PROMETHEUS_HOSTNAME=${prometheusHostname} \
+ ${PROMETHEUS_PORT_VAR} ${JUJU_PASSWORD_VAR} --env-file ${environmentFile} \
+ --env OCI_REGISTRY_URL=${ociRegistryUrl} --env OCI_REGISTRY_USER=${OCI_REGISTRY_USR} \
+ --env OCI_REGISTRY_PASSWORD=${OCI_REGISTRY_PSW} \
+ -v ${clouds}:/etc/openstack/clouds.yaml -v ${osmRSAfile}:/root/osm_id_rsa \
+ -v ${kubeconfig}:/root/.kube/config -v ${tempdir}:/robot-systest/reports \
+ -v ${portmappingfile}:/root/port-mapping.yaml ${hostfilemount} opensourcemano/tests:${tagName} \
+ -c -t ${testName}""")
+ }
} finally {
sh("cp ${tempdir}/*.xml .")
sh("cp ${tempdir}/*.html .")
APT_PROXY = 'http://172.21.1.1:3142'
SSH_KEY = '~/hive/cicd_rsa'
ARCHIVE_LOGS_FLAG = false
+ OCI_REGISTRY_URL = 'oci://osm.etsi.org:5050/devops/test'
sh 'env'
tag_or_branch = params.GERRIT_BRANCH.replaceAll(/\./, '')
osmHostname,
prometheusHostname,
prometheusPort,
+ OCI_REGISTRY_URL,
params.ROBOT_VIM,
params.ROBOT_PORT_MAPPING_VIM,
params.KUBECONFIG,