We have multiple parameters that we use to decide the slave
to provision from OpenStack.
- cloud name: cloud where the slave is provisioned from.
could either be city or xerces.
- slave type: type of the slave.
could either be jumphost (smaller) or vpod (larger).
- distro: distro to provision the slave with.
could either be ubuntu1804 or centos7.
Change-Id: Iafff9c015519896f35ff058db08e24ad351d0f95
notbuilt: true
cloud:
- city:
- slave-label: 'city-jumphost-onap-ubuntu1804'
openrc-credentials-file: 'est-jenkins-openrcfile-city-karlskrona-onap'
type:
- virtual:
provisioner-type: 'bifrost'
+ slave-type: 'vpod'
- cloud:
provisioner-type: 'heat'
+ slave-type: 'jumphost'
phase:
- deploy:
- nordix-gerrit-parameters
- label:
name: SLAVE_LABEL
- default: '{slave-label}'
+ default: '{cloud}-{slave-type}-{distro}'
description: 'Slave label to schedule this job on. All slaves have Ubuntu1604 no matter what distro target nodes use'
- string:
name: DISTRO
echo "Info: Processing $GERRIT_PROJECT patchset $GERRIT_REFSPEC"
if [[ "$GERRIT_PROJECT" == "infra/engine" ]]; then
echo "Info: Setting INSTALLER_TYPE and DEPLOY_SCENARIO to defaults for project $GERRIT_PROJECT patchset $GERRIT_REFSPEC"
- export PROVISIONER_TYPE=bifrost
+ export PROVISIONER_TYPE=$PROVISIONER_TYPE
export INSTALLER_TYPE=kubespray
export DEPLOY_SCENARIO=k8-calico-nofeature
write_change_metadata