Deploy SEBA on compass task 89/989/1
authorjialv01 <Jianlin.Lv@arm.com>
Thu, 13 Jun 2019 09:53:16 +0000 (17:53 +0800)
committerjialv01 <Jianlin.Lv@arm.com>
Thu, 13 Jun 2019 09:53:16 +0000 (17:53 +0800)
Deploy seba into community CI/CD platform

Signed-off-by: Jianlin Lv <Jianlin.Lv@arm.com>
Change-Id: I17fa9bae5a5a0b65ef5af790b4e1b8f75e9a6f7a

jjb/iec/iec-seba_on_arm.sh [changed mode: 0644->0755]
jjb/iec/iec.yaml

old mode 100644 (file)
new mode 100755 (executable)
index 2db62c7..ab0f293
@@ -20,6 +20,12 @@ case "${JOB_NAME}" in
     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
@@ -36,7 +42,7 @@ INSTALL_CMD="cd ${IEC_DIR}/src/use_cases/seba_on_arm/install; ./install.sh"
 
 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
index 8ec06aa..0e6308c 100644 (file)
           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