Deploy seba into community CI/CD platform
Signed-off-by: Jianlin Lv <Jianlin.Lv@arm.com>
Change-Id: I17fa9bae5a5a0b65ef5af790b4e1b8f75e9a6f7a
K8S_SSH_KEY=${SSH_KEY}
IEC_DIR="/home/${K8S_SSH_USER}/iec"
;;
+ *compass*)
+ K8S_MASTER_IP=${K8S_MASTER_IP_COMPASS}
+ K8S_SSH_USER=${K8S_SSH_USER_COMPASS}
+ K8S_SSH_PASSWORD=${K8S_SSH_PASSWORD_COMPASS}
+ IEC_DIR="/${K8S_SSH_USER_COMPASS}/iec"
+ ;;
*)
echo "Cannot determine installer from ${JOB_NAME}"
exit 1
if [ -n "${K8S_SSH_PASSWORD}" ]
then
- sshpass -o StrictHostKeyChecking=no -p "${K8S_SSH_PASSWORD}" \
+ sshpass -p "${K8S_SSH_PASSWORD}" ssh -o StrictHostKeyChecking=no \
"${K8S_SSH_USER}"@"${K8S_MASTER_IP}" "${INSTALL_CMD}"
elif [ -n "${K8S_SSH_KEY}" ]
then
name: K8S_SSH_KEY
default: ''
description: 'SSH key to connect to the K8s master'
+ - string:
+ name: K8S_MASTER_IP_COMPASS
+ default: '10.1.0.50'
+ description: 'IP address to compass connect to the K8s master'
+ - string:
+ name: K8S_SSH_PASSWORD_COMPASS
+ default: 'root'
+ description: 'SSH password to compass connect to the K8s master'
+ - string:
+ name: K8S_SSH_USER_COMPASS
+ default: 'root'
+ description: 'SSH username to compass connect to the K8s master'
########################
# job templates